Package org.biopax.paxtools.controller
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 TypeMethodDescriptionReturns the domain of the property.getRange()Returns the range of the editor.getValueFromBean(D bean) Returns the value of the bean using the default getMethod.getValueFromBeans(Collection<? extends D> beans) Returns the values for a collection of beans using the default getMethod.booleanChecks if the property to which editor is assigned has multiple cardinality.booleanChecks if the value is unkown.
-
Method Details
-
getDomain
Returns the domain of the property.- Returns:
- the domain of the editor
-
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
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
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
-