|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.faces.el.ClassConstantPublisherBean
public class ClassConstantPublisherBean
An implementation of DynamicBean
which exposes all the fields on a class which are
public and static. The properties are read only and cannot be modified. It allows to use
constant names from expression language rather than the constant values directly.
Class.getSuperClass()
is examined.Class.getInterfaces()
are
not examined.Class.getInterfaces()
.
Constructor Summary | |
---|---|
ClassConstantPublisherBean()
|
Method Summary | |
---|---|
java.lang.String |
getClassName()
|
java.lang.Class |
getType(java.lang.Object propertyName)
Return the type of the specified property. |
PropertyValue |
getValue(java.lang.Object propertyName)
Return the value of the specified property. |
void |
setClassName(java.lang.String className)
|
boolean |
setValue(java.lang.Object propertyName,
java.lang.Object value)
Set the value of the specified property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassConstantPublisherBean()
Method Detail |
---|
public java.lang.Class getType(java.lang.Object propertyName) throws java.lang.IllegalArgumentException
DynamicBean
getType
in interface DynamicBean
propertyName
- the property name
java.lang.IllegalArgumentException
- if the property name is nullpublic PropertyValue getValue(java.lang.Object propertyName) throws java.lang.IllegalArgumentException
DynamicBean
getValue
in interface DynamicBean
propertyName
- the property name
java.lang.IllegalArgumentException
- if the property is nullpublic boolean setValue(java.lang.Object propertyName, java.lang.Object value) throws java.lang.IllegalArgumentException
DynamicBean
setValue
in interface DynamicBean
propertyName
- the property namevalue
- the new property value
java.lang.IllegalArgumentException
- if the property name is nullpublic java.lang.String getClassName()
public void setClassName(java.lang.String className)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |