Class ByteArrayObjectImpl
java.lang.Object
de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
de.uni_trier.wi2.procake.data.object.base.impl.AtomicObjectImpl
de.uni_trier.wi2.procake.data.object.base.impl.ByteArrayObjectImpl
- All Implemented Interfaces:
AtomicObject
,ByteArrayObject
,DataObject
,PropertyHandler
- 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.AtomicObject
LOG_INVALID_NATIVE_VALUE, LOG_INVALID_VALUE_CAUSES_FAILING_INSTANTIATION, LOG_NO_ORDER_DEFINED, LOG_UNCOMPARABLE_OBJECTS
Fields inherited from interface de.uni_trier.wi2.procake.data.object.base.ByteArrayObject
LOG_BYTEARRAY_TO_LARGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assertSameValueAsIn
(DataObject object) copy()
Makes a deep copy of the data objectbyte[]
boolean
hasSameValueAsIn
(DataObject object) This method makes a deep compare.boolean
void
setNativeByteArray
(byte[] value) void
setNativeObject
(Object value) Methods inherited from class de.uni_trier.wi2.procake.data.object.base.impl.AtomicObjectImpl
checkConsistency, getAtomicClass, isConsistent, setValueFromString, toString
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, 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, setPropertyRootNode, 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.base.AtomicObject
getAtomicClass, isConsistent, setValueFromString
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
getDataClass, getId, getModel, hasClassName, hasSystemClassName, isAggregate, isAtomic, isBoolean, 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, setPropertyRootNode
-
Constructor Details
-
ByteArrayObjectImpl
- Throws:
IllegalInstantiationException
-
-
Method Details
-
getByteArrayClass
- Specified by:
getByteArrayClass
in interfaceByteArrayObject
-
getNativeByteArray
public byte[] getNativeByteArray()- Specified by:
getNativeByteArray
in interfaceByteArrayObject
-
setNativeByteArray
- Specified by:
setNativeByteArray
in interfaceByteArrayObject
- Throws:
InvalidNativeValueException
-
getNativeObject
- Specified by:
getNativeObject
in interfaceAtomicObject
- Specified by:
getNativeObject
in classAtomicObjectImpl
-
setNativeObject
- Specified by:
setNativeObject
in interfaceAtomicObject
- Throws:
InvalidNativeValueException
-
hasSameValueAsIn
Description copied from interface:DataObject
This method makes a deep compare. For atomic objects this is equal to theequal
method. For sets, lists, aggregates, and others a deeper comparision is performed.- Specified by:
hasSameValueAsIn
in interfaceDataObject
- Overrides:
hasSameValueAsIn
in classAtomicObjectImpl
- Parameters:
object
- The object to compare.- Returns:
true
if the givenobject
has the same value(s) as this one.
-
assertSameValueAsIn
- Specified by:
assertSameValueAsIn
in interfaceDataObject
- Overrides:
assertSameValueAsIn
in classAtomicObjectImpl
- Throws:
AssertSameValueAsInException
-
isByteArray
public boolean isByteArray()- Specified by:
isByteArray
in interfaceDataObject
- Overrides:
isByteArray
in classDataObjectImpl
- Returns:
true
if the data class can be casted toByteArrayClass
-
copy
Description copied from interface:DataObject
Makes a deep copy of the data object- Specified by:
copy
in interfaceDataObject
- Overrides:
copy
in classDataObjectImpl
- Returns:
- deep copy of the data object
-