java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxSubmodelElement
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxDataElement<org.eclipse.digitaltwin.aas4j.v3.model.Blob>
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxBlob
All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.BlobDataElement, de.iip_ecosphere.platform.support.aas.DataElement, de.iip_ecosphere.platform.support.aas.Element, de.iip_ecosphere.platform.support.aas.HasDataSpecification, de.iip_ecosphere.platform.support.aas.HasKind, de.iip_ecosphere.platform.support.aas.HasSemantics, de.iip_ecosphere.platform.support.aas.Qualifiable, de.iip_ecosphere.platform.support.aas.Referable, de.iip_ecosphere.platform.support.aas.SubmodelElement

public class BaSyxBlob extends BaSyxDataElement<org.eclipse.digitaltwin.aas4j.v3.model.Blob> implements de.iip_ecosphere.platform.support.aas.BlobDataElement
Wraps a BaSyx BLOB data element. Shall be created by respective builder methods.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • BaSyxBlob

      public BaSyxBlob(String idShort, String value, String mimeType)
      Creates a BaSyx BLOB.
      Parameters:
      idShort - the short id of the data element
      value - the value, may be null for none
      mimeType - the mime type of the file
    • BaSyxBlob

      public BaSyxBlob(org.eclipse.digitaltwin.aas4j.v3.model.Blob blob)
      Crates a wrapper instance.
      Parameters:
      blob - the BaSyx blob
  • Method Details

    • getValue

      public String getValue()
      Specified by:
      getValue in interface de.iip_ecosphere.platform.support.aas.BlobDataElement
    • getValueAsByteArray

      public byte[] getValueAsByteArray()
      Specified by:
      getValueAsByteArray in interface de.iip_ecosphere.platform.support.aas.BlobDataElement
    • setValue

      public void setValue(String value)
      Specified by:
      setValue in interface de.iip_ecosphere.platform.support.aas.BlobDataElement
    • setValue

      public void setValue(byte[] value)
      Specified by:
      setValue in interface de.iip_ecosphere.platform.support.aas.BlobDataElement
    • getMimeType

      public String getMimeType()
      Specified by:
      getMimeType in interface de.iip_ecosphere.platform.support.aas.BlobDataElement
    • setMimeType

      public void setMimeType(String mimeType)
      Specified by:
      setMimeType in interface de.iip_ecosphere.platform.support.aas.BlobDataElement
    • accept

      public void accept(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)
      Specified by:
      accept in interface de.iip_ecosphere.platform.support.aas.Element
      Overrides:
      accept in class BaSyxDataElement<org.eclipse.digitaltwin.aas4j.v3.model.Blob>