public abstract class BaseMetadataDatatype<T extends OpenmrsMetadata> extends BaseOpenmrsDatatype<T>
CustomDatatype.Summary
Constructor and Description |
---|
BaseMetadataDatatype() |
Modifier and Type | Method and Description |
---|---|
CustomDatatype.Summary |
doGetTextSummary(T typedValue)
Most implementations should override this method to return plain-text summary of the typed value, as defined
by
CustomDatatype.getTextSummary(String) . |
serialize
deserialize, fromReferenceString, getReferenceStringForValue, getTextSummary, save, setConfiguration, validate
public CustomDatatype.Summary doGetTextSummary(T 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<T extends OpenmrsMetadata>
Should use the name in summary instance
Copyright © 2024 OpenMRS Inc.. All rights reserved.