public interface IBeanValueProperty extends IBeanProperty, IValueProperty
IValueProperty
extension interface with convenience methods for
creating nested bean properties.Modifier and Type | Method and Description |
---|---|
IBeanListProperty |
list(IBeanListProperty property)
Returns a master-detail combination of this property and the specified
list property.
|
IBeanListProperty |
list(String propertyName)
Returns a master-detail combination of this property and the specified
list property.
|
IBeanListProperty |
list(String propertyName,
Class elementType)
Returns a master-detail combination of this property and the specified
list property.
|
IBeanMapProperty |
map(IBeanMapProperty property)
Returns a master-detail combination of this property and the specified
map property.
|
IBeanMapProperty |
map(String propertyName)
Returns a master-detail combination of this property and the specified
map property.
|
IBeanMapProperty |
map(String propertyName,
Class keyType,
Class valueType)
Returns a master-detail combination of this property and the specified
map property.
|
IBeanSetProperty |
set(IBeanSetProperty property)
Returns a master-detail combination of this property and the specified
set property.
|
IBeanSetProperty |
set(String propertyName)
Returns a master-detail combination of this property and the specified
set property.
|
IBeanSetProperty |
set(String propertyName,
Class elementType)
Returns a master-detail combination of this property and the specified
set property.
|
IBeanValueProperty |
value(IBeanValueProperty property)
Returns a master-detail combination of this property and the specified
value property.
|
IBeanValueProperty |
value(String propertyName)
Returns a master-detail combination of this property and the specified
value property.
|
IBeanValueProperty |
value(String propertyName,
Class valueType)
Returns a master-detail combination of this property and the specified
value property.
|
getPropertyDescriptor
getValue, getValueType, list, map, observe, observe, observeDetail, observeDetail, observeDetail, observeDetail, set, setValue, value, valueFactory, valueFactory
IBeanValueProperty value(String propertyName)
propertyName
- the value property to observe. May be nested e.g.
"parent.name"value(IBeanValueProperty)
IBeanValueProperty value(String propertyName, Class valueType)
propertyName
- the value property to observe. May be nested e.g.
"parent.name"valueType
- the value type of the named propertyvalue(IBeanValueProperty)
IBeanValueProperty value(IBeanValueProperty property)
Example:
// Observes the Node-typed "parent" property of a Node object IBeanValueProperty parent = BeanProperties.value(Node.class, "parent"); // Observes the string-typed "name" property of a Node object IBeanValueProperty name = BeanProperties.value(Node.class, "name"); // Observes the name of the parent of a Node object. IBeanValueProperty parentName = parent.value(name);
property
- the detail property to observeIBeanListProperty list(String propertyName)
propertyName
- the list property to observelist(IBeanListProperty)
IBeanListProperty list(String propertyName, Class elementType)
propertyName
- the list property to observeelementType
- the element type of the named propertylist(IBeanListProperty)
IBeanListProperty list(IBeanListProperty property)
Example:
// Observes the Node-typed "parent" property of a Node object. IBeanValueProperty parent = BeanProperties.value(Node.class, "parent"); // Observes the List-typed "children" property of a Node object // where the elements are Node objects IBeanListProperty children = BeanProperties.list(Node.class, "children", Node.class); // Observes the children of the parent (siblings) of a Node object. IBeanListProperty siblings = parent.list(children);
property
- the detail property to observeIBeanSetProperty set(String propertyName)
propertyName
- the set property to observeset(IBeanSetProperty)
IBeanSetProperty set(String propertyName, Class elementType)
propertyName
- the set property to observeelementType
- the element type of the named propertyset(IBeanSetProperty)
IBeanSetProperty set(IBeanSetProperty property)
Example:
// Observes the Node-typed "parent" property of a Node object. IBeanValueProperty parent = BeanProperties.value(Node.class, "parent"); // Observes the Set-typed "children" property of a Node object // where the elements are Node objects IBeanSetProperty children = BeanProperties.set(Node.class, "children", Node.class); // Observes the children of the parent (siblings) of a Node object. IBeanSetProperty siblings = parent.set(children);
property
- the detail property to observeIBeanMapProperty map(String propertyName)
propertyName
- the map property to observemap(IBeanMapProperty)
IBeanMapProperty map(String propertyName, Class keyType, Class valueType)
propertyName
- the map property to observekeyType
- the key type of the named propertyvalueType
- the value type of the named propertymap(IBeanMapProperty)
IBeanMapProperty map(IBeanMapProperty property)
Example:
// Observes the Contact-typed "supervisor" property of a // Contact class IBeanValueProperty supervisor = BeanProperties.value(Contact.class, "supervisor"); // Observes the property "phoneNumbers" of a Contact object--a property mapping // from PhoneNumberType to PhoneNumber "set-typed "children", IBeanMapProperty phoneNumbers = BeanProperties.map(Contact.class, "phoneNumbers", PhoneNumberType.class, PhoneNumber.class); // Observes the phone numbers of a contact's supervisor: IBeanMapProperty supervisorPhoneNumbers = supervisor.map(phoneNumbers);
property
- the detail property to observe
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.