NASA World Wind

gov.nasa.worldwind.ogc.wms
Class WMSCapabilityInformation

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.OGCCapabilityInformation
          extended by 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
protected  QName LAYER
           
protected  List<WMSLayerCapabilities> layerCapabilities
           
protected  List<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
WMSCapabilityInformation(String namespaceURI)
           
 
Method Summary
 XMLEventParser allocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)
          Create a parser for a specified event.
protected  void doParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, Object... args)
          Parse an event's sub-elements.
 Set<String> getImageFormats()
           
 List<WMSLayerCapabilities> getLayerCapabilities()
           
protected  boolean isRequestName(XMLEventParserContext ctx, QName name)
           
protected  void setLayerCapabilities(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, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LAYER

protected QName LAYER

layerCapabilities

protected List<WMSLayerCapabilities> layerCapabilities

requestNames

protected List<QName> requestNames
Constructor Detail

WMSCapabilityInformation

public WMSCapabilityInformation(String namespaceURI)
Method Detail

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)

NASA World Wind