|
||||||||||
| 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>
org.biopax.paxtools.controller.PropertyEditor<D,R>
org.biopax.paxtools.controller.PrimitivePropertyEditor<D,R>
public class PrimitivePropertyEditor<D extends BioPAXElement,R>
Provides a primitive (int, float, double) class compatible editor by extending the PropertyEditor.
PropertyEditor| 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. |
| Fields inherited from class org.biopax.paxtools.controller.PropertyEditor |
|---|
addMethod, log, property, removeMethod, setMethod |
| Fields inherited from class org.biopax.paxtools.controller.SimplePropertyAccessor |
|---|
getMethod |
| Constructor Summary | |
|---|---|
PrimitivePropertyEditor(java.lang.String property,
java.lang.reflect.Method getMethod,
java.lang.Class<D> domain,
java.lang.Class<R> range,
boolean multipleCardinality)
|
|
| Method Summary | |
|---|---|
java.lang.Class<D> |
getDomain()
Returns the domain of the property. |
java.lang.Class<R> |
getRange()
Returns the range of the editor. |
R |
getUnknown()
Gets the unknown value. |
boolean |
isMultipleCardinality()
Checks if the property to which editor is assigned has multiple cardinality. |
boolean |
isUnknown(java.lang.Object value)
According the editor type, this methods checks if value equals to one of the unknown values defined under BioPAXElement
or is an empty set or set of "unknown" values. |
protected R |
parseValueFromString(java.lang.String s)
|
| Methods inherited from class org.biopax.paxtools.controller.PropertyEditor |
|---|
addMaxCardinalityRestriction, checkRestrictions, createPropertyEditor, detectRange, getAddMethod, getGetMethod, getMaxCardinality, getPrimarySetMethod, getProperty, getRemoveMethod, getSetMethod, invokeMethod, isInstanceOfAtLeastOne, removeValueFromBean, removeValueFromBean, setValueToBean, setValueToBean, toString |
| Methods inherited from class org.biopax.paxtools.controller.SimplePropertyAccessor |
|---|
getValueFromBean, isMultipleCardinality |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 PrimitivePropertyEditor(java.lang.String property,
java.lang.reflect.Method getMethod,
java.lang.Class<D> domain,
java.lang.Class<R> range,
boolean multipleCardinality)
| Method Detail |
|---|
protected R parseValueFromString(java.lang.String s)
parseValueFromString in class PropertyEditor<D extends BioPAXElement,R>public boolean isUnknown(java.lang.Object value)
BioPAXElement
or is an empty set or set of "unknown" values.
isUnknown in interface PropertyAccessor<D extends BioPAXElement,R>isUnknown in class SimplePropertyAccessor<D extends BioPAXElement,R>value - the value to be checked if it is unknown
public R getUnknown()
PropertyEditorBioPAXElement.UNKNOWN_FLOAT)
getUnknown in class PropertyEditor<D extends BioPAXElement,R>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 | |||||||||