org.deegree_impl.graphics.sld
Class Layer_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.sld.Layer_Impl
All Implemented Interfaces:
Layer
Direct Known Subclasses:
NamedLayer_Impl, UserLayer_Impl

public class Layer_Impl
extends java.lang.Object
implements Layer

----------------------------------------------------------------------

Version:
$Revision: 1.8 $ $Date: 2004/03/05 16:46:49 $
Author:
Katharina Lupp

Field Summary
protected  LayerFeatureConstraints layerFeatureConstraints
           
protected  java.lang.String name
           
protected  java.util.ArrayList styles
           
 
Constructor Summary
(package private) Layer_Impl(java.lang.String name, LayerFeatureConstraints layerFeatureConstraints, Style[] styles)
          constructor initializing the class with the
 
Method Summary
 void addStyle(Style style)
          Adds a style to the Layer.
 LayerFeatureConstraints getLayerFeatureConstraints()
          The LayerFeatureConstraints element is optional in a NamedLayer and allows the user to specify constraints on what features of what feature types are to be selected by the named-layer reference.
 java.lang.String getName()
          The Name element identifies the well-known name of the layer being referenced, and is required.
 Style[] getStyles()
          Returns the styles associated to the Layer.
 void removeStyle(Style style)
          Removes a style from the Layer.
 void setLayerFeatureConstraints(LayerFeatureConstraints layerFeatureConstraints)
          sets the
 void setName(java.lang.String name)
          sets the
 void setStyles(Style[] styles)
          Adds styles to the Layer.
 java.lang.String toString()
          returns a STring-Representation of the layer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

layerFeatureConstraints

protected LayerFeatureConstraints layerFeatureConstraints

styles

protected java.util.ArrayList styles

name

protected java.lang.String name
Constructor Detail

Layer_Impl

Layer_Impl(java.lang.String name,
           LayerFeatureConstraints layerFeatureConstraints,
           Style[] styles)
constructor initializing the class with the

Method Detail

getName

public java.lang.String getName()
The Name element identifies the well-known name of the layer being referenced, and is required. All possible well-known names are usually identified in the capabilities document for a server.

Specified by:
getName in interface Layer
Returns:
the name of the layer

setName

public void setName(java.lang.String name)
sets the

Specified by:
setName in interface Layer
Parameters:
name - the name of the layer

getLayerFeatureConstraints

public LayerFeatureConstraints getLayerFeatureConstraints()
The LayerFeatureConstraints element is optional in a NamedLayer and allows the user to specify constraints on what features of what feature types are to be selected by the named-layer reference. It is essentially a filter that allows the selection of fewer features than are present in the named layer.

Specified by:
getLayerFeatureConstraints in interface Layer
Returns:
the LayerFeatureConstraints

setLayerFeatureConstraints

public void setLayerFeatureConstraints(LayerFeatureConstraints layerFeatureConstraints)
sets the

Specified by:
setLayerFeatureConstraints in interface Layer
Parameters:
layerFeatureConstraints - the LayerFeatureConstraints

getStyles

public Style[] getStyles()
Returns the styles associated to the Layer. This may be UserStyles or NamedStyles

A UserStyle is at the same semantic level as a NamedStyle used in the context of a WMS. In a sense, a named style can be thought of as a reference to a hidden UserStyle that is stored inside of a map server.

Specified by:
getStyles in interface Layer
Returns:
the Styles of the Layer as ArrayList

setStyles

public void setStyles(Style[] styles)
Adds styles to the Layer.

Specified by:
setStyles in interface Layer
Parameters:
styles - the styles for the layer as Array

addStyle

public void addStyle(Style style)
Description copied from interface: Layer
Adds a style to the Layer.

Specified by:
addStyle in interface Layer
Parameters:
style - a style to add
See Also:
getStyles()

removeStyle

public void removeStyle(Style style)
Description copied from interface: Layer
Removes a style from the Layer.

Specified by:
removeStyle in interface Layer
Parameters:
style - a style to remove
See Also:
getStyles()

toString

public java.lang.String toString()
returns a STring-Representation of the layer

Returns:
the layer as String