Package gov.nasa.worldwind.ogc.wms
Class WMSLayerInfoURL
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.ogc.wms.WMSLayerInfoURL
-
- All Implemented Interfaces:
XMLEventParser
- Direct Known Subclasses:
WMSAuthorityURL,WMSLogoURL
public class WMSLayerInfoURL extends AbstractXMLEventParser
Parses a WMS layer info URL, including FeatureListURL, MetadataURL and DataURL. Provides the base class for AuthorityURL and LogoURL.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringformatprotected javax.xml.namespace.QNameFORMATprotected java.lang.Stringnameprotected javax.xml.namespace.QNameONLINE_RESOURCEprotected OGCOnlineResourceonlineResource-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Constructor Description WMSLayerInfoURL(java.lang.String namespaceURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLEventParserallocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)Create a parser for a specified event.protected voiddoParseEventAttributes(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args)Parse an event's attributes.protected voiddoParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args)Parse an event's sub-elements.java.lang.StringgetFormat()java.lang.StringgetName()OGCOnlineResourcegetOnlineResource()protected voidsetFormat(java.lang.String format)protected voidsetName(java.lang.String name)protected voidsetOnlineResource(OGCOnlineResource onlineResource)-
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
doAddCharacters, doAddEventAttribute, doAddEventContent, 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
-
FORMAT
protected javax.xml.namespace.QName FORMAT
-
ONLINE_RESOURCE
protected javax.xml.namespace.QName ONLINE_RESOURCE
-
onlineResource
protected OGCOnlineResource onlineResource
-
name
protected java.lang.String name
-
format
protected java.lang.String format
-
-
Method Detail
-
allocate
public XMLEventParser allocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)
Description copied from class:AbstractXMLEventParserCreate a parser for a specified event.- Overrides:
allocatein 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:AbstractXMLEventParserParse an event's sub-elements.- Overrides:
doParseEventContentin 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.
-
doParseEventAttributes
protected void doParseEventAttributes(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args)
Description copied from class:AbstractXMLEventParserParse an event's attributes.- Overrides:
doParseEventAttributesin classAbstractXMLEventParser- Parameters:
ctx- a current parser context.event- the event to parse.args- an optional list of arguments that may by used by subclasses.
-
getOnlineResource
public OGCOnlineResource getOnlineResource()
-
setOnlineResource
protected void setOnlineResource(OGCOnlineResource onlineResource)
-
getName
public java.lang.String getName()
-
setName
protected void setName(java.lang.String name)
-
getFormat
public java.lang.String getFormat()
-
setFormat
protected void setFormat(java.lang.String format)
-
-