Class TLcdSLDParameterValue

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.TLcdSLDParameterValue
All Implemented Interfaces:
ILcdDataObject, ILcdGenericExpression, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdSLDParameterValue extends TLcdDataObject implements ILcdGenericExpression
The "ParameterValue" uses OGC Filter expressions to give values for SLD graphic parameters. A "mixed" element-content model is used with textual substitution for values. E.g. the value for a color consists of 6 hexadecimal digits preceded by a #. This could be given by
 <CssParameter name="fill">#00<ogc:PropertyName>greenband</ogc:PropertyName>FF</CssParameter>
 

If you want to retrieve the actual value for a given object, you can construct an ILcdEvaluator using the TLcdSLDFunctionEvaluatorFactory.

  • Constructor Details

    • TLcdSLDParameterValue

      public TLcdSLDParameterValue(Vector aContents)
      Constructs a parameterized value.
      Parameters:
      aContents - the contents that should be evaluated. The contents can be mixed, i.e., a combination of text and expressions. The Vector should therefore only contain String or ILcdOGCExpression objects.
    • TLcdSLDParameterValue

      public TLcdSLDParameterValue(ILcdOGCExpression aOGCExpression)
      Constructor for the simple case where the contents only consists of an expression.
      Parameters:
      aOGCExpression - the given expression.
    • TLcdSLDParameterValue

      public TLcdSLDParameterValue(String aTextContent)
      Constructor for the simple case where the contents consists only of text.
      Parameters:
      aTextContent -
    • TLcdSLDParameterValue

      public TLcdSLDParameterValue()
      Empty constructor
  • Method Details

    • getContentCount

      public int getContentCount()
      Gets the content count.
      Returns:
      the content count.
    • getContent

      public Object getContent(int aIndex)
      Gets the content at a given position.
      Parameters:
      aIndex - the index of the given position.
      Returns:
      the content at a given position.
    • isContentExpression

      public boolean isContentExpression(int aIndex)
      Checks whether the content at a given position is an expression or not.
      Parameters:
      aIndex - the index of the given position.
      Returns:
      true if the content at a given position is an expression. false if not.
    • isContentText

      public boolean isContentText(int aIndex)
      Checks whether the content at a given position is a text or not.
      Parameters:
      aIndex - the index of the given position.
      Returns:
      true if the content at a given position is a text. false if not.
    • removeContent

      public void removeContent(int aIndex)
      Removes the content at the specified index.
      Parameters:
      aIndex - the index of the content to remove.
    • getExpression

      public ILcdOGCExpression getExpression(int aContentIndex)
      Gets the expression at a given position.
      Parameters:
      aContentIndex - the index of the given position.
      Returns:
      the expression at a given position.
    • getText

      public String getText(int aContentIndex)
      Gets the text at a given position.
      Parameters:
      aContentIndex - the index of the given position.
      Returns:
      the text at a given position.
    • addContent

      public void addContent(Object aContent)
      Adds a content. The content must be either an ILcdOGCExpression or a String.
      Parameters:
      aContent - the content to be added.
    • addContent

      public void addContent(int aIndex, Object aContent)
      Inserts a content at a given position. The content must be either an ILcdOGCExpression or a String.
      Parameters:
      aIndex - the index of the given position.
      aContent - the content to be added.
    • clone

      public TLcdSLDParameterValue clone()
      Description copied from class: TLcdDataObject
      Returns a deep clone of this object. This method delegates to TLcdDataObject.clone(Map).
      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class TLcdDataObject
      Returns:
      a deep clone of this object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class TLcdDataObject
    • getContent

      public List<Object> getContent()
      Returns the value of the content property.
      Returns:
      the value of the CONTENT_PROPERTY property.