|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.webapp.faces.conf.SelectorConfiguration
public class SelectorConfiguration
Nested Class Summary | |
---|---|
static class |
SelectorConfiguration.Region
|
static class |
SelectorConfiguration.RegionMap
|
Constructor Summary | |
---|---|
SelectorConfiguration()
creates a new empty SelectorConfiguration |
Method Summary | |
---|---|
static SelectorConfiguration |
fromXml(Reader reader)
Creates a new SelectorConfiguration based on the XML data read from reader . |
static SelectorConfiguration |
fromXml(String xmlFile)
creates a SelectorConfiguration from the xml file specified with xmlFile . |
SelectorConfiguration.RegionMap |
getRegionMap(String name)
|
List<SelectorConfiguration.RegionMap> |
getRegionMaps()
|
static void |
main(String[] a)
quick xml to/from test |
void |
setRegionMaps(List<SelectorConfiguration.RegionMap> maps)
set our list of available RegionMaps. |
String |
toXml()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectorConfiguration()
Method Detail |
---|
public List<SelectorConfiguration.RegionMap> getRegionMaps()
public void setRegionMaps(List<SelectorConfiguration.RegionMap> maps)
maps
is null, an
empty List is saved instead.
public SelectorConfiguration.RegionMap getRegionMap(String name)
name
. null if none found.public static SelectorConfiguration fromXml(String xmlFile) throws JAXBException, XMLStreamException, FileNotFoundException
xmlFile
.
JAXBException
XMLStreamException
FileNotFoundException
public static SelectorConfiguration fromXml(Reader reader) throws JAXBException, XMLStreamException
reader
.
reader
- the source of the XML data.
If this value is null, null is returned.
reader
.
XMLStreamException
- if the XML is not well-formed,
or for some other "unexpected processing conditions".
JAXBException
- if anything else goes wrong during the
transformation.public String toXml() throws JAXBException
JAXBException
public static void main(String[] a)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |