|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biopax.paxtools.controller.SimplePropertyAccessor<D,R>
public class SimplePropertyAccessor<D extends BioPAXElement,R>
| Field Summary | |
|---|---|
protected java.lang.Class<D> |
domain
This is the Class representing the domain of the property. |
protected java.lang.reflect.Method |
getMethod
This variable stores the method to invoke for getting the value of the property on a given bean. |
protected boolean |
multipleCardinality
This is false if there is a cardinality restriction of one on the property. |
protected java.lang.Class<R> |
range
This is the Class representing the range of the property. |
| Constructor Summary | |
|---|---|
SimplePropertyAccessor(java.lang.Class<D> domain,
java.lang.Class<R> range,
boolean multipleCardinality,
java.lang.reflect.Method getMethod)
|
|
| 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<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. |
protected static boolean |
isMultipleCardinality(java.lang.reflect.Method getMethod)
|
boolean |
isUnknown(java.lang.Object value)
Checks if the value is unkown. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.reflect.Method getMethod
Set
otherwise an instance of range
protected java.lang.Class<D extends BioPAXElement> domain
protected java.lang.Class<R> range
protected final boolean multipleCardinality
| Constructor Detail |
|---|
public SimplePropertyAccessor(java.lang.Class<D> domain,
java.lang.Class<R> range,
boolean multipleCardinality,
java.lang.reflect.Method getMethod)
| Method Detail |
|---|
protected static boolean isMultipleCardinality(java.lang.reflect.Method getMethod)
public java.util.Set<R> getValueFromBean(D bean)
throws IllegalBioPAXArgumentException
getMethod.
If the value is unknown returns null or an empty set depending on the cardinality.
bean - the object whose property is requested
IllegalBioPAXArgumentExceptionpublic boolean isUnknown(java.lang.Object value)
value - the value to be checked
public java.lang.Class<D> getDomain()
getDomain in interface PropertyAccessor<D extends BioPAXElement,R>public java.lang.Class<R> getRange()
getRange in interface PropertyAccessor<D extends BioPAXElement,R>public boolean isMultipleCardinality()
isMultipleCardinality in interface PropertyAccessor<D extends BioPAXElement,R>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||