Class TLcdSLDFormatDate
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.functions.TLcdSLDFunction
com.luciad.ogc.sld.model.functions.TLcdSLDFormatDate
- All Implemented Interfaces:
ILcdDataObject
,ILcdGenericExpression
,ILcdOGCExpression
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
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 Summary
ConstructorDescriptionDefault ConstructorTLcdSLDFormatDate
(TLcdDataType aType) Default ConstructorTLcdSLDFormatDate
(TLcdSLDParameterValue aDateValue, String aPattern) Creates a new instance and initializes the properties with the given values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to theDateValue
element.Returns the value of the property that maps to thePattern
element.void
setDateValue
(TLcdSLDParameterValue aValue) Sets the value of the property that maps to theDateValue
element.void
setPattern
(String aValue) Sets the value of the property that maps to thePattern
element.Methods inherited from class com.luciad.ogc.sld.model.functions.TLcdSLDFunction
getFallbackValue, setFallbackValue
-
Constructor Details
-
TLcdSLDFormatDate
public TLcdSLDFormatDate()Default Constructor -
TLcdSLDFormatDate
Default Constructor -
TLcdSLDFormatDate
Creates a new instance and initializes the properties with the given values.
-
-
Method Details
-
getDateValue
Returns the value of the property that maps to theDateValue
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
Sets the value of the property that maps to theDateValue
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 theDATE_VALUE_PROPERTY
property.
-
getPattern
Returns the value of the property that maps to thePattern
element.- Returns:
- the value of the
PATTERN_PROPERTY
property.
-
setPattern
Sets the value of the property that maps to thePattern
element.- Parameters:
aValue
- the value to set for thePATTERN_PROPERTY
property.
-