|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Bean
A wrapper around 'bean-like' structures. Examples of 'bean-like' structures include a java.lang.Object, a java.util.Map, or any other class that logically has a set of properties that can be manipulated by name.
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String propertyName)
Retrieves the value of the given property. |
java.lang.String[] |
getPropertyNames()
Gets the names of the properties which are currently defined for this bean. |
java.lang.Class |
getType(java.lang.String propertyName)
Specifies the least restrictive type that may be assigned to the given property. |
boolean |
isReadable(java.lang.String propertyName)
Specifies whether the given property is readable. |
boolean |
isWriteable(java.lang.String propertyName)
Specifies whether the given property is writeable. |
void |
set(java.lang.String propertyName,
java.lang.Object propertyValue)
Sets the value of the given property. |
| Methods inherited from interface net.sf.morph.wrap.Sizable |
|---|
getSize |
| Method Detail |
|---|
java.lang.String[] getPropertyNames()
java.lang.Class getType(java.lang.String propertyName)
throws WrapperException
Object.class, which indicates that any type can
be assigned to the given property.
propertyName - the name of the property
Object.class, which indicates
that any type can be assigned to the given property
WrapperException - if getPropertyNames returns null
or if the type could not be retrieved for some reason
boolean isReadable(java.lang.String propertyName)
throws WrapperException
propertyName - the name of the property
true if the property is readable, or false, otherwise
WrapperException - if getPropertyNames returns null
or if the readability of the property cannot be determined
boolean isWriteable(java.lang.String propertyName)
throws WrapperException
true. This method only guarantees that if
isWriteable returns false, the method is not writeable.
The method may or may not be writeable if this method returns
true.
propertyName - the name of the property
false if the property is not writeable or true if the property is writeable or if this
reflector cannot determine for sure whether or not the property
is writeable
WrapperException - if getPropertyNames returns null
or if the writeability of the property cannot be determined
java.lang.Object get(java.lang.String propertyName)
throws WrapperException
propertyName - the name of the property
WrapperException - if getPropertyNames returns null
or if the value of the property cannot be determined
void set(java.lang.String propertyName,
java.lang.Object propertyValue)
throws WrapperException
propertyName - the name of the propertypropertyValue - the value to assign to the given property
WrapperException - if getPropertyNames returns null
or if the property cannot be set for some other reason (e.g.
because propertyValue is of the wrong type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||