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
ConstructorsConstructorDescriptionDefault 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 theDateValueelement.Returns the value of the property that maps to thePatternelement.voidsetDateValue(TLcdSLDParameterValue aValue) Sets the value of the property that maps to theDateValueelement.voidsetPattern(String aValue) Sets the value of the property that maps to thePatternelement.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 theDateValueelement.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_PROPERTYproperty.
-
setDateValue
Sets the value of the property that maps to theDateValueelement.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_PROPERTYproperty.
-
getPattern
Returns the value of the property that maps to thePatternelement.- Returns:
- the value of the
PATTERN_PROPERTYproperty.
-
setPattern
Sets the value of the property that maps to thePatternelement.- Parameters:
aValue- the value to set for thePATTERN_PROPERTYproperty.
-