public class SimplePropertyAccessor<D extends BioPAXElement,R> extends PropertyAccessorAdapter<D,R>
Modifier and Type | Field and Description |
---|---|
protected Method |
getMethod
This variable stores the method to invoke for getting the value of the property on a given bean.
|
domain, multipleCardinality, range
Constructor and Description |
---|
SimplePropertyAccessor(Class<D> domain,
Class<R> range,
boolean multipleCardinality,
Method getMethod) |
Modifier and Type | Method and Description |
---|---|
Set<R> |
getValueFromBean(D bean)
Returns the value of the bean using the default
getMethod . |
protected static boolean |
isMultipleCardinality(Method getMethod) |
boolean |
isUnknown(Object value)
Checks if the value is unkown.
|
String |
toString() |
getDomain, getRange, getValueFromBeans, isMultipleCardinality
protected final Method getMethod
Set
otherwise an instance of PropertyAccessorAdapter.range
protected static boolean isMultipleCardinality(Method getMethod)
public Set<R> getValueFromBean(D bean) throws IllegalBioPAXArgumentException
getMethod
.
If the value is unknown returns null or an empty set depending on the cardinality.bean
- the object whose property is requestedIllegalBioPAXArgumentException
public boolean isUnknown(Object value)
value
- the value to be checkedCopyright © 2015 BioPAX. All rights reserved.