|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biopax.paxtools.controller.PathAccessor
public class PathAccessor
This class accepts an xPath like syntax to access a property path from a bean.
| Field Summary | |
|---|---|
protected java.lang.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 java.lang.Class<R> |
range
This is the Class representing the range of the property. |
| Constructor Summary | |
|---|---|
PathAccessor(java.util.List<PropertyAccessor<? extends BioPAXElement,? extends BioPAXElement>> objectAccessors,
PropertyAccessor lastStep)
|
|
PathAccessor(java.lang.String path,
BioPAXLevel level)
|
|
| 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 |
getValueFromBean(BioPAXElement 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Class<D extends BioPAXElement> domain
protected java.lang.Class<R> range
protected final boolean multipleCardinality
| Constructor Detail |
|---|
public PathAccessor(java.util.List<PropertyAccessor<? extends BioPAXElement,? extends BioPAXElement>> objectAccessors,
PropertyAccessor lastStep)
public PathAccessor(java.lang.String path,
BioPAXLevel level)
| Method Detail |
|---|
public java.util.Set getValueFromBean(BioPAXElement bean)
throws IllegalBioPAXArgumentException
PropertyAccessor#getMethod.
bean - the object whose property is requested
IllegalBioPAXArgumentExceptionpublic boolean isUnknown(java.lang.Object value)
PropertyAccessor
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 | |||||||||