|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of the element handled.public interface Transformer<T>
Base definition for a Property
handler.
Implemented Transformer have the responsibility to :
- write : Convert the T newValue to a specific Item format (Single Item property, Multi Item property, Multi sub Items...)
- read : Transform a specific Item values (single property, Multi. property, sub Items) to a specified type T.
Method Summary | |
---|---|
Class<T> |
getType()
|
boolean |
hasI18NSupport()
Return true if this Property has to support i18n. |
T |
readFromItem()
Transform a specific Item values to a specified type T. |
void |
writeToItem(T newValue)
Convert the T newValue to a specific Item format. |
Methods inherited from interface info.magnolia.ui.api.i18n.I18NAwareHandler |
---|
getBasePropertyName, getLocale, setI18NPropertyName, setLocale |
Method Detail |
---|
void writeToItem(T newValue)
T readFromItem()
boolean hasI18NSupport()
Class<T> getType()
value
must be assignable
to this type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |