org.geotools.data.ows
Class Layer

java.lang.Object
  extended byorg.geotools.data.ows.Layer
All Implemented Interfaces:
java.lang.Comparable

public class Layer
extends java.lang.Object
implements java.lang.Comparable

Nested list of zero or more map Layers offered by this server. It contains only fields for information that we currently find interesting. Feel free to add your own.

Author:
rgould

Constructor Summary
Layer()
           
Layer(java.lang.String title)
          DOCUMENT ME!
 
Method Summary
 int compareTo(java.lang.Object arg0)
           
 java.lang.String get_abstract()
          The abstract contains human-readable information about this layer
 java.util.HashMap getBoundingBoxes()
          Returns every BoundingBox associated with this layer.
 Layer[] getChildren()
           
 java.lang.String[] getKeywords()
          Keywords are Strings to be used in searches
 CRSEnvelope getLatLonBoundingBox()
          Returns the LatLonBoundingBox for this layer.
 java.lang.String getName()
          Gets the name of the Layer.
 Layer getParent()
          DOCUMENT ME!
 double getScaleHintMax()
           
 double getScaleHintMin()
           
 java.util.Set getSrs()
          Accumulates all of the srs/crs specified for this layer and all srs/crs inherited from its ancestors.
 java.util.List getStyles()
          Accumulates all of the styles specified for this layer and all styles inherited from its ancestors.
 java.lang.String getTitle()
           
 boolean isQueryable()
          Determines if this layer is queryable.
 void set_abstract(java.lang.String _abstract)
           
 void setBoundingBoxes(java.util.HashMap boundingBoxes)
          Sets this layer's bounding boxes.
 void setChildren(Layer[] children)
           
 void setKeywords(java.lang.String[] keywords)
           
 void setLatLonBoundingBox(CRSEnvelope latLonBoundingBox)
           
 void setName(java.lang.String name)
          Sets the name of this layer.
 void setParent(Layer parent)
          DOCUMENT ME!
 void setQueryable(boolean queryable)
           
 void setScaleHintMax(double scaleHintMax)
           
 void setScaleHintMin(double scaleHintMin)
           
 void setSrs(java.util.Set srs)
           
 void setStyles(java.util.List styles)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer()

Layer

public Layer(java.lang.String title)
DOCUMENT ME!

Parameters:
title -
Method Detail

getBoundingBoxes

public java.util.HashMap getBoundingBoxes()
Returns every BoundingBox associated with this layer. The HashMap returned has each bounding box's CRS/SRS value as the key, and the value is the BoundingBox object itself. Implements inheritance: if this layer's bounding box is null, query ancestors until the first bounding box is found or no more ancestors

Returns:
a HashMap of all of this layer's bounding boxes or null if no bounding boxes found

setBoundingBoxes

public void setBoundingBoxes(java.util.HashMap boundingBoxes)
Sets this layer's bounding boxes. The HashMap must have each BoundingBox's CRS/SRS value as its key, and the BoundingBox object as its value.

Parameters:
boundingBoxes - a HashMap containing bounding boxes

getName

public java.lang.String getName()
Gets the name of the Layer. It is designed to be machine readable, and if it is present, this layer is determined to be drawable and is a valid candidate for use in a GetMap or GetFeatureInfo request.

Returns:
the machine-readable name of the layer

setName

public void setName(java.lang.String name)
Sets the name of this layer. Giving the layer name indicates that it can be drawn during a GetMap or GetFeatureInfo request.

Parameters:
name - the layer's new name

getSrs

public java.util.Set getSrs()
Accumulates all of the srs/crs specified for this layer and all srs/crs inherited from its ancestors. No duplicates are returned.

Returns:
Set of all srs/crs for this layer and its ancestors

setSrs

public void setSrs(java.util.Set srs)

getStyles

public java.util.List getStyles()
Accumulates all of the styles specified for this layer and all styles inherited from its ancestors. No duplicates are returned. The List that is returned is of type List. Before 2.2-RC0 it was of type List.

Returns:
List of all styles for this layer and its ancestors

setStyles

public void setStyles(java.util.List styles)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

isQueryable

public boolean isQueryable()
Determines if this layer is queryable. Implements inheritance: if this layer's Queryable attribute is null, check ancestors until the first Queryable attribute is found or no more ancestors. If a Queryable attribute is not found for this layer, it will return the default value of false.

Returns:
true is this layer is Queryable

setQueryable

public void setQueryable(boolean queryable)

compareTo

public int compareTo(java.lang.Object arg0)
Specified by:
compareTo in interface java.lang.Comparable

getParent

public Layer getParent()
DOCUMENT ME!

Returns:
Returns the parent.

setParent

public void setParent(Layer parent)
DOCUMENT ME!

Parameters:
parent - The parent to set.

getLatLonBoundingBox

public CRSEnvelope getLatLonBoundingBox()
Returns the LatLonBoundingBox for this layer. Implements inheritance: if this layer's bounding box is null, query ancestors until the first bounding box is found or no more ancestors.

Returns:
the LatLonBoundingBox for this layer or null if no lat/lon bounding box is found

setLatLonBoundingBox

public void setLatLonBoundingBox(CRSEnvelope latLonBoundingBox)

getChildren

public Layer[] getChildren()

setChildren

public void setChildren(Layer[] children)

get_abstract

public java.lang.String get_abstract()
The abstract contains human-readable information about this layer

Returns:
Returns the _abstract.

set_abstract

public void set_abstract(java.lang.String _abstract)
Parameters:
_abstract - The _abstract to set.

getKeywords

public java.lang.String[] getKeywords()
Keywords are Strings to be used in searches

Returns:
Returns the keywords.

setKeywords

public void setKeywords(java.lang.String[] keywords)
Parameters:
keywords - The keywords to set.

getScaleHintMax

public double getScaleHintMax()

setScaleHintMax

public void setScaleHintMax(double scaleHintMax)

getScaleHintMin

public double getScaleHintMin()

setScaleHintMin

public void setScaleHintMin(double scaleHintMin)


Copyright © GeoTools. All Rights Reserved.