@Component public class DateDatatype extends SerializingCustomDatatype<java.util.Date>
CustomDatatype.Summary
Constructor and Description |
---|
DateDatatype() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
deserialize(java.lang.String serializedValue) |
CustomDatatype.Summary |
doGetTextSummary(java.util.Date typedValue)
Most implementations should override this method to return plain-text summary of the typed value, as defined
by
CustomDatatype.getTextSummary(String) . |
java.lang.String |
serialize(java.util.Date typedValue) |
fromReferenceString, getReferenceStringForValue, getTextSummary, save, setConfiguration, validate
public CustomDatatype.Summary doGetTextSummary(java.util.Date typedValue)
SerializingCustomDatatype
CustomDatatype.getTextSummary(String)
. If SerializingCustomDatatype.deserialize(String)
is expensive, then the
implementation should override SerializingCustomDatatype.getTextSummary(String)
instead.
The default implementation returns typedValue.toString(), and indicates it is complete.doGetTextSummary
in class SerializingCustomDatatype<java.util.Date>
SerializingCustomDatatype.doGetTextSummary(java.lang.Object)
public java.util.Date deserialize(java.lang.String serializedValue)
deserialize
in class SerializingCustomDatatype<java.util.Date>
SerializingCustomDatatype.deserialize(java.lang.String)
public java.lang.String serialize(java.util.Date typedValue)
serialize
in class SerializingCustomDatatype<java.util.Date>
typedValue
- (has already had validate called)SerializingCustomDatatype.serialize(java.lang.Object)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.