| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.portal.context.SLD
public class SLD
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
| Constructor Summary | |
|---|---|
SLD(String name,
       String title,
       FeatureTypeStyle featureTypeStyle)
Creates a new SLD object.  | 
|
SLD(String name,
       String title,
       StyledLayerDescriptor styledLayerDescriptor)
Creates a new SLD object.  | 
|
SLD(String name,
       String title,
       URL onlineResource)
Creates a new SLD object.  | 
|
| Method Summary | |
|---|---|
 FeatureTypeStyle | 
getFeatureTypeStyle()
containing inline the specific feature styling instructions for the enclosing <Style>
 element | 
 String | 
getName()
name of the SLD  | 
 URL | 
getOnlineResource()
describing a link to the specified SLD document.  | 
 StyledLayerDescriptor | 
getStyledLayerDescriptor()
inline the namedStyle or userStyle named in the enclosing <Style> element  | 
 String | 
getTitle()
title of the SLD  | 
 void | 
setFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
see also org.deegree.clients.context.SLD#getFeatureTypeStyle()  | 
 void | 
setName(String name)
see also org.deegree.clients.context.SLD#getName()  | 
 void | 
setOnlineResource(URL onlineResource)
see also org.deegree.clients.context.Server#getOnlineResource()  | 
 void | 
setStyledLayerDescriptor(StyledLayerDescriptor styledLayerDescriptor)
see also org.deegree.clients.context.SLD#getStyledLayerDescriptor()  | 
 void | 
setTitle(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 | 
|---|
public SLD(String name,
           String title,
           StyledLayerDescriptor styledLayerDescriptor)
    throws ContextException
name - name of the SLDtitle - title of the SLDstyledLayerDescriptor - complete StyledLayerDescriptor
ContextException
public SLD(String name,
           String title,
           URL onlineResource)
    throws ContextException
name - name of the SLDtitle - title of the SLDonlineResource - online resource where to access the StyledLayerDescriptor
ContextException
public SLD(String name,
           String title,
           FeatureTypeStyle featureTypeStyle)
    throws ContextException
name - name of the SLDtitle - title of the SLDfeatureTypeStyle - one concrete FeatureTypeStyle as part of a StyledLayerDescriptor
ContextException| Method Detail | 
|---|
public String getName()
public String getTitle()
public URL getOnlineResource()
public FeatureTypeStyle getFeatureTypeStyle()
<Style>
 element
<Style> elementpublic StyledLayerDescriptor getStyledLayerDescriptor()
public void setName(String name)
name - public void setTitle(String title)
title - 
public void setOnlineResource(URL onlineResource)
                       throws ContextException
onlineResource - 
ContextException
public void setFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
                         throws ContextException
featureTypeStyle - 
ContextException
public void setStyledLayerDescriptor(StyledLayerDescriptor styledLayerDescriptor)
                              throws ContextException
styledLayerDescriptor - 
ContextException
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org