|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DecoratedLanguage
Extends the capabilities of a Language by adding the capabilities of a Converter.
You should not directly implement this interface, because additional methods may be introduced in later versions of Morph. Instead, implement the Language interface and use the LanguageDecorator to expose this interface.
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.Object target,
java.lang.String expression,
java.lang.Class destinationClass)
Retrieve the information indicated by expression from
target as the type indicated by
destinationClass. |
java.lang.Object |
get(java.lang.Object target,
java.lang.String expression,
java.lang.Class destinationClass,
java.util.Locale locale)
Retrieve the information indicated by expression from
target as the type indicated by
destinationClass. |
java.lang.Object |
get(java.lang.Object target,
java.lang.String expression,
java.util.Locale locale,
java.lang.Class destinationClass)
Deprecated. why would we need both signatures (Object, String, Locale, Class) and (Object, String, Class, Locale)? |
void |
set(java.lang.Object target,
java.lang.String expression,
java.lang.Object value)
Sets the information indicated by expression on
target.value will be automatically
converted to a type appropriate for the given expression. |
void |
set(java.lang.Object target,
java.lang.String expression,
java.lang.Object value,
java.util.Locale locale)
Sets the information indicated by expression on
target.value will be automatically
converted to a type appropriate for the given expression. |
| Methods inherited from interface net.sf.morph.lang.Language |
|---|
get, getType, isProperty |
| Method Detail |
|---|
java.lang.Object get(java.lang.Object target,
java.lang.String expression,
java.lang.Class destinationClass)
throws LanguageException,
TransformationException
expression from
target as the type indicated by
destinationClass.
target - the object from which information will be retrievedexpression - an expression specifying which information to retrievedestinationClass - indicates the type that should be returned by this method
expression from
target
TransformationException - if an error occurs while converting the requested information
to the type indicated by destinationClass
LanguageException - if target is null or InvalidExpressionException - if expression is empty or not a valid
expression
java.lang.Object get(java.lang.Object target,
java.lang.String expression,
java.lang.Class destinationClass,
java.util.Locale locale)
throws LanguageException,
TransformationException
expression from
target as the type indicated by
destinationClass.
target - the object from which information will be retrievedexpression - an expression specifying which information to retrievedestinationClass - indicates the type that should be returned by this methodlocale - indicates the locale in which the conversion to type
destinationClass should be performed, if
applicable
expression from
target
TransformationException - if an error occurs while converting the requested information
to the type indicated by destinationClass
LanguageException - if target is null or InvalidExpressionException - if expression is empty or not a valid
expression
java.lang.Object get(java.lang.Object target,
java.lang.String expression,
java.util.Locale locale,
java.lang.Class destinationClass)
throws LanguageException,
TransformationException
expression from
target as the type indicated by
destinationClass.
target - the object from which information will be retrievedexpression - an expression specifying which information to retrievelocale - indicates the locale in which the conversion to type
destinationClass should be performed, if
applicabledestinationClass - indicates the type that should be returned by this method
expression from
target
TransformationException - if an error occurs while converting the requested information
to the type indicated by destinationClass
LanguageException - if target is null or InvalidExpressionException - if expression is empty or not a valid
expression
void set(java.lang.Object target,
java.lang.String expression,
java.lang.Object value)
throws LanguageException,
TransformationException
expression on
target.value will be automatically
converted to a type appropriate for the given expression.
set in interface Languagetarget - the object that will be modifiedexpression - an expression specifying which information will be modifiedvalue - the information to be changed
TransformationException - if an error occurs while converting value to
the appropriate type
LanguageException - if target is null or InvalidExpressionException - if expression is empty or not a valid
expression
void set(java.lang.Object target,
java.lang.String expression,
java.lang.Object value,
java.util.Locale locale)
throws LanguageException,
TransformationException
expression on
target.value will be automatically
converted to a type appropriate for the given expression.
target - the object that will be modifiedexpression - an expression specifying which information will be modifiedvalue - the information to be changedlocale - indicates the locale in which the conversion to type
destinationClass should be performed, if
applicable
TransformationException - if an error occurs while converting value to
the appropriate type
LanguageException - if target is null or InvalidExpressionException - if expression is empty or not a valid
expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||