org.eclipse.digitaltwin.aas4j.v3.model.Blob Maven / Gradle / Ivy
/*
* Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V.
* Copyright (c) 2023, SAP SE or an SAP affiliate company
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.eclipse.digitaltwin.aas4j.v3.model;
import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI;
import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes;
import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBlob;
/**
* A 'Blob' is a data element that represents a file that is contained with its source code in the
* value attribute.
*/
@KnownSubtypes({
@KnownSubtypes.Type(value = DefaultBlob.class)
})
public interface Blob extends DataElement {
/**
* The value of the 'Blob' instance of a blob data element.
*
* More information under https://admin-shell.io/aas/3/0/Blob/value
*
* @return Returns the byte[] for the property value.
*/
@IRI("https://admin-shell.io/aas/3/0/Blob/value")
byte[] getValue();
/**
* The value of the 'Blob' instance of a blob data element.
*
* More information under https://admin-shell.io/aas/3/0/Blob/value
*
* @param value desired value for the property value.
*/
void setValue(byte[] value);
/**
* Content type of the content of the 'Blob'.
*
* More information under https://admin-shell.io/aas/3/0/Blob/contentType
*
* @return Returns the String for the property contentType.
*/
@IRI("https://admin-shell.io/aas/3/0/Blob/contentType")
String getContentType();
/**
* Content type of the content of the 'Blob'.
*
* More information under https://admin-shell.io/aas/3/0/Blob/contentType
*
* @param contentType desired value for the property contentType.
*/
void setContentType(String contentType);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy