Interface ByteArrayClass
-
- All Superinterfaces:
AtomicClass,DataClass,PropertyHandler
- All Known Implementing Classes:
ByteArrayClassImpl
public interface ByteArrayClass extends AtomicClass
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:
ByteArrayObject
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEThe name of the class.static longDEFAULT_MAXSIZEThe 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
COMPONENT, COMPONENT_KEY, 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetMaxSize()The maximum size of the byte array that is allowed in theByteArrayObject.StringgetMimeType()The mime type of the content of aByteArrayObject.voidsetMaxSize(long maxSize)Specify the maximum size of the byte array that is allowed in theByteArrayObject.voidsetMimeType(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, 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
-
-
-
-
Field Detail
-
CLASS_NAME
static final String 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:
- Constant Field Values
-
DEFAULT_MAXSIZE
static final long DEFAULT_MAXSIZE
The default maximum size of the content is the maximum a long value can hold.- See Also:
Long.MAX_VALUE, Constant Field Values
-
-
Method Detail
-
getMaxSize
long getMaxSize()
The maximum size of the byte array that is allowed in theByteArrayObject.- Returns:
- The maximum size of the byte array.
-
setMaxSize
void setMaxSize(long maxSize) throws IllegalEditExceptionSpecify 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
void setMimeType(String mimeType) throws IllegalEditException
Specifies the mime type of the content of aByteArrayObject.- Parameters:
mimeType- aStringobject- Throws:
IllegalEditException- if any.
-
-