public abstract class OWSCapabilities extends AbstractXMLEventParser
Modifier and Type | Field and Description |
---|---|
protected javax.xml.stream.XMLEventReader |
eventReader |
protected java.lang.String |
owsNamespaceURI |
protected XMLEventParserContext |
parserContext |
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
OWSCapabilities(java.lang.String namespaceURI,
java.lang.Object docSource)
Create a new capabilities parser.
|
Modifier and Type | Method and 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) |
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
protected javax.xml.stream.XMLEventReader eventReader
protected java.lang.String owsNamespaceURI
protected XMLEventParserContext parserContext
public OWSCapabilities(java.lang.String namespaceURI, java.lang.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)
.java.lang.IllegalArgumentException
- if the document source is null.protected XMLEventParserContext createParserContext(javax.xml.stream.XMLEventReader reader)
protected javax.xml.stream.XMLEventReader createReader(java.lang.Object docSource)
protected abstract void determineNamespaces()
public OWSOperationsMetadata getOperationsMetadata()
public java.lang.String getOWSNamespaceURI()
public XMLEventParserContext getParserContext()
public OWSServiceIdentification getServiceIdentification()
public OWSServiceProvider getServiceProvider()
public java.lang.String getUpdateSequence()
public java.lang.String getVersion()
protected void initialize()
public OWSCapabilities parse(java.lang.Object... args) throws javax.xml.stream.XMLStreamException
args
- optional arguments to pass to parsers of sub-elements.this
if parsing is successful, otherwise null.javax.xml.stream.XMLStreamException
- if an exception occurs while attempting to read the event stream.protected void registerParsers(XMLEventParserContext ctx)
protected void setOWSNamespaceURI(java.lang.String ns)