org.deegree.graphics.sld
Interface StyledLayerDescriptor

All Known Implementing Classes:
StyledLayerDescriptor_Impl

public interface StyledLayerDescriptor

StyledLayerDescriptor: This is a sequence of styled layers, represented at the first level by Layer and UserLayer elements. A "version" attribute has been added to allow the formatting of static-file

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

Version:
$Revision: 1.4 $ $Date: 2004/04/27 15:40:16 $
Author:
Andreas Poth

Method Summary
 void addLayer(Layer Layer)
          Adds a Layer
 Layer[] getLayers()
           
 NamedLayer[] getNamedLayers()
          A NamedLayer uses the "name" attribute to identify a layer known to the WMS and can contain zero or more styles, either NamedStyles or UserStyles.
 UserLayer[] getUserLayers()
          A UserLayer can contain one or more UserStyles.
 java.lang.String getVersion()
          The version attribute gives the SLD version of an SLD document, to facilitate backward compatibility with static documents stored in various different versions of the SLD spec.
 void removeLayer(Layer Layer)
          Removes a Layer
 void setLayers(Layer[] layers)
          Sets Layers
 void setVersion(java.lang.String version)
          Sets the Version.
 

Method Detail

getLayers

public Layer[] getLayers()
Returns:
the Layers as Array

setLayers

public void setLayers(Layer[] layers)
Sets Layers

Parameters:
layers - the Layers as Array

addLayer

public void addLayer(Layer Layer)
Adds a Layer

Parameters:
Layer - a Layer to add

removeLayer

public void removeLayer(Layer Layer)
Removes a Layer

Parameters:
Layer - a Layer to remvoe

getUserLayers

public UserLayer[] getUserLayers()
A UserLayer can contain one or more UserStyles. A UserLayer may direct the WMS to a specified WFS source of feature data. Multiple feature types can be included in a UserLayer, since this is semantically equivalent to a Layer. All feature types of a UserLayer come from the same WFS. The WFS can be named explicitly with the "wfs" attribute or it can be implied by context.

Returns:
the UserLayers as Array

getNamedLayers

public NamedLayer[] getNamedLayers()
A NamedLayer uses the "name" attribute to identify a layer known to the WMS and can contain zero or more styles, either NamedStyles or UserStyles. In the absence of any styles the default style for the layer is used.

Returns:
the NamedLayers as Array

getVersion

public java.lang.String getVersion()
The version attribute gives the SLD version of an SLD document, to facilitate backward compatibility with static documents stored in various different versions of the SLD spec. The string has the format x.y.z, the same as in other OpenGIS Web Server specs. For example, an SLD document stored according to this spec would have the version string 0.7.2.

Returns:
the version of the SLD as String

setVersion

public void setVersion(java.lang.String version)
Sets the Version.

Parameters:
version - the version of the SLD