Class ALcdSLDLayer

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.wms.sld.model.ALcdSLDLayer
All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable
Direct Known Subclasses:
TLcdSLDNamedLayer, TLcdSLDUserLayer

public abstract class ALcdSLDLayer extends TLcdDataObject
Represents a layer (named or user-defined) in a Styled Layer Descriptor. Typically, you will never use this class directly. Instead, you will always work with one of its implementations, TLcdSLDUserLayer or TLcdSLDNamedLayer.
  • Constructor Details

    • ALcdSLDLayer

      public ALcdSLDLayer(String aName, ALcdSLDLayerStyle[] aSLDLayerStyles, TLcdSLDLayerFeatureConstraints aLayerFeatureConstraints, TLcdDataType aType)
      Constructs a new SLD Layer for the given parameter.
      Parameters:
      aName - The name of the layer.
      aSLDLayerStyles - The styles of the layer.
      aLayerFeatureConstraints - The layer feature constraint.
      aType - The type of the layer
    • ALcdSLDLayer

      public ALcdSLDLayer(TLcdDataType aType)
      Constructs a new SLD Layer with the given data type.
      Parameters:
      aType - the type of the layer
  • Method Details

    • getName

      public String getName()
      Returns the name of this SLD layer.
      Returns:
      the name of this SLD layer.
    • setName

      public void setName(String aLayerName)
      Sets the name of this SLD layer.
      Parameters:
      aLayerName - the name of this SLD layer
    • getLayerStyleCount

      public int getLayerStyleCount()
      Returns the number of styles associated with this SLD layer.
      Returns:
      the number of styles associated with this SLD layer.
    • getLayerStyle

      public ALcdSLDLayerStyle getLayerStyle(int aIndex) throws IndexOutOfBoundsException
      Returns the style of this SLD layer at a given index.
      Parameters:
      aIndex - the index of the style to return.
      Returns:
      the style of this SLD layer at a given index.
      Throws:
      IndexOutOfBoundsException
    • addLayerStyle

      public void addLayerStyle(ALcdSLDLayerStyle aLayerStyle)
      Adds a style to this SLD layer.
      Parameters:
      aLayerStyle - the style to be added.
    • removeLayerStyle

      public void removeLayerStyle(ALcdSLDLayerStyle aLayerStyle)
      Removes a style from this SLD layer.
      Parameters:
      aLayerStyle - the style to be removed.
    • getLayerFeatureConstraint

      public TLcdSLDLayerFeatureConstraints getLayerFeatureConstraint()
      Returns the feature constraint of this SLD layer.
      Returns:
      the feature constraint of this SLD layer.
    • setLayerFeatureConstraint

      public void setLayerFeatureConstraint(TLcdSLDLayerFeatureConstraints aLayerFeatureConstraints)
      Sets the feature constraint of this SLD layer.
      Parameters:
      aLayerFeatureConstraints - the feature constraint of this SLD layer