public class PrimitivePropertyEditor<D extends BioPAXElement,R> extends AbstractPropertyEditor<D,R> implements DataPropertyEditor<D,R>
PropertyEditor
.PropertyEditor
addMethod, checkRestrictions, log, property, removeMethod, setMethod
getMethod
domain, multipleCardinality, range
Constructor and Description |
---|
PrimitivePropertyEditor(String property,
Method getMethod,
Class<D> domain,
Class<R> range,
boolean multipleCardinality) |
Modifier and Type | Method and Description |
---|---|
R |
getUnknown()
Gets the unknown value.
|
boolean |
isUnknown(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(String s) |
addMaxCardinalityRestriction, checkRestrictions, createPropertyEditor, detectRange, getAddMethod, getGetMethod, getMaxCardinality, getPrimarySetMethod, getProperty, getRemoveMethod, getSetMethod, invokeMethod, isInstanceOfAtLeastOne, removeValueFromBean, removeValueFromBean, setValueToBean, setValueToBean, toString
getValueFromBean, isMultipleCardinality
getDomain, getRange, getValueFromBeans, isMultipleCardinality
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addMaxCardinalityRestriction, getAddMethod, getGetMethod, getMaxCardinality, getPrimarySetMethod, getProperty, getRemoveMethod, getSetMethod, removeValueFromBean, removeValueFromBean, setValueToBean, setValueToBean, toString
getDomain, getRange, getValueFromBean, getValueFromBeans, isMultipleCardinality
public PrimitivePropertyEditor(String property, Method getMethod, Class<D> domain, Class<R> range, boolean multipleCardinality)
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.protected R parseValueFromString(String s)
parseValueFromString
in class AbstractPropertyEditor<D extends BioPAXElement,R>
public boolean isUnknown(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 unknownpublic R getUnknown()
PropertyEditor
BioPAXElement.UNKNOWN_FLOAT
)getUnknown
in interface PropertyEditor<D extends BioPAXElement,R>
getUnknown
in class AbstractPropertyEditor<D extends BioPAXElement,R>
Copyright © 2015 BioPAX. All rights reserved.