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
public class ByteArrayObjectImpl extends AtomicObjectImpl implements ByteArrayObject
- 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
COMPONENT, COMPONENT_KEY, LOG_INVALID_NATIVE_VALUE, LOG_NO_ORDER_DEFINED, LOG_UNCOMPARABLE_OBJECTS
-
Fields inherited from interface de.uni_trier.wi2.procake.data.object.base.ByteArrayObject
COMPONENT, COMPONENT_KEY, LOG_BYTEARRAY_TO_LARGE
-
-
Constructor Summary
Constructors Constructor Description ByteArrayObjectImpl(ByteArrayClass 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 objectByteArrayClassgetByteArrayClass()byte[]getNativeByteArray()ObjectgetNativeObject()booleanhasSameValueAsIn(DataObject object)This method makes a deep compare.booleanisByteArray()voidsetNativeByteArray(byte[] value)voidsetNativeObject(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, 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
-
-
-
-
Constructor Detail
-
ByteArrayObjectImpl
public ByteArrayObjectImpl(ByteArrayClass dataClass) throws IllegalInstantiationException
- Throws:
IllegalInstantiationException
-
-
Method Detail
-
getByteArrayClass
public ByteArrayClass getByteArrayClass()
- Specified by:
getByteArrayClassin interfaceByteArrayObject
-
getNativeByteArray
public byte[] getNativeByteArray()
- Specified by:
getNativeByteArrayin interfaceByteArrayObject
-
setNativeByteArray
public void setNativeByteArray(byte[] value) throws InvalidNativeValueException- Specified by:
setNativeByteArrayin interfaceByteArrayObject- Throws:
InvalidNativeValueException
-
getNativeObject
public Object getNativeObject()
- Specified by:
getNativeObjectin interfaceAtomicObject- Specified by:
getNativeObjectin classAtomicObjectImpl
-
setNativeObject
public void setNativeObject(Object value) throws InvalidNativeValueException
- Specified by:
setNativeObjectin interfaceAtomicObject- Throws:
InvalidNativeValueException
-
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 classAtomicObjectImpl- 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 classAtomicObjectImpl- Throws:
AssertSameValueAsInException
-
isByteArray
public boolean isByteArray()
- Specified by:
isByteArrayin interfaceDataObject- Overrides:
isByteArrayin classDataObjectImpl- Returns:
trueif the data class can be casted toByteArrayClass
-
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
-
-