Package gov.nasa.worldwind.ogc
Class OGCDCType
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.ogc.OGCDCType
-
- All Implemented Interfaces:
XMLEventParser
public class OGCDCType extends AbstractXMLEventParser
Parses an OGC DCPType element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OGCDCType.DCPInfo
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.namespace.QName
GET
protected javax.xml.namespace.QName
HTTP
protected javax.xml.namespace.QName
ONLINE_RESOURCE
protected javax.xml.namespace.QName
POST
protected java.util.List<OGCDCType.DCPInfo>
protocols
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Constructor Description OGCDCType(java.lang.String namespaceURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addOnlineResource(OGCOnlineResource onlineResource)
protected void
addProtocol(java.lang.String protocol)
protected void
addRequestMethod(java.lang.String requestMethod)
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, java.lang.Object... args)
Parse an event's sub-elements.java.util.List<OGCDCType.DCPInfo>
getDCPInfos()
OGCOnlineResource
getOnlineResouce(java.lang.String protocol, java.lang.String requestMethod)
java.lang.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, setNamespaceURI, setParent
-
-
-
-
Field Detail
-
GET
protected javax.xml.namespace.QName GET
-
POST
protected javax.xml.namespace.QName POST
-
HTTP
protected javax.xml.namespace.QName HTTP
-
ONLINE_RESOURCE
protected javax.xml.namespace.QName ONLINE_RESOURCE
-
protocols
protected java.util.List<OGCDCType.DCPInfo> protocols
-
-
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 classAbstractXMLEventParser
- 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, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
Description copied from class:AbstractXMLEventParser
Parse an event's sub-elements.- Overrides:
doParseEventContent
in classAbstractXMLEventParser
- 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.
-
getDCPInfos
public java.util.List<OGCDCType.DCPInfo> getDCPInfos()
-
addProtocol
protected void addProtocol(java.lang.String protocol)
-
addRequestMethod
protected void addRequestMethod(java.lang.String requestMethod)
-
addOnlineResource
protected void addOnlineResource(OGCOnlineResource onlineResource)
-
getOnlineResouce
public OGCOnlineResource getOnlineResouce(java.lang.String protocol, java.lang.String requestMethod)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-