Class UnionPropertyAccessor<D extends BioPAXElement,R>

java.lang.Object
org.biopax.paxtools.controller.PropertyAccessorAdapter<D,R>
org.biopax.paxtools.controller.UnionPropertyAccessor<D,R>
All Implemented Interfaces:
PropertyAccessor<D,R>

public class UnionPropertyAccessor<D extends BioPAXElement,R> extends PropertyAccessorAdapter<D,R>
In OWL a single property can have multiple domains. This is not supported in OO. This class amends this by using a Facade pattern. A Union property will act like a OWL property with a union domain but in fact is composed of multiple single domain properties.
  • Constructor Details

  • Method Details

    • getValueFromBean

      public Set 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
    • isUnknown

      public boolean isUnknown(Object value)
      Description copied from interface: PropertyAccessor
      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