public class OGCRequestDescription extends AbstractXMLEventParser
Modifier and Type | Field and Description |
---|---|
protected javax.xml.namespace.QName |
DCPTYPE |
protected java.util.Set<OGCDCType> |
dcpTypes |
protected javax.xml.namespace.QName |
FORMAT |
protected java.util.Set<java.lang.String> |
formats |
protected java.lang.String |
requestName |
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
OGCRequestDescription(java.lang.String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
void |
addDCPType(OGCDCType dct) |
protected void |
addFormat(java.lang.String format) |
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.Set<OGCDCType> |
getDCPTypes() |
java.util.Set<java.lang.String> |
getFormats() |
OGCOnlineResource |
getOnlineResouce(java.lang.String protocol,
java.lang.String requestMethod) |
java.lang.String |
getRequestName() |
java.lang.Object |
parse(XMLEventParserContext ctx,
javax.xml.stream.events.XMLEvent rqstEvent,
java.lang.Object... args)
Parse the event and initialize the parser's values to those found in the event.
|
protected void |
setDCPTypes(java.util.Set<OGCDCType> dcTypes) |
protected void |
setFormats(java.util.Set<java.lang.String> formats) |
protected void |
setRequestName(java.lang.String requestName) |
java.lang.String |
toString() |
doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, getRoot, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parseCharacterContent, removeField, setField, setField, setFields, setNamespaceURI, setParent
protected javax.xml.namespace.QName DCPTYPE
protected java.util.Set<OGCDCType> dcpTypes
protected javax.xml.namespace.QName FORMAT
protected java.util.Set<java.lang.String> formats
protected java.lang.String requestName
public OGCRequestDescription(java.lang.String namespaceURI)
public void addDCPType(OGCDCType dct)
protected void addFormat(java.lang.String format)
public XMLEventParser allocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)
AbstractXMLEventParser
allocate
in class AbstractXMLEventParser
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.protected void doParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
AbstractXMLEventParser
doParseEventContent
in class AbstractXMLEventParser
ctx
- a current parser context.event
- the event to parse.args
- an optional list of arguments that may by used by subclasses.javax.xml.stream.XMLStreamException
- if an exception occurs during event-stream reading.public java.util.Set<OGCDCType> getDCPTypes()
public java.util.Set<java.lang.String> getFormats()
public OGCOnlineResource getOnlineResouce(java.lang.String protocol, java.lang.String requestMethod)
public java.lang.String getRequestName()
public java.lang.Object parse(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent rqstEvent, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
AbstractXMLEventParser
parse
in interface XMLEventParser
parse
in class AbstractXMLEventParser
ctx
- a current parser context.rqstEvent
- the event to parse.args
- an optional list of arguments that may by used by subclasses.this
, otherwise returns null.javax.xml.stream.XMLStreamException
- if an exception occurs during event-stream reading.protected void setDCPTypes(java.util.Set<OGCDCType> dcTypes)
protected void setFormats(java.util.Set<java.lang.String> formats)
protected void setRequestName(java.lang.String requestName)
public java.lang.String toString()
toString
in class java.lang.Object