public abstract class PropertyAccessorAdapter<D extends BioPAXElement,R> extends Object implements PropertyAccessor<D,R>
Modifier and Type | Field and Description |
---|---|
protected Class<D> |
domain
This is the Class representing the domain of the property.
|
protected boolean |
multipleCardinality
This is false if there is a cardinality restriction of one on the property.
|
protected Class<R> |
range
This is the Class representing the range of the property.
|
Modifier | Constructor and Description |
---|---|
protected |
PropertyAccessorAdapter(Class<D> domain,
Class<R> range,
boolean multipleCardinality) |
Modifier and Type | Method and Description |
---|---|
Class<D> |
getDomain()
Returns the domain of the property.
|
Class<R> |
getRange()
Returns the range of the editor.
|
Set<? extends R> |
getValueFromBeans(Collection<? extends D> beans)
Returns the values for a collection of beans using the default getMethod.
|
boolean |
isMultipleCardinality()
Checks if the property to which editor is assigned has multiple cardinality.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueFromBean, isUnknown
protected Class<D extends BioPAXElement> domain
protected Class<R> range
protected boolean multipleCardinality
protected PropertyAccessorAdapter(Class<D> domain, Class<R> range, boolean multipleCardinality)
public Class<D> getDomain()
getDomain
in interface PropertyAccessor<D extends BioPAXElement,R>
public Class<R> getRange()
getRange
in interface PropertyAccessor<D extends BioPAXElement,R>
public boolean isMultipleCardinality()
isMultipleCardinality
in interface PropertyAccessor<D extends BioPAXElement,R>
public Set<? extends R> getValueFromBeans(Collection<? extends D> beans) throws IllegalBioPAXArgumentException
PropertyAccessor
getValueFromBeans
in interface PropertyAccessor<D extends BioPAXElement,R>
beans
- collection of BioPAX objectsIllegalBioPAXArgumentException
Copyright © 2015 BioPAX. All rights reserved.