NASA World Wind

gov.nasa.worldwind.ogc.wms
Class WMSLayerInfoURL

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by 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
protected  String format
           
protected  QName FORMAT
           
protected  String name
           
protected  QName ONLINE_RESOURCE
           
protected  OGCOnlineResource onlineResource
           
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
WMSLayerInfoURL(String namespaceURI)
           
 
Method Summary
 XMLEventParser allocate(XMLEventParserContext ctx, XMLEvent event)
          Create a parser for a specified event.
protected  void doParseEventAttributes(XMLEventParserContext ctx, XMLEvent event, Object... args)
          Parse an event's attributes.
protected  void doParseEventContent(XMLEventParserContext ctx, XMLEvent event, Object... args)
          Parse an event's sub-elements.
 String getFormat()
           
 String getName()
           
 OGCOnlineResource getOnlineResource()
           
protected  void setFormat(String format)
           
protected  void setName(String name)
           
protected  void setOnlineResource(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, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

protected String format

FORMAT

protected QName FORMAT

name

protected String name

ONLINE_RESOURCE

protected QName ONLINE_RESOURCE

onlineResource

protected OGCOnlineResource onlineResource
Constructor Detail

WMSLayerInfoURL

public WMSLayerInfoURL(String namespaceURI)
Method Detail

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.

doParseEventAttributes

protected void doParseEventAttributes(XMLEventParserContext ctx,
                                      XMLEvent event,
                                      Object... args)
Description copied from class: AbstractXMLEventParser
Parse an event's attributes.

Overrides:
doParseEventAttributes 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.

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.

getFormat

public String getFormat()

getName

public String getName()

getOnlineResource

public OGCOnlineResource getOnlineResource()

setFormat

protected void setFormat(String format)

setName

protected void setName(String name)

setOnlineResource

protected void setOnlineResource(OGCOnlineResource onlineResource)

NASA World Wind