Package gov.nasa.worldwind.ogc.wms
Class WMSCapabilityInformation
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.ogc.OGCCapabilityInformation
-
- gov.nasa.worldwind.ogc.wms.WMSCapabilityInformation
-
- All Implemented Interfaces:
XMLEventParser
public class WMSCapabilityInformation extends OGCCapabilityInformation
Parses the Capability section of a WMS capabilities document.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.namespace.QNameLAYERprotected java.util.List<WMSLayerCapabilities>layerCapabilitiesprotected java.util.List<javax.xml.namespace.QName>requestNames-
Fields inherited from class gov.nasa.worldwind.ogc.OGCCapabilityInformation
EXCEPTION, exceptionFormats, EXTENDED_CAPABILITIES, FORMAT, REQUEST, requestDescriptions, USER_DEFINED_SYMBOLIZATION, userDefinedSymbolization
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Constructor Description WMSCapabilityInformation(java.lang.String namespaceURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLEventParserallocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)Create a parser for a specified event.protected voiddoParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args)Parse an event's sub-elements.java.util.Set<java.lang.String>getImageFormats()java.util.List<WMSLayerCapabilities>getLayerCapabilities()protected booleanisRequestName(XMLEventParserContext ctx, javax.xml.namespace.QName name)protected voidsetLayerCapabilities(java.util.List<WMSLayerCapabilities> layerCapabilities)-
Methods inherited from class gov.nasa.worldwind.ogc.OGCCapabilityInformation
addUserDefinedSymbolization, getExceptionFormats, getRequestDescriptions, getUserDefinedSymbolization, parseExtendedCapabilities, parseUserDefinedSymbolization, setExceptionFormats, setExtendedCapabilities, setRequestDescriptions, setUserDefinedSymbolization, toString
-
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, 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
-
LAYER
protected javax.xml.namespace.QName LAYER
-
requestNames
protected java.util.List<javax.xml.namespace.QName> requestNames
-
layerCapabilities
protected java.util.List<WMSLayerCapabilities> layerCapabilities
-
-
Method Detail
-
allocate
public XMLEventParser allocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)
Description copied from class:AbstractXMLEventParserCreate a parser for a specified event.- Overrides:
allocatein classOGCCapabilityInformation- Parameters:
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.- Returns:
- the new parser.
-
doParseEventContent
protected void doParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
Description copied from class:AbstractXMLEventParserParse an event's sub-elements.- Overrides:
doParseEventContentin classOGCCapabilityInformation- Parameters:
ctx- a current parser context.event- the event to parse.args- an optional list of arguments that may by used by subclasses.- Throws:
javax.xml.stream.XMLStreamException- if an exception occurs during event-stream reading.
-
isRequestName
protected boolean isRequestName(XMLEventParserContext ctx, javax.xml.namespace.QName name)
- Specified by:
isRequestNamein classOGCCapabilityInformation
-
getLayerCapabilities
public java.util.List<WMSLayerCapabilities> getLayerCapabilities()
-
setLayerCapabilities
protected void setLayerCapabilities(java.util.List<WMSLayerCapabilities> layerCapabilities)
-
getImageFormats
public java.util.Set<java.lang.String> getImageFormats()
-
-