Class IntervalObjectImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
-
- de.uni_trier.wi2.procake.data.object.base.impl.IntervalObjectImpl
-
- All Implemented Interfaces:
IntervalObject,DataObject,PropertyHandler
public class IntervalObjectImpl extends DataObjectImpl implements IntervalObject
- Author:
- Rainer Maximini
-
-
Field Summary
-
Fields inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
objectId
-
Fields inherited from interface de.uni_trier.wi2.procake.data.object.base.IntervalObject
COMPONENT, COMPONENT_KEY, LOG_UNCOMPARABLE_OBJECTS, LOG_WRONG_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description IntervalObjectImpl(IntervalClass dataClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertSameValueAsIn(DataObject object)DataObjectcopy()Makes a deep copy of the data objectIntervalClassgetIntervalClass()AtomicObjectgetLowerBound()AtomicObjectgetUpperBound()booleanhasSameValueAsIn(DataObject object)This method makes a deep compare.booleanincludes(AtomicObject valueToCheck)voidsetBounds(AtomicObject newLowerBound, AtomicObject newUpperBound)Sets the bound of the interval.StringtoString()-
Methods inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
addProperty, addProperty, deepCopy, getAllProperties, getAllPropertyNodes, getDataClass, getId, getModel, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasClassName, hasProperties, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, removeProperty, setDataClass, setId, toDetailedString, toXML
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
getDataClass, getId, getModel, hasClassName, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, setDataClass, setId, toDetailedString, toXML
-
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty
-
-
-
-
Constructor Detail
-
IntervalObjectImpl
public IntervalObjectImpl(IntervalClass dataClass) throws IllegalInstantiationException
- Throws:
IllegalInstantiationException
-
-
Method Detail
-
getIntervalClass
public IntervalClass getIntervalClass()
- Specified by:
getIntervalClassin interfaceIntervalObject
-
getLowerBound
public AtomicObject getLowerBound()
- Specified by:
getLowerBoundin interfaceIntervalObject
-
getUpperBound
public AtomicObject getUpperBound()
- Specified by:
getUpperBoundin interfaceIntervalObject
-
hasSameValueAsIn
public boolean hasSameValueAsIn(DataObject object)
Description copied from interface:DataObjectThis method makes a deep compare. For atomic objects this is equal to theequalmethod. For sets, lists, aggregates, and others a deeper comparision is performed.- Specified by:
hasSameValueAsInin interfaceDataObject- Overrides:
hasSameValueAsInin classDataObjectImpl- Parameters:
object- The object to compare.- Returns:
trueif the givenobjecthas the same value(s) as this one.
-
assertSameValueAsIn
public void assertSameValueAsIn(DataObject object) throws AssertSameValueAsInException
- Specified by:
assertSameValueAsInin interfaceDataObject- Overrides:
assertSameValueAsInin classDataObjectImpl- Throws:
AssertSameValueAsInException
-
includes
public boolean includes(AtomicObject valueToCheck) throws UncomparableObjectsException
- Specified by:
includesin interfaceIntervalObject- Parameters:
valueToCheck- The value that has to be checked.- Returns:
trueif thevalueToCheckis before the upper bound and after the lower bound.- Throws:
UncomparableObjectsException
-
setBounds
public void setBounds(AtomicObject newLowerBound, AtomicObject newUpperBound) throws InvalidTypeException
Description copied from interface:IntervalObjectSets the bound of the interval. The bounds are automatically ordered.- Specified by:
setBoundsin interfaceIntervalObject- Parameters:
newLowerBound- The lower bound of the interval.newUpperBound- The upper bound of the interval.- Throws:
InvalidTypeException
-
toString
public String toString()
- Overrides:
toStringin classDataObjectImpl
-
copy
public DataObject copy()
Description copied from interface:DataObjectMakes a deep copy of the data object- Specified by:
copyin interfaceDataObject- Overrides:
copyin classDataObjectImpl- Returns:
- deep copy of the data object
-
-