Class TLcdSLDUserStyle

All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdSLDUserStyle extends ALcdSLDLayerStyle
Represents a user-defined style for a user-defined layer within a Styled Layer Descriptor.
  • Constructor Details

    • TLcdSLDUserStyle

      public TLcdSLDUserStyle()
      Creates a new TLcdSLDUserStyle instance.
    • TLcdSLDUserStyle

      public TLcdSLDUserStyle(String aName, TLcdSLDDescription aDescription, TLcdSLDFeatureTypeStyle[] aFeatureTypeStyles, boolean aDefault)
      Creates a new TLcdSLDUserStyle instance with the given name, description and feature type styles.
      Parameters:
      aName - The name of the layer style.
      aDescription - The description of the layer style.
      aFeatureTypeStyles - The feature type style(s) of the layer style.
      aDefault - Whether this is a default style or not.
    • TLcdSLDUserStyle

      public TLcdSLDUserStyle(TLcdDataType aTLcdDataType)
      Creates a new TLcdSLDUserStyle instance.
  • Method Details

    • addFeatureTypeStyle

      public void addFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle)
      Adds a feature type style to this user-defined style.
      Parameters:
      aFeatureTypeStyle - a feature type style to be added.
    • removeFeatureTypeStyle

      public void removeFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle)
      Removes a feature type style from this user-defined style.
      Parameters:
      aFeatureTypeStyle - the feature type style to be removed.
    • getFeatureTypeStyle

      public TLcdSLDFeatureTypeStyle getFeatureTypeStyle(int aIndex)
      Returns the feature type style at the given index.
      Parameters:
      aIndex - The index of the feature type style to be retrieved.
      Returns:
      the feature type style at the given index.
    • getFeatureTypeStyleCount

      public int getFeatureTypeStyleCount()
      Returns the number of feature type styles associated with this user-defined style.
      Returns:
      the number of feature type styles associated with this user-defined style.
    • getDescription

      public TLcdSLDDescription getDescription()
      Returns the value of the property that maps to the Description element.

      A "Description" gives human-readable descriptive information for the object it is included within.

      Returns:
      the value of the DESCRIPTION_PROPERTY property.
    • setDescription

      public void setDescription(TLcdSLDDescription aValue)
      Sets the value of the property that maps to the Description element.

      A "Description" gives human-readable descriptive information for the object it is included within.

      Parameters:
      aValue - the value to set for the DESCRIPTION_PROPERTY property.
    • isDefault

      public boolean isDefault()
      Returns the value of the property that maps to the Default element.
      Returns:
      the value of the DEFAULT_PROPERTY property.
    • setDefault

      public void setDefault(boolean aValue)
      Sets the value of the property that maps to the Default element.
      Parameters:
      aValue - the value to set for the DEFAULT_PROPERTY property.
    • getFeatureTypeStyle

      public List<ILcdDataObject> getFeatureTypeStyle()
      Returns the value of the property that maps to the choice between the FeatureTypeStyle and OnlineResource elements.

      The possible values for this property are instances of java.util.List with elements of class

      Returns:
      the value of the FEATURE_TYPE_STYLE_PROPERTY property.