Interface PropertyAccessor<D extends BioPAXElement,R>

All Known Subinterfaces:
DataPropertyEditor<D,R>, PropertyEditor<D,R>
All Known Implementing Classes:
AbstractPropertyEditor, DecoratingPropertyAccessor, EnumeratedPropertyEditor, FilteredByDomainPropertyAccessor, FilteredPropertyAccessor, ObjectPropertyEditor, PathAccessor, PrimitivePropertyEditor, PropertyAccessorAdapter, SimplePropertyAccessor, StringPropertyEditor, TransitivePropertyAccessor, UnionPropertyAccessor

public interface PropertyAccessor<D extends BioPAXElement,R>
Allows generic access to the properties or a path of properties from a bean.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the domain of the property.
    Returns the range of the editor.
    Set<? extends R>
    Returns the value of the bean using the default getMethod.
    Set<? extends R>
    getValueFromBeans(Collection<? extends D> beans)
    Returns the values for a collection of beans using the default getMethod.
    boolean
    Checks if the property to which editor is assigned has multiple cardinality.
    boolean
    Checks if the value is unkown.
  • Method Details

    • getDomain

      Class<D> getDomain()
      Returns the domain of the property.
      Returns:
      the domain of the editor
    • getRange

      Class<R> getRange()
      Returns the range of the editor.
      Returns:
      a class
    • isMultipleCardinality

      boolean isMultipleCardinality()
      Checks if the property to which editor is assigned has multiple cardinality.
      Returns:
      true if editor belongs to a multiple cardinality property.
    • getValueFromBean

      Set<? extends R> getValueFromBean(D bean) throws IllegalBioPAXArgumentException
      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
    • getValueFromBeans

      Set<? extends R> getValueFromBeans(Collection<? extends D> beans) throws IllegalBioPAXArgumentException
      Returns the values for a collection of beans using the default getMethod.
      Parameters:
      beans - collection of BioPAX objects
      Returns:
      an object as the value
      Throws:
      IllegalBioPAXArgumentException
    • isUnknown

      boolean isUnknown(Object value)
      Checks 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