Package org.biopax.paxtools.controller
Class SimplePropertyAccessor<D extends BioPAXElement,R>
java.lang.Object
org.biopax.paxtools.controller.PropertyAccessorAdapter<D,R>
org.biopax.paxtools.controller.SimplePropertyAccessor<D,R>
- All Implemented Interfaces:
PropertyAccessor<D,R>
- Direct Known Subclasses:
AbstractPropertyEditor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MethodThis variable stores the method to invoke for getting the value of the property on a given bean.Fields inherited from class org.biopax.paxtools.controller.PropertyAccessorAdapter
domain, multipleCardinality, range -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.biopax.paxtools.controller.PropertyAccessorAdapter
getDomain, getRange, getValueFromBeans, isMultipleCardinality
-
Field Details
-
getMethod
This variable stores the method to invoke for getting the value of the property on a given bean. In the case of multiple cardinality, this method is expected to return aSetotherwise an instance ofPropertyAccessorAdapter.range
-
-
Constructor Details
-
SimplePropertyAccessor
-
-
Method Details
-
isMultipleCardinality
-
getValueFromBean
Returns the value of the bean using the defaultgetMethod. If the value is unknown returns null or an empty set depending on the cardinality.- Parameters:
bean- the object whose property is requested- Returns:
- an object as the value
- Throws:
IllegalBioPAXArgumentException
-
isUnknown
Checks if the value is unkown. In this context a value is regarded to be unknown if it is null (unset).- Parameters:
value- the value to be checked- Returns:
- true if the value is unknown
-
toString
-