Package gov.nasa.worldwind.ogc.ows
Class OWSCapabilities
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.ogc.ows.OWSCapabilities
-
- All Implemented Interfaces:
XMLEventParser
- Direct Known Subclasses:
WCSCapabilities
public abstract class OWSCapabilities extends AbstractXMLEventParser
Parses OGC Capabilities documents and holds the parsed information.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.stream.XMLEventReader
eventReader
protected java.lang.String
owsNamespaceURI
protected XMLEventParserContext
parserContext
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Constructor Description OWSCapabilities(java.lang.String namespaceURI, java.lang.Object docSource)
Create a new capabilities parser.
-
Method Summary
All Methods Instance Methods Abstract 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 abstract void
determineNamespaces()
OWSOperationsMetadata
getOperationsMetadata()
java.lang.String
getOWSNamespaceURI()
XMLEventParserContext
getParserContext()
OWSServiceIdentification
getServiceIdentification()
OWSServiceProvider
getServiceProvider()
java.lang.String
getUpdateSequence()
Returns the document's update sequence.java.lang.String
getVersion()
Returns the document's version number.protected void
initialize()
OWSCapabilities
parse(java.lang.Object... args)
Starts document parsing.protected void
registerParsers(XMLEventParserContext ctx)
protected void
setOWSNamespaceURI(java.lang.String ns)
-
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, 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
-
owsNamespaceURI
protected java.lang.String owsNamespaceURI
-
eventReader
protected javax.xml.stream.XMLEventReader eventReader
-
parserContext
protected XMLEventParserContext parserContext
-
-
Constructor Detail
-
OWSCapabilities
public OWSCapabilities(java.lang.String namespaceURI, java.lang.Object docSource)
Create a new capabilities parser.- Parameters:
namespaceURI
- the default namespace URI.docSource
- the XML source. May be a filename, file, stream or other type allowed byWWXML.openEventReader(Object)
.- Throws:
java.lang.IllegalArgumentException
- if the document source is null.
-
-
Method Detail
-
determineNamespaces
protected abstract void determineNamespaces()
-
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()
Returns the document's version number.- Returns:
- the document's version number.
-
getUpdateSequence
public java.lang.String getUpdateSequence()
Returns the document's update sequence.- Returns:
- the document's update sequence.
-
getServiceIdentification
public OWSServiceIdentification getServiceIdentification()
-
getServiceProvider
public OWSServiceProvider getServiceProvider()
-
getOperationsMetadata
public OWSOperationsMetadata getOperationsMetadata()
-
parse
public OWSCapabilities parse(java.lang.Object... args) throws javax.xml.stream.XMLStreamException
Starts document parsing. This method initiates parsing of the XML document and returns when the full capabilities document has been parsed.- Parameters:
args
- optional arguments to pass to parsers of sub-elements.- Returns:
this
if parsing is successful, otherwise null.- Throws:
javax.xml.stream.XMLStreamException
- if an exception occurs while attempting to read the event stream.
-
setOWSNamespaceURI
protected void setOWSNamespaceURI(java.lang.String ns)
-
getOWSNamespaceURI
public java.lang.String getOWSNamespaceURI()
-
registerParsers
protected void registerParsers(XMLEventParserContext ctx)
-
-