NASA World Wind

gov.nasa.worldwind.ogc
Class OGCCapabilityInformation

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.OGCCapabilityInformation
All Implemented Interfaces:
XMLEventParser
Direct Known Subclasses:
WMSCapabilityInformation

public abstract class OGCCapabilityInformation
extends AbstractXMLEventParser

Parses an OGC Capability element.


Field Summary
protected  QName EXCEPTION
           
protected  Set<String> exceptionFormats
           
protected  QName EXTENDED_CAPABILITIES
           
protected  QName FORMAT
           
protected  QName REQUEST
           
protected  Set<OGCRequestDescription> requestDescriptions
           
protected  QName USER_DEFINED_SYMBOLIZATION
           
protected  Map<String,String> userDefinedSymbolization
           
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
OGCCapabilityInformation(String namespaceURI)
           
 
Method Summary
protected  void addUserDefinedSymbolization(String key, String value)
           
 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> getExceptionFormats()
           
 Set<OGCRequestDescription> getRequestDescriptions()
           
 Map<String,String> getUserDefinedSymbolization()
           
protected abstract  boolean isRequestName(XMLEventParserContext ctx, QName name)
           
protected  void parseExtendedCapabilities(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, Object... args)
           
protected  void parseUserDefinedSymbolization(javax.xml.stream.events.XMLEvent event)
           
protected  void setExceptionFormats(Set<String> exceptionFormats)
           
protected  void setExtendedCapabilities(Object extendedCapabilities)
           
protected  void setRequestDescriptions(Set<OGCRequestDescription> requestDescriptions)
           
protected  void setUserDefinedSymbolization(Map<String,String> userDefinedSymbolization)
           
 String 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

EXCEPTION

protected QName EXCEPTION

exceptionFormats

protected Set<String> exceptionFormats

EXTENDED_CAPABILITIES

protected QName EXTENDED_CAPABILITIES

FORMAT

protected QName FORMAT

REQUEST

protected QName REQUEST

requestDescriptions

protected Set<OGCRequestDescription> requestDescriptions

USER_DEFINED_SYMBOLIZATION

protected QName USER_DEFINED_SYMBOLIZATION

userDefinedSymbolization

protected Map<String,String> userDefinedSymbolization
Constructor Detail

OGCCapabilityInformation

public OGCCapabilityInformation(String namespaceURI)
Method Detail

addUserDefinedSymbolization

protected void addUserDefinedSymbolization(String key,
                                           String value)

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 AbstractXMLEventParser
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 AbstractXMLEventParser
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.

getExceptionFormats

public Set<String> getExceptionFormats()

getRequestDescriptions

public Set<OGCRequestDescription> getRequestDescriptions()

getUserDefinedSymbolization

public Map<String,String> getUserDefinedSymbolization()

isRequestName

protected abstract boolean isRequestName(XMLEventParserContext ctx,
                                         QName name)

parseExtendedCapabilities

protected void parseExtendedCapabilities(XMLEventParserContext ctx,
                                         javax.xml.stream.events.XMLEvent event,
                                         Object... args)
                                  throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

parseUserDefinedSymbolization

protected void parseUserDefinedSymbolization(javax.xml.stream.events.XMLEvent event)
                                      throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

setExceptionFormats

protected void setExceptionFormats(Set<String> exceptionFormats)

setExtendedCapabilities

protected void setExtendedCapabilities(Object extendedCapabilities)

setRequestDescriptions

protected void setRequestDescriptions(Set<OGCRequestDescription> requestDescriptions)

setUserDefinedSymbolization

protected void setUserDefinedSymbolization(Map<String,String> userDefinedSymbolization)

toString

public String toString()
Overrides:
toString in class Object

NASA World Wind