public abstract class OGCCapabilities extends AbstractXMLEventParser
| Modifier and Type | Field and Description |
|---|---|
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 |
CHARACTERS_CONTENT, fields, namespaceURI, parent| Constructor and Description |
|---|
OGCCapabilities(String namespaceURI,
Object docSource)
Create a new capabilities parser.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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, setParentprotected 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
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.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)
AbstractXMLEventParserdoParseEventAttributes 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
AbstractXMLEventParserdoParseEventContent 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)