Package io.adminshell.aas.v3.model
Interface Blob
-
- All Superinterfaces:
DataElement,HasDataSpecification,HasExtensions,HasKind,HasSemantics,Qualifiable,Referable,SubmodelElement
- All Known Implementing Classes:
DefaultBlob
public interface Blob extends DataElement
A BLOB is a data element that represents a file that is contained with its source code in the value attribute. Constraint AASd-057: The semanticId of a File or Blob submodel element shall only reference a ConceptDescription with the category DOCUMENT.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetMimeType()Mime type of the content of the BLOB.byte[]getValue()The value of the BLOB instance of a blob data element.voidsetMimeType(java.lang.String mimeType)Mime type of the content of the BLOB.voidsetValue(byte[] value)The value of the BLOB instance of a blob data element.-
Methods inherited from interface io.adminshell.aas.v3.model.HasDataSpecification
getEmbeddedDataSpecifications, setEmbeddedDataSpecifications
-
Methods inherited from interface io.adminshell.aas.v3.model.HasExtensions
getExtensions, setExtensions
-
Methods inherited from interface io.adminshell.aas.v3.model.HasSemantics
getSemanticId, setSemanticId
-
Methods inherited from interface io.adminshell.aas.v3.model.Qualifiable
getQualifiers, setQualifiers
-
Methods inherited from interface io.adminshell.aas.v3.model.Referable
getCategory, getDescriptions, getDisplayNames, getIdShort, setCategory, setDescriptions, setDisplayNames, setIdShort
-
-
-
-
Method Detail
-
getMimeType
java.lang.String getMimeType()
Mime type of the content of the BLOB. The mime type states which file extension the file has. Valid values are e.g. 'application/json', 'application/xls', 'image/jpg' The allowed values are defined as in RFC2046. More information under https://admin-shell.io/aas/3/0/RC01/Blob/mimeType- Returns:
- Returns the String for the property mimeType.
-
setMimeType
void setMimeType(java.lang.String mimeType)
Mime type of the content of the BLOB. The mime type states which file extension the file has. Valid values are e.g. 'application/json', 'application/xls', 'image/jpg' The allowed values are defined as in RFC2046. More information under https://admin-shell.io/aas/3/0/RC01/Blob/mimeType- Parameters:
mimeType- desired value for the property mimeType.
-
getValue
byte[] getValue()
The value of the BLOB instance of a blob data element. In contrast to the file property the file content is stored directly as value in the Blob data element. More information under https://admin-shell.io/aas/3/0/RC01/Blob/value- Returns:
- Returns the byte[] for the property value.
-
setValue
void setValue(byte[] value)
The value of the BLOB instance of a blob data element. In contrast to the file property the file content is stored directly as value in the Blob data element. More information under https://admin-shell.io/aas/3/0/RC01/Blob/value- Parameters:
value- desired value for the property value.
-
-