deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.context
Class SLD

java.lang.Object
  extended by org.deegree.portal.context.SLD

public class SLD
extends java.lang.Object

This class encapsulates the descriptions of a SLD element as defined by the OGC Web Map Context specification.

The <SLD> element must contain required <Name> and optional <Title> elements which identify the particular element of a Styled Layer Descriptor to be used for this style. The <SLD> element must then contain one of three alternative sources of description of a layer style:

1. an <OnlineResource> element describing a link to the specified SLD document.

<OnlineResource xmlns:xlink="http://www.w3.org/TR/xlink" xlink:type="simple" xlink:href=�http://example.org/this/is/an/example/link/to/the/sld">

This reference may be to a separately referenced SLD document or to an inline <StyledLayerDescriptor> in the same context document (which may define the styles for multiple layers within the Web Map Context)

2. <StyledLayerDescriptor> element containing inline the namedStyle or userStyle named in the enclosing <Style> element

3. <FeatureTypeStyle> element containing inline the specific feature styling instructions for the enclosing <Style> element

Version:
$Revision: 18195 $
Author:
Andreas Poth

Constructor Summary
SLD(java.lang.String name, java.lang.String title, FeatureTypeStyle featureTypeStyle)
          Creates a new SLD object.
SLD(java.lang.String name, java.lang.String title, StyledLayerDescriptor styledLayerDescriptor)
          Creates a new SLD object.
SLD(java.lang.String name, java.lang.String title, java.net.URL onlineResource)
          Creates a new SLD object.
 
Method Summary
 FeatureTypeStyle getFeatureTypeStyle()
          containing inline the specific feature styling instructions for the enclosing <Style> element
 java.lang.String getName()
          name of the SLD
 java.net.URL getOnlineResource()
          describing a link to the specified SLD document.
 StyledLayerDescriptor getStyledLayerDescriptor()
          inline the namedStyle or userStyle named in the enclosing <Style> element
 java.lang.String getTitle()
          title of the SLD
 void setFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
          see also org.deegree.clients.context.SLD#getFeatureTypeStyle()
 void setName(java.lang.String name)
          see also org.deegree.clients.context.SLD#getName()
 void setOnlineResource(java.net.URL onlineResource)
          see also org.deegree.clients.context.Server#getOnlineResource()
 void setStyledLayerDescriptor(StyledLayerDescriptor styledLayerDescriptor)
          see also org.deegree.clients.context.SLD#getStyledLayerDescriptor()
 void setTitle(java.lang.String title)
          see also org.deegree.clients.context.Server#getTitle()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLD

public SLD(java.lang.String name,
           java.lang.String title,
           StyledLayerDescriptor styledLayerDescriptor)
    throws ContextException
Creates a new SLD object.

Parameters:
name - name of the SLD
title - title of the SLD
styledLayerDescriptor - complete StyledLayerDescriptor
Throws:
ContextException

SLD

public SLD(java.lang.String name,
           java.lang.String title,
           java.net.URL onlineResource)
    throws ContextException
Creates a new SLD object.

Parameters:
name - name of the SLD
title - title of the SLD
onlineResource - online resource where to access the StyledLayerDescriptor
Throws:
ContextException

SLD

public SLD(java.lang.String name,
           java.lang.String title,
           FeatureTypeStyle featureTypeStyle)
    throws ContextException
Creates a new SLD object.

Parameters:
name - name of the SLD
title - title of the SLD
featureTypeStyle - one concrete FeatureTypeStyle as part of a StyledLayerDescriptor
Throws:
ContextException
Method Detail

getName

public java.lang.String getName()
name of the SLD

Returns:
name of the SLD

getTitle

public java.lang.String getTitle()
title of the SLD

Returns:
title of the SLD

getOnlineResource

public java.net.URL getOnlineResource()
describing a link to the specified SLD document.

Returns:
a link to the specified SLD document.

getFeatureTypeStyle

public FeatureTypeStyle getFeatureTypeStyle()
containing inline the specific feature styling instructions for the enclosing <Style> element

Returns:
the enclosing <Style> element

getStyledLayerDescriptor

public StyledLayerDescriptor getStyledLayerDescriptor()
inline the namedStyle or userStyle named in the enclosing <Style> element

Returns:
the namedStyle or userStyle

setName

public void setName(java.lang.String name)
see also org.deegree.clients.context.SLD#getName()

Parameters:
name -

setTitle

public void setTitle(java.lang.String title)
see also org.deegree.clients.context.Server#getTitle()

Parameters:
title -

setOnlineResource

public void setOnlineResource(java.net.URL onlineResource)
                       throws ContextException
see also org.deegree.clients.context.Server#getOnlineResource()

Parameters:
onlineResource -
Throws:
ContextException

setFeatureTypeStyle

public void setFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
                         throws ContextException
see also org.deegree.clients.context.SLD#getFeatureTypeStyle()

Parameters:
featureTypeStyle -
Throws:
ContextException

setStyledLayerDescriptor

public void setStyledLayerDescriptor(StyledLayerDescriptor styledLayerDescriptor)
                              throws ContextException
see also org.deegree.clients.context.SLD#getStyledLayerDescriptor()

Parameters:
styledLayerDescriptor -
Throws:
ContextException

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org