Package gov.nasa.worldwind.data
Class RasterServerConfiguration
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.data.RasterServerConfiguration
-
- All Implemented Interfaces:
XMLEventParser
public class RasterServerConfiguration extends AbstractXMLEventParser
Parses a raster server configuration document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
RasterServerConfiguration.Corner
protected static class
RasterServerConfiguration.Property
protected static class
RasterServerConfiguration.RasterSector
static class
RasterServerConfiguration.Source
protected static class
RasterServerConfiguration.Sources
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.stream.XMLEventReader
eventReader
protected static java.lang.String
namespaceURI
protected XMLEventParserContext
parserContext
protected java.util.HashMap<java.lang.String,java.lang.String>
properties
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, parent
-
-
Constructor Summary
Constructors Constructor Description RasterServerConfiguration(java.lang.Object docSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLEventParserContext
createParserContext(javax.xml.stream.XMLEventReader reader)
protected javax.xml.stream.XMLEventReader
createReader(java.lang.Object docSource)
protected void
doParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args)
Parse an event's sub-elements.XMLEventParserContext
getParserContext()
java.util.HashMap<java.lang.String,java.lang.String>
getProperties()
Sector
getSector()
java.util.ArrayList<RasterServerConfiguration.Source>
getSources()
java.lang.String
getVersion()
protected void
initialize()
RasterServerConfiguration
parse(java.lang.Object... args)
protected void
registerParsers(XMLEventParserContext ctx)
-
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, getRoot, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setNamespaceURI, setParent
-
-
-
-
Field Detail
-
namespaceURI
protected static java.lang.String namespaceURI
-
eventReader
protected javax.xml.stream.XMLEventReader eventReader
-
parserContext
protected XMLEventParserContext parserContext
-
properties
protected java.util.HashMap<java.lang.String,java.lang.String> properties
-
-
Method Detail
-
initialize
protected void initialize()
-
createReader
protected javax.xml.stream.XMLEventReader createReader(java.lang.Object docSource)
-
createParserContext
protected XMLEventParserContext createParserContext(javax.xml.stream.XMLEventReader reader)
-
getParserContext
public XMLEventParserContext getParserContext()
-
getVersion
public java.lang.String getVersion()
-
getSector
public Sector getSector()
-
getProperties
public java.util.HashMap<java.lang.String,java.lang.String> getProperties()
-
getSources
public java.util.ArrayList<RasterServerConfiguration.Source> getSources()
-
parse
public RasterServerConfiguration parse(java.lang.Object... args) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
doParseEventContent
protected void doParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
Description copied from class:AbstractXMLEventParser
Parse an event's sub-elements.- Overrides:
doParseEventContent
in classAbstractXMLEventParser
- Parameters:
ctx
- a current parser context.event
- the event to parse.args
- an optional list of arguments that may by used by subclasses.- Throws:
javax.xml.stream.XMLStreamException
- if an exception occurs during event-stream reading.
-
registerParsers
protected void registerParsers(XMLEventParserContext ctx)
-
-