|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.crs.configuration.deegree.xml.stax.parsers.DefinitionParser
public abstract class DefinitionParser
The CRSParsers class TODO add class documentation here.
| Constructor Summary | |
|---|---|
protected |
DefinitionParser(DeegreeCRSProvider<StAXResource> provider,
URL configURL)
|
| Method Summary | |
|---|---|
protected abstract QName |
expectedRootName()
|
protected XMLStreamReader |
getConfigReader()
Get the configuration reader. |
protected URL |
getConfigURL()
|
DeegreeCRSProvider<StAXResource> |
getProvider()
|
boolean |
moveReaderToNextIdentifiable(XMLStreamReader reader,
QName elementName)
Forwards the stream |
boolean |
moveReaderToNextIdentifiable(XMLStreamReader reader,
Set<QName> allowedElements)
Forwards the stream |
protected CRSIdentifiable |
parseIdentifiable(XMLStreamReader reader)
Parses all elements of the identifiable object, it is assumed the reader is on a top level element, the next element will be an id. |
protected double |
parseLatLonType(XMLStreamReader reader,
QName qName,
boolean required,
double defaultValue)
Post: reader will be at XMLStreamConstants.START_ELEMENT of the next element. |
protected Unit |
parseUnit(XMLStreamReader reader,
boolean required)
Parses a unit from the given xml-parent. |
boolean |
readEntireFile()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DefinitionParser(DeegreeCRSProvider<StAXResource> provider,
URL configURL)
provider - configURL - | Method Detail |
|---|
protected abstract QName expectedRootName()
protected XMLStreamReader getConfigReader()
throws XMLStreamException
null if the entire
file was read.
XMLStreamException
protected CRSIdentifiable parseIdentifiable(XMLStreamReader reader)
throws CRSConfigurationException
reader - the xml-reader pointing to parent of the first id-element
null if no id was given.
CRSConfigurationException
protected Unit parseUnit(XMLStreamReader reader,
boolean required)
throws CRSConfigurationException
reader - xml-reader to parse the unit from.required - if the unit is required.
CRSConfigurationException - if the unit object could not be created.public DeegreeCRSProvider<StAXResource> getProvider()
null
public boolean moveReaderToNextIdentifiable(XMLStreamReader reader,
QName elementName)
throws XMLStreamException
reader - to forwardelementName -
XMLStreamException
protected double parseLatLonType(XMLStreamReader reader,
QName qName,
boolean required,
double defaultValue)
throws XMLStreamException
XMLStreamConstants.START_ELEMENT of the next element.
reader - to be used.qName - name of the elementrequired - if true and the element is missing an exception will be thrown.defaultValue -
XMLStreamException
public boolean moveReaderToNextIdentifiable(XMLStreamReader reader,
Set<QName> allowedElements)
throws XMLStreamException
reader - to forwardallowedElements -
XMLStreamExceptionpublic boolean readEntireFile()
protected URL getConfigURL()
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||