Package org.biopax.paxtools.controller
Class PrimitivePropertyEditor<D extends BioPAXElement,R>
java.lang.Object
org.biopax.paxtools.controller.PropertyAccessorAdapter<D,R>
org.biopax.paxtools.controller.SimplePropertyAccessor<D,R>
org.biopax.paxtools.controller.AbstractPropertyEditor<D,R>
org.biopax.paxtools.controller.PrimitivePropertyEditor<D,R>
- All Implemented Interfaces:
DataPropertyEditor<D,,R> PropertyAccessor<D,,R> PropertyEditor<D,R>
public class PrimitivePropertyEditor<D extends BioPAXElement,R>
extends AbstractPropertyEditor<D,R>
implements DataPropertyEditor<D,R>
Provides a primitive (int, float, double) class compatible editor by extending the
PropertyEditor.- See Also:
-
Field Summary
Fields inherited from class org.biopax.paxtools.controller.AbstractPropertyEditor
addMethod, checkRestrictions, log, property, removeMethod, setMethodFields inherited from class org.biopax.paxtools.controller.SimplePropertyAccessor
getMethodFields inherited from class org.biopax.paxtools.controller.PropertyAccessorAdapter
domain, multipleCardinality, range -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the unknown value.booleanAccording the editor type, this methods checks if value equals to one of the unknown values defined underBioPAXElementor is an empty set or set of "unknown" values.protected RMethods inherited from class org.biopax.paxtools.controller.AbstractPropertyEditor
addMaxCardinalityRestriction, checkRestrictions, createPropertyEditor, detectRange, getAddMethod, getGetMethod, getMaxCardinality, getPrimarySetMethod, getProperty, getRemoveMethod, getSetMethod, invokeMethod, isInstanceOfAtLeastOne, removeValueFromBean, removeValueFromBean, setValueToBean, setValueToBean, toStringMethods inherited from class org.biopax.paxtools.controller.SimplePropertyAccessor
getValueFromBean, isMultipleCardinalityMethods inherited from class org.biopax.paxtools.controller.PropertyAccessorAdapter
getDomain, getRange, getValueFromBeans, isMultipleCardinalityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.biopax.paxtools.controller.PropertyAccessor
getDomain, getRange, getValueFromBean, getValueFromBeans, isMultipleCardinalityMethods inherited from interface org.biopax.paxtools.controller.PropertyEditor
addMaxCardinalityRestriction, getAddMethod, getGetMethod, getMaxCardinality, getPrimarySetMethod, getProperty, getRemoveMethod, getSetMethod, removeValueFromBean, removeValueFromBean, setValueToBean, setValueToBean, toString
-
Constructor Details
-
PrimitivePropertyEditor
public PrimitivePropertyEditor(String property, Method getMethod, Class<D> domain, Class<R> range, boolean multipleCardinality) - Parameters:
property- Name of the property, e.g. stoichiometricCoefficient.getMethod- A "Method" class that represents the getter method. e.g. getEntityReference()domain- name of the domain of this property. e.g. PhysicalEntityrange- name of the range of this property. e.g. EntityReference.multipleCardinality- false if this property is functional, e.g. many-to-one or one-to-one.
-
-
Method Details
-
parseValueFromString
- Overrides:
parseValueFromStringin classAbstractPropertyEditor<D extends BioPAXElement,R>
-
isUnknown
According the editor type, this methods checks if value equals to one of the unknown values defined underBioPAXElementor is an empty set or set of "unknown" values.- Specified by:
isUnknownin interfacePropertyAccessor<D extends BioPAXElement,R> - Overrides:
isUnknownin classSimplePropertyAccessor<D extends BioPAXElement,R> - Parameters:
value- the value to be checked if it is unknown- Returns:
- true, if value equals to the predefined unknown value
-
getUnknown
Description copied from interface:PropertyEditorGets the unknown value. In an object property or enumeration context a value is regarded to be unknown if it is null (unset); in a primitive property context it depends (can be e.g.,BioPAXElement.UNKNOWN_FLOAT)- Specified by:
getUnknownin interfacePropertyEditor<D extends BioPAXElement,R> - Overrides:
getUnknownin classAbstractPropertyEditor<D extends BioPAXElement,R> - Returns:
- null or what it means that the property value is unknown
-