public class OGCRequestDescription extends AbstractXMLEventParser
| Modifier and Type | Field and Description |
|---|---|
protected QName |
DCPTYPE |
protected Set<OGCDCType> |
dcpTypes |
protected QName |
FORMAT |
protected Set<String> |
formats |
protected String |
requestName |
CHARACTERS_CONTENT, fields, namespaceURI, parent| Constructor and Description |
|---|
OGCRequestDescription(String namespaceURI) |
| Modifier and Type | Method and Description |
|---|---|
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() |
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, setParentprotected QName DCPTYPE
protected QName FORMAT
protected String requestName
public OGCRequestDescription(String namespaceURI)
public void addDCPType(OGCDCType dct)
protected void addFormat(String format)
public XMLEventParser allocate(XMLEventParserContext ctx, XMLEvent event)
AbstractXMLEventParserallocate in class AbstractXMLEventParserctx - 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, XMLEvent event, Object... args) throws XMLStreamException
AbstractXMLEventParserdoParseEventContent in class AbstractXMLEventParserctx - a current parser context.event - the event to parse.args - an optional list of arguments that may by used by subclasses.XMLStreamException - if an exception occurs during event-stream reading.public OGCOnlineResource getOnlineResouce(String protocol, String requestMethod)
public String getRequestName()
public Object parse(XMLEventParserContext ctx, XMLEvent rqstEvent, Object... args) throws XMLStreamException
AbstractXMLEventParserparse in interface XMLEventParserparse in class AbstractXMLEventParserctx - 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.XMLStreamException - if an exception occurs during event-stream reading.protected void setRequestName(String requestName)