Package org.biopax.paxtools.controller
Class FilteredByDomainPropertyAccessor<D extends BioPAXElement,R>
java.lang.Object
org.biopax.paxtools.controller.PropertyAccessorAdapter<D,R>
org.biopax.paxtools.controller.DecoratingPropertyAccessor<D,R>
org.biopax.paxtools.controller.FilteredByDomainPropertyAccessor<D,R>
- All Implemented Interfaces:
PropertyAccessor<D,R>
public class FilteredByDomainPropertyAccessor<D extends BioPAXElement,R>
extends DecoratingPropertyAccessor<D,R>
This class is a decorating property accessor that filters the seed arguments, only accepts if they are assignable to
filter class.
-
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 <D extends BioPAXElement,R>
PropertyAccessor<D,R> create(PropertyAccessor<D, R> pa, Class filter) FactoryMethod that creates a filtered-by-domain property accessor by decorating a given accessor with a class filter.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 <D extends BioPAXElement,R> PropertyAccessor<D,R> create(PropertyAccessor<D, R> pa, Class filter) FactoryMethod that creates a filtered-by-domain property accessor by decorating a given accessor with a class filter.- Type Parameters:
D- Domain of the original accessorR- Range of the original accessor- Parameters:
pa- to be decoratedfilter- Class to be filtered, must extend from D.- Returns:
- A filtered accessor.
-