Class WCS100Capabilities
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.ogc.wcs.wcs100.WCS100Capabilities
-
- All Implemented Interfaces:
XMLEventParser
public class WCS100Capabilities extends AbstractXMLEventParser
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.stream.XMLEventReader
eventReader
protected XMLEventParserContext
parserContext
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Constructor Description WCS100Capabilities(java.lang.Object docSource)
-
Method Summary
All Methods Static Methods Instance 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)
WCS100Capability
getCapability()
WCS100ContentMetadata
getContentMetadata()
XMLEventParserContext
getParserContext()
WCS100Service
getService()
java.lang.String
getUpdateSequence()
Returns the document's update sequence.java.lang.String
getVersion()
Returns the document's version number.protected void
initialize()
WCS100Capabilities
parse(java.lang.Object... args)
Starts document parsing.protected void
registerParsers(XMLEventParserContext ctx)
static WCS100Capabilities
retrieve(java.net.URI uri)
Retrieves the WCS capabilities document from a specified WCS server.-
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
-
eventReader
protected javax.xml.stream.XMLEventReader eventReader
-
parserContext
protected XMLEventParserContext parserContext
-
-
Method Detail
-
retrieve
public static WCS100Capabilities retrieve(java.net.URI uri) throws java.lang.Exception
Retrieves the WCS capabilities document from a specified WCS server.- Parameters:
uri
- The URI of the server.- Returns:
- The WCS capabilities document for the specified server.
- Throws:
java.lang.Exception
- if a general error occurs.java.lang.IllegalArgumentException
- if the specified URI is invalid.WWRuntimeException
- if an error occurs retrieving the document.
-
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.
-
getService
public WCS100Service getService()
-
getCapability
public WCS100Capability getCapability()
-
getContentMetadata
public WCS100ContentMetadata getContentMetadata()
-
parse
public WCS100Capabilities 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.
-
registerParsers
protected void registerParsers(XMLEventParserContext ctx)
-
-