Package com.luciad.wms.sld.model
Class TLcdSLDStyledLayerDescriptor
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.wms.sld.model.TLcdSLDStyledLayerDescriptor
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
A Styled Layer Descriptor contains a set of layers, which can be named or
user-defined and can have additional styling information.
- Since:
- 6.1
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdSLDStyledLayerDescriptorinstance.TLcdSLDStyledLayerDescriptor(TLcdDataType aDataType) Creates a newTLcdSLDStyledLayerDescriptorinstance.TLcdSLDStyledLayerDescriptor(String aName, TLcdSLDDescription aDescription, String aVersion, ALcdSLDLayer[] aLayers) Creates a newTLcdSLDStyledLayerDescriptorinstance with a given name, description, version and layer(s). -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayer(ALcdSLDLayer aSLDLayer) Adds a layer to this Styled Layer Descriptor.Returns the value of the property that maps to theDescriptionelement.getLayer()Returns the value of the property that maps to the choice between theNamedLayerandUserLayerelements.getLayer(int aIndex) Returns the layer at the given index.intReturns the number of layers within this Styled Layer Descriptor.getName()Returns the value of the property that maps to theNameelement.Returns the value of the property that maps to theversionattribute.voidremoveLayer(ALcdSLDLayer aSLDLayer) Removes a layer from this Styled Layer Descriptor.voidsetDescription(TLcdSLDDescription aValue) Sets the value of the property that maps to theDescriptionelement.voidSets the value of the property that maps to theNameelement.voidsetVersion(String aValue) Sets the value of the property that maps to theversionattribute.
-
Constructor Details
-
TLcdSLDStyledLayerDescriptor
public TLcdSLDStyledLayerDescriptor()Creates a newTLcdSLDStyledLayerDescriptorinstance. The version will be set to the default version used by LuciadLightspeed which is currently 1.1.0. If a specific, fixed version is needed, it should be set explicitly. -
TLcdSLDStyledLayerDescriptor
public TLcdSLDStyledLayerDescriptor(String aName, TLcdSLDDescription aDescription, String aVersion, ALcdSLDLayer[] aLayers) Creates a newTLcdSLDStyledLayerDescriptorinstance with a given name, description, version and layer(s).- Parameters:
aName- The name of the Styled Layer Descriptor.aDescription- The description of the Styled Layer Descriptor.aVersion- The version of the Styled Layer Descriptor. This should be1.1.0or1.0.0.aLayers- The layer(s) of the Styled Layer Descriptor.
-
TLcdSLDStyledLayerDescriptor
Creates a newTLcdSLDStyledLayerDescriptorinstance. The version will be set to the default version used by LuciadLightspeed which is currently 1.1.0. If a specific, fixed version is needed, it should be set explicitly.
-
-
Method Details
-
getLayerCount
public int getLayerCount()Returns the number of layers within this Styled Layer Descriptor.- Returns:
- the number of layers within this Styled Layer Descriptor.
-
getLayer
Returns the layer at the given index.- Parameters:
aIndex- The index of the layer to be retrieved.- Returns:
- the layer at the given index.
-
addLayer
Adds a layer to this Styled Layer Descriptor.- Parameters:
aSLDLayer- the layer to be added.
-
removeLayer
Removes a layer from this Styled Layer Descriptor.- Parameters:
aSLDLayer- the layer to be removed.
-
getVersion
Returns the value of the property that maps to theversionattribute.- Returns:
- the value of the
VERSION_PROPERTYproperty.
-
setVersion
Sets the value of the property that maps to theversionattribute.- Parameters:
aValue- the value to set for theVERSION_PROPERTYproperty.
-
getName
Returns the value of the property that maps to theNameelement.- Returns:
- the value of the
NAME_PROPERTYproperty.
-
setName
Sets the value of the property that maps to theNameelement.- Parameters:
aValue- the value to set for theNAME_PROPERTYproperty.
-
getDescription
Returns the value of the property that maps to theDescriptionelement.A "Description" gives human-readable descriptive information for the object it is included within.
- Returns:
- the value of the
DESCRIPTION_PROPERTYproperty.
-
setDescription
Sets the value of the property that maps to theDescriptionelement.A "Description" gives human-readable descriptive information for the object it is included within.
- Parameters:
aValue- the value to set for theDESCRIPTION_PROPERTYproperty.
-
getLayer
Returns the value of the property that maps to the choice between theNamedLayerandUserLayerelements.The possible values for this property are instances of
java.util.Listwith elements of class- Returns:
- the value of the
LAYER_PROPERTYproperty.
-