NASA World Wind

gov.nasa.worldwind.ogc.wms
Class WMSLayerCapabilities

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

public class WMSLayerCapabilities
extends AbstractXMLEventParser

Parses a WMS Layer element.


Field Summary
protected  QName ABSTRACT
           
protected  QName ATTRIBUTION
           
protected  Set<WMSLayerAttribution> attributions
           
protected  QName AUTHORITY_URL
           
protected  Set<WMSAuthorityURL> authorityURLs
           
protected  QName BOUNDING_BOX
           
protected  Set<OGCBoundingBox> boundingBoxes
           
protected  Boolean cascaded
           
protected  Set<String> crs
           
protected  QName CRS
           
protected  QName DATA_URL
           
protected  Set<WMSLayerInfoURL> dataURLs
           
protected  QName DIMENSION
           
protected  Set<WMSLayerDimension> dimensions
           
protected  WMSCapabilityInformation enclosingCapabilityInformation
           
protected  QName EXTENT
           
protected  Set<WMSLayerExtent> extents
           
protected  QName EXTREME_ELEVATIONS
           
protected  Double extremeElevationMax
           
protected  Double extremeElevationMin
           
protected  QName FEATURE_LIST_URL
           
protected  Set<WMSLayerInfoURL> featureListURLs
           
protected  Integer fixedHeight
           
protected  Integer fixedWidth
           
protected  QName GEOGRAPHIC_BOUNDING_BOX
           
protected  Sector geographicBoundingBox
           
protected  QName IDENTIFIER
           
protected  Set<WMSLayerIdentifier> identifiers
           
protected  QName KEYWORD
           
protected  QName KEYWORD_LIST
           
protected  Set<String> keywords
           
protected  QName LAST_UPDATE
           
protected  String lastUpdate
           
protected  QName LAT_LON_BOUNDING_BOX
           
protected  QName LAYER
           
protected  String layerAbstract
           
protected  List<WMSLayerCapabilities> layers
           
protected  QName MAX_SCALE_DENOMINATOR
           
protected  Double maxScaleDenominator
           
protected  Double maxScaleHint
           
protected  QName METADATA_URL
           
protected  Set<WMSLayerInfoURL> metadataURLs
           
protected  QName MIN_SCALE_DENOMINATOR
           
protected  Double minScaleDenominator
           
protected  Double minScaleHint
           
protected  String name
           
protected  QName NAME
           
protected  Boolean noSubsets
           
protected  Boolean opaque
           
protected  WMSLayerCapabilities parent
           
protected  Boolean queryable
           
protected  QName SCALE_HINT
           
protected  Set<String> srs
           
protected  QName SRS
           
protected  QName STYLE
           
protected  Set<WMSLayerStyle> styles
           
protected  String title
           
protected  QName TITLE
           
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI
 
Constructor Summary
WMSLayerCapabilities(String namespaceURI)
           
 
Method Summary
protected  void addAttribution(WMSLayerAttribution attribution)
           
protected  void addAttributions(Set<WMSLayerAttribution> attribs)
           
protected  void addAuthorityURL(WMSAuthorityURL authorityURL)
           
protected  void addAuthorityURLs(Set<WMSAuthorityURL> urls)
           
protected  void addBoundingBox(OGCBoundingBox box)
           
protected  void addBoundingBoxes(Set<OGCBoundingBox> boxes)
           
protected  void addCRS(Set<String> crss)
           
protected  void addCRS(String crs)
           
protected  void addDataURL(WMSLayerInfoURL url)
           
protected  void addDataURLs(Set<WMSLayerInfoURL> urls)
           
protected  void addDimension(WMSLayerDimension dimension)
           
protected  void addDimensions(Set<WMSLayerDimension> dims)
           
protected  void addExtent(WMSLayerExtent extent)
           
protected  void addExtents(Set<WMSLayerExtent> inExtents)
           
protected  void addFeatureListURL(WMSLayerInfoURL url)
           
protected  void addFeatureListURLs(Set<WMSLayerInfoURL> urls)
           
protected  void addIdentifer(WMSLayerIdentifier identifier)
           
protected  void addIdentifiers(Set<WMSLayerIdentifier> ids)
           
protected  void addLayer(WMSLayerCapabilities layer)
           
protected  void addLayers(Set<WMSLayerCapabilities> inLayers)
           
protected  void addMetadataURL(WMSLayerInfoURL url)
           
protected  void addMetadataURLs(Set<WMSLayerInfoURL> urls)
           
protected  void addSRS(Set<String> srss)
           
protected  void addSRS(String srs)
           
protected  void addStyle(WMSLayerStyle style)
           
protected  void addStyles(Set<WMSLayerStyle> inStyles)
           
 XMLEventParser allocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)
          Create a parser for a specified event.
protected  void doParseEventAttributes(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent layerEvent, Object... args)
          Parse an event's attributes.
protected  void doParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, Object... args)
          Parse an event's sub-elements.
 Set<WMSLayerAttribution> getAttributions()
           
 Set<WMSAuthorityURL> getAuthorityURLs()
           
 Set<OGCBoundingBox> getBoundingBoxes()
           
 Boolean getCascaded()
           
 Set<String> getCRS()
           
 Set<WMSLayerInfoURL> getDataURLs()
           
 Set<WMSLayerDimension> getDimensions()
           
 WMSCapabilityInformation getEnclosingCapabilityInformation()
           
 Set<WMSLayerExtent> getExtents()
           
 Double getExtremeElevationMax()
           
 Double getExtremeElevationMin()
           
 Set<WMSLayerInfoURL> getFeatureListURLs()
           
 Integer getFixedHeight()
           
 Integer getFixedWidth()
           
 Sector getGeographicBoundingBox()
           
 Set<WMSLayerIdentifier> getIdentifiers()
           
 Set<String> getKeywords()
           
 String getLastUpdate()
           
 String getLayerAbstract()
           
 WMSLayerCapabilities getLayerByName(String name)
           
 List<WMSLayerCapabilities> getLayers()
           
 Double getMaxScaleDenominator()
           
 Double getMaxScaleHint()
           
 Set<WMSLayerInfoURL> getMetadataURLs()
           
 Double getMinScaleDenominator()
           
 Double getMinScaleHint()
           
 String getName()
           
 List<WMSLayerCapabilities> getNamedLayers()
           
 Set<String> getSRS()
           
 WMSLayerStyle getStyleByName(String name)
           
 Set<WMSLayerStyle> getStyles()
           
 String getTitle()
           
 boolean isLeaf()
           
 Boolean isNoSubsets()
           
 Boolean isOpaque()
           
 Boolean isQueryable()
           
protected  Boolean parseBooleanLayerAttribute(String s)
           
protected  void parseExtremeElevations(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent layerEvent)
           
protected  void parseGeographicBoundingBox(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent bboxEvent)
           
protected  void parseGeographicBoundingBoxV111(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent bboxEvent)
           
protected  void parseScaleHint(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent bboxEvent)
           
 void resolveAttributes(WMSLayerCapabilities parentLayer)
           
protected  void setAttributions(Set<WMSLayerAttribution> attributions)
           
protected  void setAuthorityURLs(Set<WMSAuthorityURL> urls)
           
protected  void setBoundingBoxes(Set<OGCBoundingBox> boxes)
           
protected  void setCascaded(Boolean cascaded)
           
protected  void setCRS(Set<String> crs)
           
protected  void setDimensions(Set<WMSLayerDimension> dimensions)
           
 void setEnclosingCapabilityInformation(WMSCapabilityInformation caps)
           
protected  void setExtremeElevationMax(Double extremeElevationMax)
           
protected  void setExtremeElevationMin(Double extremeElevationMin)
           
protected  void setFixedHeight(Integer height)
           
protected  void setFixedWidth(Integer width)
           
protected  void setGeographicBoundingBox(Sector geographicBoundingBox)
           
protected  void setKeywords(Set<String> keywords)
           
protected  void setLastUpdate(String lastUpdate)
           
protected  void setLayerAbstract(String layerAbstract)
           
protected  void setMaxScaleDenominator(Double maxScaleDenominator)
           
protected  void setMaxScaleHint(Double scaleHint)
           
protected  void setMinScaleDenominator(Double minScaleDenominator)
           
protected  void setMinScaleHint(Double scaleHint)
           
protected  void setName(String name)
           
protected  void setNoSubsets(Boolean noSubsets)
           
protected  void setOpaque(Boolean opaque)
           
protected  void setQueryable(Boolean queryable)
           
protected  void setSRS(Set<String> srs)
           
protected  void setStyles(Set<WMSLayerStyle> styles)
           
protected  void setTitle(String title)
           
 String toString()
           
 
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, wait, wait, wait
 

Field Detail

ABSTRACT

protected QName ABSTRACT

ATTRIBUTION

protected QName ATTRIBUTION

attributions

protected Set<WMSLayerAttribution> attributions

AUTHORITY_URL

protected QName AUTHORITY_URL

authorityURLs

protected Set<WMSAuthorityURL> authorityURLs

BOUNDING_BOX

protected QName BOUNDING_BOX

boundingBoxes

protected Set<OGCBoundingBox> boundingBoxes

cascaded

protected Boolean cascaded

crs

protected Set<String> crs

CRS

protected QName CRS

DATA_URL

protected QName DATA_URL

dataURLs

protected Set<WMSLayerInfoURL> dataURLs

DIMENSION

protected QName DIMENSION

dimensions

protected Set<WMSLayerDimension> dimensions

enclosingCapabilityInformation

protected WMSCapabilityInformation enclosingCapabilityInformation

EXTENT

protected QName EXTENT

extents

protected Set<WMSLayerExtent> extents

EXTREME_ELEVATIONS

protected QName EXTREME_ELEVATIONS

extremeElevationMax

protected Double extremeElevationMax

extremeElevationMin

protected Double extremeElevationMin

FEATURE_LIST_URL

protected QName FEATURE_LIST_URL

featureListURLs

protected Set<WMSLayerInfoURL> featureListURLs

fixedHeight

protected Integer fixedHeight

fixedWidth

protected Integer fixedWidth

GEOGRAPHIC_BOUNDING_BOX

protected QName GEOGRAPHIC_BOUNDING_BOX

geographicBoundingBox

protected Sector geographicBoundingBox

IDENTIFIER

protected QName IDENTIFIER

identifiers

protected Set<WMSLayerIdentifier> identifiers

KEYWORD

protected QName KEYWORD

KEYWORD_LIST

protected QName KEYWORD_LIST

keywords

protected Set<String> keywords

LAST_UPDATE

protected QName LAST_UPDATE

lastUpdate

protected String lastUpdate

LAT_LON_BOUNDING_BOX

protected QName LAT_LON_BOUNDING_BOX

LAYER

protected QName LAYER

layerAbstract

protected String layerAbstract

layers

protected List<WMSLayerCapabilities> layers

MAX_SCALE_DENOMINATOR

protected QName MAX_SCALE_DENOMINATOR

maxScaleDenominator

protected Double maxScaleDenominator

maxScaleHint

protected Double maxScaleHint

METADATA_URL

protected QName METADATA_URL

metadataURLs

protected Set<WMSLayerInfoURL> metadataURLs

MIN_SCALE_DENOMINATOR

protected QName MIN_SCALE_DENOMINATOR

minScaleDenominator

protected Double minScaleDenominator

minScaleHint

protected Double minScaleHint

name

protected String name

NAME

protected QName NAME

noSubsets

protected Boolean noSubsets

opaque

protected Boolean opaque

parent

protected WMSLayerCapabilities parent

queryable

protected Boolean queryable

SCALE_HINT

protected QName SCALE_HINT

srs

protected Set<String> srs

SRS

protected QName SRS

STYLE

protected QName STYLE

styles

protected Set<WMSLayerStyle> styles

title

protected String title

TITLE

protected QName TITLE
Constructor Detail

WMSLayerCapabilities

public WMSLayerCapabilities(String namespaceURI)
Method Detail

addAttribution

protected void addAttribution(WMSLayerAttribution attribution)

addAttributions

protected void addAttributions(Set<WMSLayerAttribution> attribs)

addAuthorityURL

protected void addAuthorityURL(WMSAuthorityURL authorityURL)

addAuthorityURLs

protected void addAuthorityURLs(Set<WMSAuthorityURL> urls)

addBoundingBox

protected void addBoundingBox(OGCBoundingBox box)

addBoundingBoxes

protected void addBoundingBoxes(Set<OGCBoundingBox> boxes)

addCRS

protected void addCRS(Set<String> crss)

addCRS

protected void addCRS(String crs)

addDataURL

protected void addDataURL(WMSLayerInfoURL url)

addDataURLs

protected void addDataURLs(Set<WMSLayerInfoURL> urls)

addDimension

protected void addDimension(WMSLayerDimension dimension)

addDimensions

protected void addDimensions(Set<WMSLayerDimension> dims)

addExtent

protected void addExtent(WMSLayerExtent extent)

addExtents

protected void addExtents(Set<WMSLayerExtent> inExtents)

addFeatureListURL

protected void addFeatureListURL(WMSLayerInfoURL url)

addFeatureListURLs

protected void addFeatureListURLs(Set<WMSLayerInfoURL> urls)

addIdentifer

protected void addIdentifer(WMSLayerIdentifier identifier)

addIdentifiers

protected void addIdentifiers(Set<WMSLayerIdentifier> ids)

addLayer

protected void addLayer(WMSLayerCapabilities layer)

addLayers

protected void addLayers(Set<WMSLayerCapabilities> inLayers)

addMetadataURL

protected void addMetadataURL(WMSLayerInfoURL url)

addMetadataURLs

protected void addMetadataURLs(Set<WMSLayerInfoURL> urls)

addSRS

protected void addSRS(Set<String> srss)

addSRS

protected void addSRS(String srs)

addStyle

protected void addStyle(WMSLayerStyle style)

addStyles

protected void addStyles(Set<WMSLayerStyle> inStyles)

allocate

public XMLEventParser allocate(XMLEventParserContext ctx,
                               javax.xml.stream.events.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,
                                      javax.xml.stream.events.XMLEvent layerEvent,
                                      Object... args)
Description copied from class: AbstractXMLEventParser
Parse an event's attributes.

Overrides:
doParseEventAttributes in class AbstractXMLEventParser
Parameters:
ctx - a current parser context.
layerEvent - the event to parse.
args - an optional list of arguments that may by used by subclasses.

doParseEventContent

protected void doParseEventContent(XMLEventParserContext ctx,
                                   javax.xml.stream.events.XMLEvent event,
                                   Object... args)
                            throws javax.xml.stream.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:
javax.xml.stream.XMLStreamException - if an exception occurs during event-stream reading.

getAttributions

public Set<WMSLayerAttribution> getAttributions()

getAuthorityURLs

public Set<WMSAuthorityURL> getAuthorityURLs()

getBoundingBoxes

public Set<OGCBoundingBox> getBoundingBoxes()

getCascaded

public Boolean getCascaded()

getCRS

public Set<String> getCRS()

getDataURLs

public Set<WMSLayerInfoURL> getDataURLs()

getDimensions

public Set<WMSLayerDimension> getDimensions()

getEnclosingCapabilityInformation

public WMSCapabilityInformation getEnclosingCapabilityInformation()

getExtents

public Set<WMSLayerExtent> getExtents()

getExtremeElevationMax

public Double getExtremeElevationMax()

getExtremeElevationMin

public Double getExtremeElevationMin()

getFeatureListURLs

public Set<WMSLayerInfoURL> getFeatureListURLs()

getFixedHeight

public Integer getFixedHeight()

getFixedWidth

public Integer getFixedWidth()

getGeographicBoundingBox

public Sector getGeographicBoundingBox()

getIdentifiers

public Set<WMSLayerIdentifier> getIdentifiers()

getKeywords

public Set<String> getKeywords()

getLastUpdate

public String getLastUpdate()

getLayerAbstract

public String getLayerAbstract()

getLayerByName

public WMSLayerCapabilities getLayerByName(String name)

getLayers

public List<WMSLayerCapabilities> getLayers()

getMaxScaleDenominator

public Double getMaxScaleDenominator()

getMaxScaleHint

public Double getMaxScaleHint()

getMetadataURLs

public Set<WMSLayerInfoURL> getMetadataURLs()

getMinScaleDenominator

public Double getMinScaleDenominator()

getMinScaleHint

public Double getMinScaleHint()

getName

public String getName()

getNamedLayers

public List<WMSLayerCapabilities> getNamedLayers()

getSRS

public Set<String> getSRS()

getStyleByName

public WMSLayerStyle getStyleByName(String name)

getStyles

public Set<WMSLayerStyle> getStyles()

getTitle

public String getTitle()

isLeaf

public boolean isLeaf()

isNoSubsets

public Boolean isNoSubsets()

isOpaque

public Boolean isOpaque()

isQueryable

public Boolean isQueryable()

parseBooleanLayerAttribute

protected Boolean parseBooleanLayerAttribute(String s)

parseExtremeElevations

protected void parseExtremeElevations(XMLEventParserContext ctx,
                                      javax.xml.stream.events.XMLEvent layerEvent)

parseGeographicBoundingBox

protected void parseGeographicBoundingBox(XMLEventParserContext ctx,
                                          javax.xml.stream.events.XMLEvent bboxEvent)
                                   throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

parseGeographicBoundingBoxV111

protected void parseGeographicBoundingBoxV111(XMLEventParserContext ctx,
                                              javax.xml.stream.events.XMLEvent bboxEvent)
                                       throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

parseScaleHint

protected void parseScaleHint(XMLEventParserContext ctx,
                              javax.xml.stream.events.XMLEvent bboxEvent)
                       throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

resolveAttributes

public void resolveAttributes(WMSLayerCapabilities parentLayer)

setAttributions

protected void setAttributions(Set<WMSLayerAttribution> attributions)

setAuthorityURLs

protected void setAuthorityURLs(Set<WMSAuthorityURL> urls)

setBoundingBoxes

protected void setBoundingBoxes(Set<OGCBoundingBox> boxes)

setCascaded

protected void setCascaded(Boolean cascaded)

setCRS

protected void setCRS(Set<String> crs)

setDimensions

protected void setDimensions(Set<WMSLayerDimension> dimensions)

setEnclosingCapabilityInformation

public void setEnclosingCapabilityInformation(WMSCapabilityInformation caps)

setExtremeElevationMax

protected void setExtremeElevationMax(Double extremeElevationMax)

setExtremeElevationMin

protected void setExtremeElevationMin(Double extremeElevationMin)

setFixedHeight

protected void setFixedHeight(Integer height)

setFixedWidth

protected void setFixedWidth(Integer width)

setGeographicBoundingBox

protected void setGeographicBoundingBox(Sector geographicBoundingBox)

setKeywords

protected void setKeywords(Set<String> keywords)

setLastUpdate

protected void setLastUpdate(String lastUpdate)

setLayerAbstract

protected void setLayerAbstract(String layerAbstract)

setMaxScaleDenominator

protected void setMaxScaleDenominator(Double maxScaleDenominator)

setMaxScaleHint

protected void setMaxScaleHint(Double scaleHint)

setMinScaleDenominator

protected void setMinScaleDenominator(Double minScaleDenominator)

setMinScaleHint

protected void setMinScaleHint(Double scaleHint)

setName

protected void setName(String name)

setNoSubsets

protected void setNoSubsets(Boolean noSubsets)

setOpaque

protected void setOpaque(Boolean opaque)

setQueryable

protected void setQueryable(Boolean queryable)

setSRS

protected void setSRS(Set<String> srs)

setStyles

protected void setStyles(Set<WMSLayerStyle> styles)

setTitle

protected void setTitle(String title)

toString

public String toString()
Overrides:
toString in class Object

NASA World Wind