Package org.biopax.paxtools.controller
Class UnionPropertyAccessor<D extends BioPAXElement,R>
java.lang.Object
org.biopax.paxtools.controller.PropertyAccessorAdapter<D,R>
org.biopax.paxtools.controller.UnionPropertyAccessor<D,R>
- All Implemented Interfaces:
PropertyAccessor<D,R>
In OWL a single property can have multiple domains. This is not supported in OO. This class amends this by
using a Facade pattern. A Union property will act like a OWL property with a union domain but in fact is composed
of multiple single domain properties.
-
Field Summary
Fields inherited from class org.biopax.paxtools.controller.PropertyAccessorAdapter
domain, multipleCardinality, range -
Constructor Summary
ConstructorsConstructorDescriptionUnionPropertyAccessor(Set<PropertyAccessor<? extends D, ? extends R>> union, Class<D> domain) -
Method Summary
Modifier and TypeMethodDescriptiongetValueFromBean(D bean) Returns the value of the bean using the default getMethod.booleanChecks if the value is unkown.Methods inherited from class org.biopax.paxtools.controller.PropertyAccessorAdapter
getDomain, getRange, getValueFromBeans, isMultipleCardinality
-
Constructor Details
-
UnionPropertyAccessor
-
-
Method Details
-
getValueFromBean
Description copied from interface:PropertyAccessorReturns the value of the bean using the default getMethod.- Parameters:
bean- the object whose property is requested- Returns:
- an object as the value
- Throws:
IllegalBioPAXArgumentException
-
isUnknown
Description copied from interface:PropertyAccessorChecks 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
-