|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zel.BeanNameResolver
public abstract class BeanNameResolver
Base implementation that provides a minimal default implementation that is intended to be extended by application developers.
Constructor Summary | |
---|---|
BeanNameResolver()
|
Method Summary | |
---|---|
boolean |
canCreateBean(java.lang.String beanName)
Is it permitted to create a bean of the given name? |
java.lang.Object |
getBean(java.lang.String beanName)
Returns the named bean. |
boolean |
isNameResolved(java.lang.String beanName)
Can this resolver resolve the given bean name? |
boolean |
isReadOnly(java.lang.String beanName)
Is the named bean read-only? |
void |
setBeanValue(java.lang.String beanName,
java.lang.Object value)
Sets a value of a bean of the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanNameResolver()
Method Detail |
---|
public boolean isNameResolved(java.lang.String beanName)
beanName
- The bean name to resolve
false
public java.lang.Object getBean(java.lang.String beanName)
beanName
- The bean name to return
null
public void setBeanValue(java.lang.String beanName, java.lang.Object value) throws PropertyNotWritableException
canCreateBean(java.lang.String)
returns true
then a bean
is created with the given value.
beanName
- The name of the bean to be set/createvalue
- The value of the bean to set/create
PropertyNotWritableException
- if the bean is read onlypublic boolean isReadOnly(java.lang.String beanName)
beanName
- The name of the bean of interest
true
if the bean is read only, otherwise
false
public boolean canCreateBean(java.lang.String beanName)
beanName
- The name of the bean of interest
true
if the bean may be created, otherwise
false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |