|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Bean
A bean consisting of a set of properties.
The implementation may be any class, but is typically a standard JavaBean with get/set methods. Alternate implementations might store the properties in another data structure such as a map.
| Method Summary | ||
|---|---|---|
Bean |
clone()
Clones this bean, returning an independent copy. |
|
MetaBean |
metaBean()
Gets the meta-bean representing the parts of the bean that are common across all instances, such as the set of meta-properties. |
|
|
property(String propertyName)
Gets a property by name. |
|
Set<String> |
propertyNames()
Gets the set of property names. |
|
| Method Detail |
|---|
MetaBean metaBean()
<R> Property<R> property(String propertyName)
The base interface throws an exception if the name is not recognised.
By contrast, the DynamicBean subinterface creates the property on demand.
R - the property type, optional, enabling auto-castingpropertyName - the property name to retrieve, not null
NoSuchElementException - if the property name is invalidSet<String> propertyNames()
Bean clone()
Implementations should covariantly return their own type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||