Package org.biopax.paxtools.controller
Class FilteredPropertyAccessor<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.FilteredPropertyAccessor<D,R>
- All Implemented Interfaces:
PropertyAccessor<D,R>
public class FilteredPropertyAccessor<D extends BioPAXElement,R>
extends DecoratingPropertyAccessor<D,R>
This class is a decorating property accessor that filters values with a given class. It is used, for example, to
implement restrictions for pattern editors.
-
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 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 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 R.- Returns:
- A filtered accessor.
-