org.biopax.paxtools.controller
Interface PropertyAccessor<D extends BioPAXElement,R>

All Known Implementing Classes:
DecoratingPropertyAccessor, EnumeratedPropertyEditor, FilteredPropertyAccessor, ObjectPropertyEditor, PathAccessor, PrimitivePropertyEditor, PropertyEditor, 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
 java.lang.Class<D> getDomain()
          Returns the domain of the property.
 java.lang.Class<R> getRange()
          Returns the range of the editor.
 java.util.Set<? extends R> getValueFromBean(D bean)
          Returns the value of the bean using the default #getMethod.
 boolean isMultipleCardinality()
          Checks if the property to which editor is assigned has multiple cardinality.
 boolean isUnknown(java.lang.Object value)
          Checks if the value is unkown.
 

Method Detail

getDomain

java.lang.Class<D> getDomain()
Returns the domain of the property.

Returns:
the domain of the editor

getRange

java.lang.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

java.util.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

isUnknown

boolean isUnknown(java.lang.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


Copyright © 2011 BioPAX. All Rights Reserved.