Class PojoProperties
java.lang.Object
org.eclipse.core.databinding.beans.typed.PojoProperties
A factory for creating properties for POJOs (plain old java objects) that
conform to idea of an object with getters and setters but does not provide
property change events
on change. This factory is
identical to BeanProperties
except for this fact.- Since:
- 1.5
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,
E> IBeanListProperty<S, E> Returns a list property for the given property name of the given bean class.static <S,
E> IBeanListProperty<S, E> Returns a list property for the given property name of the given bean class.static <S,
E> IBeanListProperty<S, E> Returns a list property for the given property name of an arbitrary bean class.static <S,
E> IBeanListProperty<S, E> Returns a list property for the given property name of an arbitrary bean class.static <S,
K, V> IBeanMapProperty<S, K, V> Returns a map property for the given property name of the given bean class.static <S,
K, V> IBeanMapProperty<S, K, V> Returns a map property for the given property name of the given bean class.static <S,
K, V> IBeanMapProperty<S, K, V> Returns a map property for the given property name of an arbitrary bean class.static <S,
K, V> IBeanMapProperty<S, K, V> Returns a map property for the given property name of an arbitrary bean class.static <S,
E> IBeanSetProperty<S, E> Returns a set property for the given property name of the given bean class.static <S,
E> IBeanSetProperty<S, E> Returns a set property for the given property name of the given bean class.static <S,
E> IBeanSetProperty<S, E> Returns a set property for the given property name of an arbitrary bean class.static <S,
E> IBeanSetProperty<S, E> Returns a set property for the given property name of an arbitrary bean class.static <S,
E> IBeanValueProperty<S, E> Returns a value property for the given property name of the given bean class.static <S,
T> IBeanValueProperty<S, T> Returns a value property for the given property name of the given bean class.static <S,
T> IBeanValueProperty<S, T> Returns a value property for the given property name of an arbitrary bean class.static <S,
T> IBeanValueProperty<S, T> Returns a value property for the given property name of an arbitrary bean class.static <S,
T> IBeanValueProperty<S, T>[] Returns a value property array for the given property names of the given bean class.static <S,
T> IBeanValueProperty<S, T>[] Returns a value property array for the given property names of an arbitrary bean class.
-
Constructor Details
-
PojoProperties
public PojoProperties()
-
-
Method Details
-
value
Returns a value property for the given property name of an arbitrary bean class. Objects lacking the named property are treated the same as if the property always contains null.- Parameters:
propertyName
- the property name. May be nested e.g. "parent.name"- Returns:
- a value property for the given property name of an arbitrary bean class.
-
value
Returns a value property for the given property name of an arbitrary bean class. Objects lacking the named property are treated the same as if the property always contains null.- Parameters:
propertyName
- the property name. May be nested e.g. "parent.name"valueType
- the value type of the returned value property- Returns:
- a value property for the given property name of an arbitrary bean class.
-
value
Returns a value property for the given property name of the given bean class.- Parameters:
beanClass
- the bean classpropertyName
- the property name. May be nested e.g. "parent.name"- Returns:
- a value property for the given property name of the given bean class.
-
value
public static <S,T> IBeanValueProperty<S,T> value(Class<S> beanClass, String propertyName, Class<T> valueType) Returns a value property for the given property name of the given bean class.- Parameters:
beanClass
- the bean classpropertyName
- the property name. May be nested e.g. "parent.name"valueType
- the value type of the returned value property- Returns:
- a value property for the given property name of the given bean class.
-
values
Returns a value property array for the given property names of the given bean class.- Parameters:
beanClass
- the bean classpropertyNames
- array of property names. May be nested e.g. "parent.name"- Returns:
- a value property array for the given property names of the given bean class.
-
values
Returns a value property array for the given property names of an arbitrary bean class.- Parameters:
propertyNames
- array of property names. May be nested e.g. "parent.name"- Returns:
- a value property array for the given property names of the given bean class.
-
set
Returns a set property for the given property name of an arbitrary bean class. Objects lacking the named property are treated the same as if the property always contains an empty set.- Parameters:
propertyName
- the property name- Returns:
- a set property for the given property name of an arbitrary bean class.
-
set
Returns a set property for the given property name of an arbitrary bean class. Objects lacking the named property are treated the same as if the property always contains an empty set.- Parameters:
propertyName
- the property nameelementType
- the element type of the returned set property- Returns:
- a set property for the given property name of an arbitrary bean class.
-
set
Returns a set property for the given property name of the given bean class.- Parameters:
beanClass
- the bean classpropertyName
- the property name- Returns:
- a set property for the given property name of the given bean class.
-
set
public static <S,E> IBeanSetProperty<S,E> set(Class<S> beanClass, String propertyName, Class<E> elementType) Returns a set property for the given property name of the given bean class.- Parameters:
beanClass
- the bean classpropertyName
- the property nameelementType
- the element type of the returned set property- Returns:
- a set property for the given property name of the given bean class.
-
list
Returns a list property for the given property name of an arbitrary bean class. Objects lacking the named property are treated the same as if the property always contains an empty list.- Parameters:
propertyName
- the property name- Returns:
- a list property for the given property name of an arbitrary bean class.
-
list
Returns a list property for the given property name of an arbitrary bean class. Objects lacking the named property are treated the same as if the property always contains an empty list.- Parameters:
propertyName
- the property nameelementType
- the element type of the returned list property- Returns:
- a list property for the given property name of the given bean class.
-
list
Returns a list property for the given property name of the given bean class.- Parameters:
beanClass
- the bean classpropertyName
- the property name- Returns:
- a list property for the given property name of the given bean class.
-
list
public static <S,E> IBeanListProperty<S,E> list(Class<S> beanClass, String propertyName, Class<E> elementType) Returns a list property for the given property name of the given bean class.- Parameters:
beanClass
- the bean classpropertyName
- the property nameelementType
- the element type of the returned list property- Returns:
- a list property for the given property name of the given bean class.
-
map
Returns a map property for the given property name of an arbitrary bean class. Objects lacking the named property are treated the same as if the property always contains an empty map.- Parameters:
propertyName
- the property name- Returns:
- a map property for the given property name of an arbitrary bean class.
-
map
public static <S,K, IBeanMapProperty<S,V> K, mapV> (String propertyName, Class<K> keyType, Class<V> valueType) Returns a map property for the given property name of an arbitrary bean class. Objects lacking the named property are treated the same as if the property always contains an empty map.- Parameters:
propertyName
- the property namekeyType
- the key type for the returned map propertyvalueType
- the value type for the returned map property- Returns:
- a map property for the given property name of an arbitrary bean class.
-
map
Returns a map property for the given property name of the given bean class.- Parameters:
beanClass
- the bean classpropertyName
- the property name- Returns:
- a map property for the given property name of the given bean class.
-
map
public static <S,K, IBeanMapProperty<S,V> K, mapV> (Class<S> beanClass, String propertyName, Class<K> keyType, Class<V> valueType) Returns a map property for the given property name of the given bean class.- Parameters:
beanClass
- the bean classpropertyName
- the property namekeyType
- the key type of the returned map propertyvalueType
- the value type of the returned map property- Returns:
- a map property for the given property name of the given bean class.
-