NASA World Wind

gov.nasa.worldwind.ogc
Class OGCDCType

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

public class OGCDCType
extends AbstractXMLEventParser

Parses an OGC DCPType element.


Nested Class Summary
static class OGCDCType.DCPInfo
           
 
Field Summary
protected  QName GET
           
protected  QName HTTP
           
protected  QName ONLINE_RESOURCE
           
protected  QName POST
           
protected  List<OGCDCType.DCPInfo> protocols
           
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
OGCDCType(String namespaceURI)
           
 
Method Summary
protected  void addOnlineResource(OGCOnlineResource onlineResource)
           
protected  void addProtocol(String protocol)
           
protected  void addRequestMethod(String requestMethod)
           
 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.
 List<OGCDCType.DCPInfo> getDCPInfos()
           
 OGCOnlineResource getOnlineResouce(String protocol, String requestMethod)
           
 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

GET

protected QName GET

HTTP

protected QName HTTP

ONLINE_RESOURCE

protected QName ONLINE_RESOURCE

POST

protected QName POST

protocols

protected List<OGCDCType.DCPInfo> protocols
Constructor Detail

OGCDCType

public OGCDCType(String namespaceURI)
Method Detail

addOnlineResource

protected void addOnlineResource(OGCOnlineResource onlineResource)

addProtocol

protected void addProtocol(String protocol)

addRequestMethod

protected void addRequestMethod(String requestMethod)

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.

getDCPInfos

public List<OGCDCType.DCPInfo> getDCPInfos()

getOnlineResouce

public OGCOnlineResource getOnlineResouce(String protocol,
                                          String requestMethod)

toString

public String toString()
Overrides:
toString in class Object

NASA World Wind