Interface ByteArrayClass
- All Superinterfaces:
AtomicClass
,DataClass
,PropertyHandler
- All Known Implementing Classes:
ByteArrayClassImpl
A ByteArray can be used to store more complex data objects like images or documents.
Internally, it is an array of bytes, but conceptually it is used as one value, e.g., one image. To distinguish the different kind of content types it is necessary to specify the mime type of the content.
- Author:
- Rainer Maximini
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the class.static final long
The default maximum size of the content is the maximum a long value can hold.Fields inherited from interface de.uni_trier.wi2.procake.data.model.base.AtomicClass
LOG_CANNOT_HANDLE_NATIVE_VALUES, LOG_INTERVAL_BORDERS_INCOMPATIBLE, LOG_PARSING_NATIVE_VALUE, LOG_UNKNOWN_NATIVE_VALUE, LOG_UNKNOWN_VALUE_IN_ORDER, LOG_VALUE_RANGE_INCOMPATIBLE
Fields inherited from interface de.uni_trier.wi2.procake.data.model.DataClass
LOG_ABSTRACT_CLASS_NOT_INSTANTIABLE, LOG_ABSTRACT_SYSTEM_SUBCLASS_CREATION_FAILED, LOG_CLASS_NOT_EDITABLE, LOG_CLASS_NOT_INSTANTIABLE, LOG_EDITABLE_CLASS_NOT_INSTANTIABLE, LOG_FINISH_EDIT_FAILED, LOG_GET_SUPERCLASSES_FAILED, LOG_SUBCLASS_CREATION_FAILED
-
Method Summary
Modifier and TypeMethodDescriptionlong
The maximum size of the byte array that is allowed in theByteArrayObject
.The mime type of the content of aByteArrayObject
.void
setMaxSize
(long maxSize) Specify the maximum size of the byte array that is allowed in theByteArrayObject
.void
setMimeType
(String mimeType) Specifies the mime type of the content of aByteArrayObject
.Methods inherited from interface de.uni_trier.wi2.procake.data.model.base.AtomicClass
addAtomicObject, createNewInstanceEnumerationPredicate, createNewInstanceIntervalPredicate, createNewInstanceOntologyOrderPredicate, createNewInstanceTaxonomyOrderPredicate, createNewInstanceTotalOrderPredicate, getAtomicObjects, getDefaultValue, getInstanceEnumerationPredicate, getInstanceIntervalPredicate, getInstanceOntologyOrderPredicate, getInstancePredicate, getInstanceTaxonomyOrderPredicate, getInstanceTotalOrderPredicate, hasEnumerationRange, hasIntervalRange, hasTaxonomyRange, hasTotalOrderRange, nativeFromString, nativeToString, removeInstancePredicate, setDefaultValue
Methods inherited from interface de.uni_trier.wi2.procake.data.model.DataClass
addSubclass, checkInstantiability, createSubclass, finishEditing, getModel, getName, getObjectClass, getSubClasses, getSuperClass, getSuperClasses, getSystemClassName, getSystemSuperClass, includeClass, isAbstract, isAggregate, isAtomic, isBoolean, isByteArray, isCake2DataReference, isChronologic, isCollection, isControlflowItem, isDataflowWrapper, isDate, isDouble, isEditable, isInstantiable, isInteger, isInterval, isList, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTGraphItem, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isParentItem, isSequence, isSet, isString, isSubclassOf, isSubWorkflow, isSystemClass, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, isWorkflowItem, newObject, removeSubclass, setAbstract, setName
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty, setPropertyRootNode
-
Field Details
-
CLASS_NAME
The name of the class. This name should be used inModel.getClass(String)
to receive the system class. The value is * "ByteArray" .- See Also:
-
DEFAULT_MAXSIZE
static final long DEFAULT_MAXSIZEThe default maximum size of the content is the maximum a long value can hold.- See Also:
-
-
Method Details
-
getMaxSize
long getMaxSize()The maximum size of the byte array that is allowed in theByteArrayObject
.- Returns:
- The maximum size of the byte array.
-
setMaxSize
Specify the maximum size of the byte array that is allowed in theByteArrayObject
.- Parameters:
maxSize
- The maximum size.- Throws:
IllegalEditException
-
getMimeType
String getMimeType()The mime type of the content of aByteArrayObject
.- Returns:
- The mime type of the content.
-
setMimeType
Specifies the mime type of the content of aByteArrayObject
.- Parameters:
mimeType
- aString
object- Throws:
IllegalEditException
- if any.
-