|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.morph.lang.languages.BaseLanguage net.sf.morph.lang.languages.LanguageDecorator
public class LanguageDecorator
Decorates any language so that it implements
DecoratedLanguage
.
Constructor Summary | |
---|---|
LanguageDecorator()
Create a new LanguageDecorator. |
|
LanguageDecorator(Language language)
Create a new LanguageDecorator. |
Method Summary | |
---|---|
protected java.lang.Object |
getImpl(java.lang.Object target,
java.lang.String expression)
Implement get(target, expression) . |
Language |
getLanguage()
Get the decorated language. |
protected java.lang.Class |
getTypeImpl(java.lang.Object target,
java.lang.String expression)
Implement getType(target, expression) . |
protected boolean |
isPropertyImpl(java.lang.String expression)
Implement isProperty(expression) . |
protected void |
setImpl(java.lang.Object target,
java.lang.String expression,
java.lang.Object value)
Implement set(target, expression, value) . |
void |
setLanguage(Language language)
Set the decorated language. |
Methods inherited from class net.sf.morph.lang.languages.BaseLanguage |
---|
get, get, get, get, getConverter, getLanguageName, getType, isProperty, set, set, setConverter, setLanguageName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.morph.lang.DecoratedLanguage |
---|
get, get, get, set, set |
Methods inherited from interface net.sf.morph.lang.Language |
---|
get, getType, isProperty |
Constructor Detail |
---|
public LanguageDecorator()
public LanguageDecorator(Language language)
language
- to decorateMethod Detail |
---|
protected java.lang.Object getImpl(java.lang.Object target, java.lang.String expression) throws LanguageException
get(target, expression)
.
getImpl
in class BaseLanguage
target
- beanexpression
- to get
LanguageException
protected java.lang.Class getTypeImpl(java.lang.Object target, java.lang.String expression) throws LanguageException
getType(target, expression)
.
getTypeImpl
in class BaseLanguage
target
- beanexpression
- to read
LanguageException
protected void setImpl(java.lang.Object target, java.lang.String expression, java.lang.Object value) throws java.lang.Exception
set(target, expression, value)
.
setImpl
in class BaseLanguage
target
- beanexpression
- to setvalue
- to set
java.lang.Exception
protected boolean isPropertyImpl(java.lang.String expression)
isProperty(expression)
.
isPropertyImpl
in class BaseLanguage
public Language getLanguage()
public void setLanguage(Language language)
language
- to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |