org.deegree_impl.graphics.sld
Class StyledLayerDescriptor_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.sld.StyledLayerDescriptor_Impl
All Implemented Interfaces:
Marshallable, StyledLayerDescriptor

public class StyledLayerDescriptor_Impl
extends java.lang.Object
implements StyledLayerDescriptor, Marshallable

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.12 $ $Date: 2004/03/15 07:34:38 $
Author:
Katharina Lupp

Field Summary
private  java.lang.String abstract_
           
private  java.util.ArrayList layers
           
private  java.lang.String name
           
private  java.lang.String title
           
private  java.lang.String version
           
 
Constructor Summary
(package private) StyledLayerDescriptor_Impl(Layer[] layers, java.lang.String version)
          constructor initializing the class with the
(package private) StyledLayerDescriptor_Impl(java.lang.String name, java.lang.String title, java.lang.String version, java.lang.String abstract_, Layer[] layers)
           
 
Method Summary
 void addLayer(Layer layer)
          adds the
 java.lang.String exportAsXML()
          exports the content of the Font as XML formated String
 java.lang.String getAbstract()
           
 Layer[] getLayers()
           
 java.lang.String getName()
           
 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.
 java.lang.String getTitle()
           
 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 the
 void setAbstract(java.lang.String abstract_)
           
 void setLayers(Layer[] layers)
          Sets Layers
 void setName(java.lang.String name)
           
 void setTitle(java.lang.String title)
           
 void setVersion(java.lang.String version)
          sets the
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layers

private java.util.ArrayList layers

version

private java.lang.String version

abstract_

private java.lang.String abstract_

name

private java.lang.String name

title

private java.lang.String title
Constructor Detail

StyledLayerDescriptor_Impl

StyledLayerDescriptor_Impl(java.lang.String name,
                           java.lang.String title,
                           java.lang.String version,
                           java.lang.String abstract_,
                           Layer[] layers)
Parameters:
name -
title -
version -
abstract_ -
layers -

StyledLayerDescriptor_Impl

StyledLayerDescriptor_Impl(Layer[] layers,
                           java.lang.String version)
constructor initializing the class with the

Method Detail

getLayers

public Layer[] getLayers()
Specified by:
getLayers in interface StyledLayerDescriptor
Returns:
the Layers as Array

setLayers

public void setLayers(Layer[] layers)
Sets Layers

Specified by:
setLayers in interface StyledLayerDescriptor
Parameters:
layers - the Layers as Array

addLayer

public void addLayer(Layer layer)
adds the

Specified by:
addLayer in interface StyledLayerDescriptor
Parameters:
layer - a Layer to add

removeLayer

public void removeLayer(Layer layer)
removes the

Specified by:
removeLayer in interface StyledLayerDescriptor
Parameters:
layer - a Layer to remove

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.

Specified by:
getUserLayers in interface StyledLayerDescriptor
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.

Specified by:
getNamedLayers in interface StyledLayerDescriptor
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.

Specified by:
getVersion in interface StyledLayerDescriptor
Returns:
the version of the SLD as String

setVersion

public void setVersion(java.lang.String version)
sets the

Specified by:
setVersion in interface StyledLayerDescriptor
Parameters:
version - the version of the SLD

getAbstract

public java.lang.String getAbstract()
Returns:
Returns the abstract_.

setAbstract

public void setAbstract(java.lang.String abstract_)
Parameters:
abstract_ - The abstract_ to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getTitle

public java.lang.String getTitle()
Returns:
Returns the title.

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - The title to set.

exportAsXML

public java.lang.String exportAsXML()
exports the content of the Font as XML formated String

Specified by:
exportAsXML in interface Marshallable
Returns:
xml representation of the Font