public class TLcdSLDStyledLayerDescriptor extends TLcdDataObject
Constructor and Description |
---|
TLcdSLDStyledLayerDescriptor()
Creates a new
TLcdSLDStyledLayerDescriptor instance. |
TLcdSLDStyledLayerDescriptor(String aName,
TLcdSLDDescription aDescription,
String aVersion,
ALcdSLDLayer[] aLayers)
Creates a new
TLcdSLDStyledLayerDescriptor instance with a
given name, description, version and layer(s). |
TLcdSLDStyledLayerDescriptor(TLcdDataType aDataType)
Creates a new
TLcdSLDStyledLayerDescriptor instance. |
Modifier and Type | Method and Description |
---|---|
void |
addLayer(ALcdSLDLayer aSLDLayer)
Adds a layer to this Styled Layer Descriptor.
|
TLcdSLDDescription |
getDescription()
Returns the value of the property that maps to the
Description element. |
List<ALcdSLDLayer> |
getLayer()
Returns the value of the property that maps to the choice between the
NamedLayer and UserLayer elements. |
ALcdSLDLayer |
getLayer(int aIndex)
Returns the layer at the given index.
|
int |
getLayerCount()
Returns the number of layers within this Styled Layer Descriptor.
|
String |
getName()
Returns the value of the property that maps to the
Name element. |
String |
getVersion()
Returns the value of the property that maps to the
version attribute. |
void |
removeLayer(ALcdSLDLayer aSLDLayer)
Removes a layer from this Styled Layer Descriptor.
|
void |
setDescription(TLcdSLDDescription aValue)
Sets the value of the property that maps to the
Description element. |
void |
setName(String aValue)
Sets the value of the property that maps to the
Name element. |
void |
setVersion(String aValue)
Sets the value of the property that maps to the
version attribute. |
public TLcdSLDStyledLayerDescriptor()
TLcdSLDStyledLayerDescriptor
instance. 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.public TLcdSLDStyledLayerDescriptor(String aName, TLcdSLDDescription aDescription, String aVersion, ALcdSLDLayer[] aLayers)
TLcdSLDStyledLayerDescriptor
instance with a
given name, description, version and layer(s).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 be
1.1.0
or 1.0.0
.aLayers
- The layer(s) of the Styled Layer Descriptor.public TLcdSLDStyledLayerDescriptor(TLcdDataType aDataType)
TLcdSLDStyledLayerDescriptor
instance. 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.public int getLayerCount()
public ALcdSLDLayer getLayer(int aIndex)
aIndex
- The index of the layer to be retrieved.public void addLayer(ALcdSLDLayer aSLDLayer)
aSLDLayer
- the layer to be added.public void removeLayer(ALcdSLDLayer aSLDLayer)
aSLDLayer
- the layer to be removed.public String getVersion()
version
attribute.VERSION_PROPERTY
property.public void setVersion(String aValue)
version
attribute.aValue
- the value to set for the VERSION_PROPERTY
property.public String getName()
Name
element.NAME_PROPERTY
property.public void setName(String aValue)
Name
element.aValue
- the value to set for the NAME_PROPERTY
property.public TLcdSLDDescription getDescription()
Description
element.
A "Description" gives human-readable descriptive information for the object it is included within.
DESCRIPTION_PROPERTY
property.public void setDescription(TLcdSLDDescription aValue)
Description
element.
A "Description" gives human-readable descriptive information for the object it is included within.
aValue
- the value to set for the DESCRIPTION_PROPERTY
property.public List<ALcdSLDLayer> getLayer()
NamedLayer
and UserLayer
elements.
The possible values for this property are instances of java.util.List
with elements of class
LAYER_PROPERTY
property.