OwnT - the type of the own valueSubjectT - the type of the subject valuepublic interface TypeConverter<OwnT,SubjectT> extends ValueModel<OwnT>
| Modifier and Type | Method and Description |
|---|---|
SubjectT |
convertOwnToSubjectValue(OwnT pOwnValue)
Converts from the type that this value model offers to the type
its subject value model.
|
OwnT |
convertSubjectToOwnValue(SubjectT pSubjectValue)
Converts from the type that the subject value model provides
to the type this value model offers.
|
Object |
getSyncKey()
Get the sync key for the sync state.
|
String |
getSyncMessage()
Return a sync message, usefull when the conversation fails.
|
ValueModel<Boolean> |
getSyncState()
Return a ValueModel containing a Boolean that shows if the last
conversion in setValue() or getValue() was sucessfull.
|
void |
setSyncKey(Object pKey)
Set the sync key for the sync state.
|
void |
setSyncMessage(String pMessage)
Set the sync message.
|
addChangeListener, booleanValue, dispose, doubleValue, floatValue, getDependents, getName, getValue, intValue, isDisposed, isEditable, isSetForced, longValue, onChangeSend, removeChangeListener, retractInterestsFor, setName, setObjectValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueForced, stringValueValueModel<Boolean> getSyncState()
Object getSyncKey()
void setSyncKey(Object pKey)
pKey - a key, may be nullString getSyncMessage()
void setSyncMessage(String pMessage)
pMessage - the sync message, must not be nullOwnT convertSubjectToOwnValue(SubjectT pSubjectValue) throws ConversionException
pSubjectValue - value in the subject's typeConversionException - if we detected an error during the conversionSubjectT convertOwnToSubjectValue(OwnT pOwnValue) throws ConversionException
pOwnValue - value in this value model's typeConversionException - if we detected an error during the conversionCopyright © 2017 Jürgen Zeller (privat). All rights reserved.