gov.nasa.worldwind.ogc
Class OGCRequestDescription
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.OGCRequestDescription
- All Implemented Interfaces:
- XMLEventParser
public class OGCRequestDescription
- extends AbstractXMLEventParser
Parses an OGC Request element.
| 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 |
DCPTYPE
protected QName DCPTYPE
dcpTypes
protected Set<OGCDCType> dcpTypes
FORMAT
protected QName FORMAT
formats
protected Set<String> formats
requestName
protected String requestName
OGCRequestDescription
public OGCRequestDescription(String namespaceURI)
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