|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.groups.Properties
public class Properties
Extracts the values of a specified property from the elements of a given or array.
Collection
| Method Summary | |
|---|---|
static Properties |
extractProperty(String propertyName)
Creates a new . |
List<?> |
from(Collection<?> c)
Extracts the values of the property (specified previously in ) from
the elements of the given . |
List<?> |
from(Object[] array)
Extracts the values of the property (specified previously in ) from
the elements of the given array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Properties extractProperty(String propertyName)
Properties.
propertyName - the name of the property to be read from the elements of a Collection. It may be a
nested property (e.g. "address.street.number").
Properties.
NullPointerException - if the given property name is null.
IllegalArgumentException - if the given property name is empty.public List<?> from(Collection<?> c)
extractProperty(String)) from
the elements of the given Collection.
c - the given Collection.
Collection.
org.fest.util.IntrospectionError - if an element in the given Collection does not have a property with a matching
name.public List<?> from(Object[] array)
extractProperty(String)) from
the elements of the given array.
array - the given array.
org.fest.util.IntrospectionError - if an element in the given array does not have a property with a matching name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||