public abstract class OGCCapabilities extends AbstractXMLEventParser
Modifier and Type | Field and Description |
---|---|
protected javax.xml.namespace.QName |
CAPABILITY |
protected OGCCapabilityInformation |
capabilityInformation |
protected javax.xml.stream.XMLEventReader |
eventReader |
protected XMLEventParserContext |
parserContext |
protected javax.xml.namespace.QName |
SERVICE |
protected OGCServiceInformation |
serviceInformation |
protected javax.xml.namespace.QName |
UPDATE_SEQUENCE |
protected java.lang.String |
updateSequence |
protected java.lang.String |
version |
protected javax.xml.namespace.QName |
VERSION |
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
OGCCapabilities(java.lang.String namespaceURI,
java.lang.Object docSource)
Create a new capabilities parser.
|
Modifier and Type | Method and Description |
---|---|
XMLEventParser |
allocate(XMLEventParserContext ctx,
javax.xml.stream.events.XMLEvent event)
Create a parser for a specified event.
|
protected XMLEventParserContext |
createParserContext(javax.xml.stream.XMLEventReader reader) |
protected javax.xml.stream.XMLEventReader |
createReader(java.lang.Object docSource) |
protected void |
doParseEventAttributes(XMLEventParserContext ctx,
javax.xml.stream.events.XMLEvent event,
java.lang.Object... args)
Parse an event's attributes.
|
protected void |
doParseEventContent(XMLEventParserContext ctx,
javax.xml.stream.events.XMLEvent event,
java.lang.Object... args)
Parse an event's sub-elements.
|
OGCCapabilityInformation |
getCapabilityInformation()
Returns the document's capability information.
|
abstract java.lang.String |
getDefaultNamespaceURI()
Returns the default namespace URI.
|
protected XMLEventParserContext |
getParserContext() |
OGCServiceInformation |
getServiceInformation()
Returns the document's service information.
|
java.lang.String |
getUpdateSequence()
Returns the document's update sequence.
|
java.lang.String |
getVersion()
Returns the document's version number.
|
abstract boolean |
isRootElementName(javax.xml.namespace.QName name)
Determines whether a specified element name is the root element name of the schema.
|
OGCCapabilities |
parse(java.lang.Object... args)
Starts document parsing.
|
protected void |
setCapabilityInformation(OGCCapabilityInformation capabilityInformation) |
protected void |
setServiceInformation(OGCServiceInformation serviceInformation) |
protected void |
setUpdateSequence(java.lang.String updateSequence) |
protected void |
setVersion(java.lang.String version) |
java.lang.String |
toString() |
doAddCharacters, doAddEventAttribute, doAddEventContent, 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.namespace.QName CAPABILITY
protected OGCCapabilityInformation capabilityInformation
protected javax.xml.stream.XMLEventReader eventReader
protected XMLEventParserContext parserContext
protected javax.xml.namespace.QName SERVICE
protected OGCServiceInformation serviceInformation
protected javax.xml.namespace.QName UPDATE_SEQUENCE
protected java.lang.String updateSequence
protected java.lang.String version
protected javax.xml.namespace.QName VERSION
public OGCCapabilities(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.public XMLEventParser allocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)
allocate
in class AbstractXMLEventParser
ctx
- 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(javax.xml.stream.XMLEventReader reader)
protected javax.xml.stream.XMLEventReader createReader(java.lang.Object docSource)
protected void doParseEventAttributes(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args)
AbstractXMLEventParser
doParseEventAttributes
in class AbstractXMLEventParser
ctx
- 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, javax.xml.stream.events.XMLEvent event, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
AbstractXMLEventParser
doParseEventContent
in class AbstractXMLEventParser
ctx
- a current parser context.event
- the event to parse.args
- an optional list of arguments that may by used by subclasses.javax.xml.stream.XMLStreamException
- if an exception occurs during event-stream reading.public OGCCapabilityInformation getCapabilityInformation()
public abstract java.lang.String getDefaultNamespaceURI()
protected XMLEventParserContext getParserContext()
public OGCServiceInformation getServiceInformation()
public java.lang.String getUpdateSequence()
public java.lang.String getVersion()
public abstract boolean isRootElementName(javax.xml.namespace.QName name)
name
- the name to test.public OGCCapabilities 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 setCapabilityInformation(OGCCapabilityInformation capabilityInformation)
protected void setServiceInformation(OGCServiceInformation serviceInformation)
protected void setUpdateSequence(java.lang.String updateSequence)
protected void setVersion(java.lang.String version)
public java.lang.String toString()
toString
in class java.lang.Object