Class FilteredPropertyAccessor<D extends BioPAXElement,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.
  • Method Details

    • getValueFromBean

      public Set<? extends R> getValueFromBean(D bean) throws IllegalBioPAXArgumentException
      Description copied from interface: PropertyAccessor
      Returns 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 accessor
      R - Range of the original accessor
      Parameters:
      pa - to be decorated
      filter - Class to be filtered, must extend from R.
      Returns:
      A filtered accessor.