public abstract class AbstractNullSafeConverter<T> extends AbstractValueConverter<T>
IValueConverter.RuleSpecificNO_OP_CONVERTER| Constructor and Description |
|---|
AbstractNullSafeConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
internalToString(T value) |
protected abstract T |
internalToValue(String string,
INode node) |
String |
toString(T value)
Transforms the given value to a string that is conformant to the expected
terminal or data type rule.
|
T |
toValue(String string,
INode node)
Creates a value from the given input.
|
public String toString(T value)
IValueConvertervalue - the to-be-transformed valuepublic T toValue(String string, INode node) throws ValueConverterException
IValueConverterCreates a value from the given input. The input is conformant to a data type or terminal rule.
The given string
or node may be null but not both of them.
string - the string that was inferred from the node. Usually the node's text
but may be reduced to the parts of the node that are not
hidden.node - the parsed node including hidden parts.null.ValueConverterException - indicates that the string or node did not fulfil
the expected format.protected abstract T internalToValue(String string, INode node) throws ValueConverterException
ValueConverterExceptionCopyright © 2015. All Rights Reserved.