public abstract class OWSCapabilities extends AbstractXMLEventParser
Modifier and Type | Field and Description |
---|---|
protected XMLEventReader |
eventReader |
protected String |
owsNamespaceURI |
protected XMLEventParserContext |
parserContext |
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
OWSCapabilities(String namespaceURI,
Object docSource)
Create a new capabilities parser.
|
Modifier and Type | Method and Description |
---|---|
protected XMLEventParserContext |
createParserContext(XMLEventReader reader) |
protected XMLEventReader |
createReader(Object docSource) |
protected abstract void |
determineNamespaces() |
OWSOperationsMetadata |
getOperationsMetadata() |
String |
getOWSNamespaceURI() |
XMLEventParserContext |
getParserContext() |
OWSServiceIdentification |
getServiceIdentification() |
OWSServiceProvider |
getServiceProvider() |
String |
getUpdateSequence()
Returns the document's update sequence.
|
String |
getVersion()
Returns the document's version number.
|
protected void |
initialize() |
OWSCapabilities |
parse(Object... args)
Starts document parsing.
|
protected void |
registerParsers(XMLEventParserContext ctx) |
protected void |
setOWSNamespaceURI(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 XMLEventReader eventReader
protected String owsNamespaceURI
protected XMLEventParserContext parserContext
public OWSCapabilities(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.protected XMLEventParserContext createParserContext(XMLEventReader reader)
protected XMLEventReader createReader(Object docSource)
protected abstract void determineNamespaces()
public OWSOperationsMetadata getOperationsMetadata()
public String getOWSNamespaceURI()
public XMLEventParserContext getParserContext()
public OWSServiceIdentification getServiceIdentification()
public OWSServiceProvider getServiceProvider()
public String getUpdateSequence()
public String getVersion()
protected void initialize()
public OWSCapabilities 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 registerParsers(XMLEventParserContext ctx)
protected void setOWSNamespaceURI(String ns)