public abstract static class SimpleType.SimpleTypeValueExtractor
extends java.lang.Object
Constructor and Description |
---|
SimpleTypeValueExtractor() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
getAtomicValue(java.lang.Object value)
Method to extract an atomic value (such as a string or number) from some arbitrary live data value.
|
java.lang.Object |
getAtomicValue(java.lang.Object value,
java.lang.String reason)
Method to extract an atomic value (such as a string or number) from some arbitrary live data value.
|
public abstract java.lang.Object getAtomicValue(java.lang.Object value)
value
- Raw data value to convert. Typically this would be a field value for some record.#inheritsFrom
attribute.public java.lang.Object getAtomicValue(java.lang.Object value, java.lang.String reason)
Your method can use the "reason" parameter to affect the atomic value that is returned. - for example, if the reason is "sort" you could return the atomic value converted to upper-case, to impose case-insensitive sorting. Reason strings used by the system are:
value
- Raw data value to convert. Typically this would be a field value for some record.reason
- A reason passed by the framework to indicate why it is asking for the atomic value.#inheritsFrom
attribute.