Package org.biopax.paxtools.controller
Class TransitivePropertyAccessor<R extends BioPAXElement,D extends R>
java.lang.Object
org.biopax.paxtools.controller.PropertyAccessorAdapter<D,R>
org.biopax.paxtools.controller.DecoratingPropertyAccessor<D,R>
org.biopax.paxtools.controller.TransitivePropertyAccessor<R,D>
- All Implemented Interfaces:
PropertyAccessor<D,R>
public class TransitivePropertyAccessor<R extends BioPAXElement,D extends R>
extends DecoratingPropertyAccessor<D,R>
This class is a transitive decorator for PropertyAccessors. BioPAX has transitive properties,
such as: memberEntityReference, memberEntityFeature, memberPhysicalEntity, component.
These all represent nested containment relationships.
When decorating a suitable property accessor this accessor will traverse the whole nesting hierarchy and bring all
children( or if inverse parents). For example when used on a
Complex.getComponent()
it will not only return the immediate components but also the components of the components.-
Field Summary
Fields inherited from class org.biopax.paxtools.controller.DecoratingPropertyAccessor
implFields inherited from class org.biopax.paxtools.controller.PropertyAccessorAdapter
domain, multipleCardinality, range -
Method Summary
Modifier and TypeMethodDescriptionstatic <R extends BioPAXElement,D extends R>
TransitivePropertyAccessor<R, D> create(PropertyAccessor<D, R> pa) getValueFromBean(D bean) Returns the value of the bean using the default getMethod.Methods inherited from class org.biopax.paxtools.controller.DecoratingPropertyAccessor
isUnknownMethods inherited from class org.biopax.paxtools.controller.PropertyAccessorAdapter
getDomain, getRange, getValueFromBeans, isMultipleCardinality
-
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
-
create
public static <R extends BioPAXElement,D extends R> TransitivePropertyAccessor<R,D> create(PropertyAccessor<D, R> pa)
-