Class TLcdSLDFormatDate

All Implemented Interfaces:
ILcdDataObject, ILcdGenericExpression, ILcdOGCExpression, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdSLDFormatDate extends TLcdSLDFunction
Function for formatting dates. Accepts patterns such as: 'YYYY-MM-DDThh:mm:ss', 'hha', 'HH:mm a z'. Example:

 <FormatDate>
   <DateValue><ogc:PropertyName>EventTime</ogc:PropertyName></DateValue>
   <Pattern>yyyy-MM-dd</Pattern>
 </FormatDate>
 
Since:
2012.1
  • Constructor Details

    • TLcdSLDFormatDate

      public TLcdSLDFormatDate()
      Default Constructor
    • TLcdSLDFormatDate

      public TLcdSLDFormatDate(TLcdDataType aType)
      Default Constructor
    • TLcdSLDFormatDate

      public TLcdSLDFormatDate(TLcdSLDParameterValue aDateValue, String aPattern)
      Creates a new instance and initializes the properties with the given values.
  • Method Details

    • getDateValue

      public TLcdSLDParameterValue getDateValue()
      Returns the value of the property that maps to the DateValue element.

      A parameter value that evaluates to something that can be formatted as a date. For XML formats, this is usually an object of type XMLGregorianCalendar.

      Returns:
      the value of the DATE_VALUE_PROPERTY property.
    • setDateValue

      public void setDateValue(TLcdSLDParameterValue aValue)
      Sets the value of the property that maps to the DateValue element.

      A parameter value that evaluates to something that can be formatted as a date. For XML formats, this is usually an object of type XMLGregorianCalendar.

      Parameters:
      aValue - the value to set for the DATE_VALUE_PROPERTY property.
    • getPattern

      public String getPattern()
      Returns the value of the property that maps to the Pattern element.
      Returns:
      the value of the PATTERN_PROPERTY property.
    • setPattern

      public void setPattern(String aValue)
      Sets the value of the property that maps to the Pattern element.
      Parameters:
      aValue - the value to set for the PATTERN_PROPERTY property.