NASA World Wind

gov.nasa.worldwind.ogc.wms
Class WMSLayerStyle

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.wms.WMSLayerStyle
All Implemented Interfaces:
XMLEventParser

public class WMSLayerStyle
extends AbstractXMLEventParser

Parses a WMS layer Style element.


Field Summary
protected  QName ABSTRACT
           
protected  QName LEGEND_URL
           
protected  Set<WMSLogoURL> legendURLs
           
protected  String name
           
protected  QName NAME
           
protected  QName STYLE_SHEET_URL
           
protected  QName STYLE_URL
           
protected  String styleAbstract
           
protected  WMSLayerInfoURL styleSheetURL
           
protected  WMSLayerInfoURL styleURL
           
protected  String title
           
protected  QName TITLE
           
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
WMSLayerStyle(String namespaceURI)
           
 
Method Summary
protected  void addLegendURL(WMSLogoURL url)
           
 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<WMSLogoURL> getLegendURLs()
           
 String getName()
           
 String getStyleAbstract()
           
 WMSLayerInfoURL getStyleSheetURL()
           
 WMSLayerInfoURL getStyleURL()
           
 String getTitle()
           
protected  void setLegendURLs(Set<WMSLogoURL> legendURLs)
           
protected  void setName(String name)
           
protected  void setStyleAbstract(String styleAbstract)
           
protected  void setStyleSheetURL(WMSLayerInfoURL styleSheetURL)
           
protected  void setStyleURL(WMSLayerInfoURL styleURL)
           
protected  void setTitle(String title)
           
 
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, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABSTRACT

protected QName ABSTRACT

LEGEND_URL

protected QName LEGEND_URL

legendURLs

protected Set<WMSLogoURL> legendURLs

name

protected String name

NAME

protected QName NAME

STYLE_SHEET_URL

protected QName STYLE_SHEET_URL

STYLE_URL

protected QName STYLE_URL

styleAbstract

protected String styleAbstract

styleSheetURL

protected WMSLayerInfoURL styleSheetURL

styleURL

protected WMSLayerInfoURL styleURL

title

protected String title

TITLE

protected QName TITLE
Constructor Detail

WMSLayerStyle

public WMSLayerStyle(String namespaceURI)
Method Detail

addLegendURL

protected void addLegendURL(WMSLogoURL url)

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.

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.

getLegendURLs

public Set<WMSLogoURL> getLegendURLs()

getName

public String getName()

getStyleAbstract

public String getStyleAbstract()

getStyleSheetURL

public WMSLayerInfoURL getStyleSheetURL()

getStyleURL

public WMSLayerInfoURL getStyleURL()

getTitle

public String getTitle()

setLegendURLs

protected void setLegendURLs(Set<WMSLogoURL> legendURLs)

setName

protected void setName(String name)

setStyleAbstract

protected void setStyleAbstract(String styleAbstract)

setStyleSheetURL

protected void setStyleSheetURL(WMSLayerInfoURL styleSheetURL)

setStyleURL

protected void setStyleURL(WMSLayerInfoURL styleURL)

setTitle

protected void setTitle(String title)

NASA World Wind