|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.OGCCapabilities
public abstract class OGCCapabilities
Parses OGC Capabilities documents and holds the parsed information.
| Field Summary | |
|---|---|
protected QName |
CAPABILITY
|
protected OGCCapabilityInformation |
capabilityInformation
|
protected XMLEventReader |
eventReader
|
protected XMLEventParserContext |
parserContext
|
protected QName |
SERVICE
|
protected OGCServiceInformation |
serviceInformation
|
protected QName |
UPDATE_SEQUENCE
|
protected String |
updateSequence
|
protected String |
version
|
protected QName |
VERSION
|
| Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
|---|
CHARACTERS_CONTENT, fields, namespaceURI, parent |
| Constructor Summary | |
|---|---|
OGCCapabilities(String namespaceURI,
Object docSource)
Create a new capabilities parser. |
|
| Method Summary | |
|---|---|
XMLEventParser |
allocate(XMLEventParserContext ctx,
XMLEvent event)
Create a parser for a specified event. |
protected XMLEventParserContext |
createParserContext(XMLEventReader reader)
|
protected XMLEventReader |
createReader(Object docSource)
|
protected void |
doParseEventAttributes(XMLEventParserContext ctx,
XMLEvent event,
Object... args)
Parse an event's attributes. |
protected void |
doParseEventContent(XMLEventParserContext ctx,
XMLEvent event,
Object... args)
Parse an event's sub-elements. |
OGCCapabilityInformation |
getCapabilityInformation()
Returns the document's capability information. |
abstract String |
getDefaultNamespaceURI()
Returns the default namespace URI. |
protected XMLEventParserContext |
getParserContext()
|
OGCServiceInformation |
getServiceInformation()
Returns the document's service information. |
String |
getUpdateSequence()
Returns the document's update sequence. |
String |
getVersion()
Returns the document's version number. |
abstract boolean |
isRootElementName(QName name)
Determines whether a specified element name is the root element name of the schema. |
OGCCapabilities |
parse(Object... args)
Starts document parsing. |
protected void |
setCapabilityInformation(OGCCapabilityInformation capabilityInformation)
|
protected void |
setServiceInformation(OGCServiceInformation serviceInformation)
|
protected void |
setUpdateSequence(String updateSequence)
|
protected void |
setVersion(String version)
|
String |
toString()
|
| Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
|---|
doAddCharacters, doAddEventAttribute, doAddEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, getRoot, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected QName CAPABILITY
protected OGCCapabilityInformation capabilityInformation
protected XMLEventReader eventReader
protected XMLEventParserContext parserContext
protected QName SERVICE
protected OGCServiceInformation serviceInformation
protected QName UPDATE_SEQUENCE
protected String updateSequence
protected String version
protected QName VERSION
| Constructor Detail |
|---|
public OGCCapabilities(String namespaceURI,
Object docSource)
namespaceURI - the default namespace URI.docSource - the XML source. May be a filename, file, stream or other type allowed by WWXML.openEventReader(Object).
IllegalArgumentException - if the document source is null.| Method Detail |
|---|
public XMLEventParser allocate(XMLEventParserContext ctx,
XMLEvent event)
allocate in class AbstractXMLEventParserctx - the current parser context.event - the event for which the parser is created. Only the event type is used; the new parser can operate
on any event of that type.
protected XMLEventParserContext createParserContext(XMLEventReader reader)
protected XMLEventReader createReader(Object docSource)
protected void doParseEventAttributes(XMLEventParserContext ctx,
XMLEvent event,
Object... args)
AbstractXMLEventParser
doParseEventAttributes in class AbstractXMLEventParserctx - a current parser context.event - the event to parse.args - an optional list of arguments that may by used by subclasses.
protected void doParseEventContent(XMLEventParserContext ctx,
XMLEvent event,
Object... args)
throws XMLStreamException
AbstractXMLEventParser
doParseEventContent in class AbstractXMLEventParserctx - a current parser context.event - the event to parse.args - an optional list of arguments that may by used by subclasses.
XMLStreamException - if an exception occurs during event-stream reading.public OGCCapabilityInformation getCapabilityInformation()
public abstract String getDefaultNamespaceURI()
protected XMLEventParserContext getParserContext()
public OGCServiceInformation getServiceInformation()
public String getUpdateSequence()
public String getVersion()
public abstract boolean isRootElementName(QName name)
name - the name to test.
public OGCCapabilities parse(Object... args)
throws XMLStreamException
args - optional arguments to pass to parsers of sub-elements.
this if parsing is successful, otherwise null.
XMLStreamException - if an exception occurs while attempting to read the event stream.protected void setCapabilityInformation(OGCCapabilityInformation capabilityInformation)
protected void setServiceInformation(OGCServiceInformation serviceInformation)
protected void setUpdateSequence(String updateSequence)
protected void setVersion(String version)
public String toString()
toString in class Object
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||