NASA World Wind

gov.nasa.worldwind.ogc
Class OGCRequestDescription

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.OGCRequestDescription
All Implemented Interfaces:
XMLEventParser

public class OGCRequestDescription
extends AbstractXMLEventParser

Parses an OGC Request element.


Field Summary
protected  QName DCPTYPE
           
protected  Set<OGCDCType> dcpTypes
           
protected  QName FORMAT
           
protected  Set<String> formats
           
protected  String requestName
           
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
OGCRequestDescription(String namespaceURI)
           
 
Method Summary
 void addDCPType(OGCDCType dct)
           
protected  void addFormat(String format)
           
 XMLEventParser allocate(XMLEventParserContext ctx, XMLEvent event)
          Create a parser for a specified event.
protected  void doParseEventContent(XMLEventParserContext ctx, XMLEvent event, Object... args)
          Parse an event's sub-elements.
 Set<OGCDCType> getDCPTypes()
           
 Set<String> getFormats()
           
 OGCOnlineResource getOnlineResouce(String protocol, String requestMethod)
           
 String getRequestName()
           
 Object parse(XMLEventParserContext ctx, XMLEvent rqstEvent, Object... args)
          Parse the event and initialize the parser's values to those found in the event.
protected  void setDCPTypes(Set<OGCDCType> dcTypes)
           
protected  void setFormats(Set<String> formats)
           
protected  void setRequestName(String requestName)
           
 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, 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

DCPTYPE

protected QName DCPTYPE

dcpTypes

protected Set<OGCDCType> dcpTypes

FORMAT

protected QName FORMAT

formats

protected Set<String> formats

requestName

protected String requestName
Constructor Detail

OGCRequestDescription

public OGCRequestDescription(String namespaceURI)
Method Detail

addDCPType

public void addDCPType(OGCDCType dct)

addFormat

protected void addFormat(String format)

allocate

public XMLEventParser allocate(XMLEventParserContext ctx,
                               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,
                                   XMLEvent event,
                                   Object... args)
                            throws 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:
XMLStreamException - if an exception occurs during event-stream reading.

getDCPTypes

public Set<OGCDCType> getDCPTypes()

getFormats

public Set<String> getFormats()

getOnlineResouce

public OGCOnlineResource getOnlineResouce(String protocol,
                                          String requestMethod)

getRequestName

public String getRequestName()

parse

public Object parse(XMLEventParserContext ctx,
                    XMLEvent rqstEvent,
                    Object... args)
             throws XMLStreamException
Description copied from class: AbstractXMLEventParser
Parse the event and initialize the parser's values to those found in the event.

Specified by:
parse in interface XMLEventParser
Overrides:
parse in class AbstractXMLEventParser
Parameters:
ctx - a current parser context.
rqstEvent - the event to parse.
args - an optional list of arguments that may by used by subclasses.
Returns:
if parsing is successful, returns this, otherwise returns null.
Throws:
XMLStreamException - if an exception occurs during event-stream reading.

setDCPTypes

protected void setDCPTypes(Set<OGCDCType> dcTypes)

setFormats

protected void setFormats(Set<String> formats)

setRequestName

protected void setRequestName(String requestName)

toString

public String toString()
Overrides:
toString in class Object

NASA World Wind