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.
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, setParent |
LAYER
protected QName LAYER
layerCapabilities
protected List<WMSLayerCapabilities> layerCapabilities
requestNames
protected List<QName> requestNames
WMSCapabilityInformation
public WMSCapabilityInformation(String namespaceURI)
allocate
public XMLEventParser allocate(XMLEventParserContext ctx,
javax.xml.stream.events.XMLEvent event)
- Description copied from class:
AbstractXMLEventParser
- Create a parser for a specified event.
- Overrides:
allocate
in class OGCCapabilityInformation
- 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,
Object... args)
throws javax.xml.stream.XMLStreamException
- Description copied from class:
AbstractXMLEventParser
- Parse an event's sub-elements.
- Overrides:
doParseEventContent
in class OGCCapabilityInformation
- 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.
getImageFormats
public Set<String> getImageFormats()
getLayerCapabilities
public List<WMSLayerCapabilities> getLayerCapabilities()
isRequestName
protected boolean isRequestName(XMLEventParserContext ctx,
QName name)
- Specified by:
isRequestName
in class OGCCapabilityInformation
setLayerCapabilities
protected void setLayerCapabilities(List<WMSLayerCapabilities> layerCapabilities)