Class BaSyxOperation.BaSxyOperationBuilder
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxOperation.BaSxyOperationBuilder
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder,de.iip_ecosphere.platform.support.aas.RbacReceiver<de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder>,de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Operation>
- Enclosing class:
BaSyxOperation
public static class BaSyxOperation.BaSxyOperationBuilder
extends Object
implements de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
Implements the operation builder.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable> private List<org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable> private BaSyxOperationprivate booleanprivate org.eclipse.digitaltwin.aas4j.v3.model.Operationprivate List<org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable> private BaSyxSubmodelElementContainerBuilder<?> Fields inherited from interface de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
DEFAULT_RETURN_VAR_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBaSxyOperationBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, BaSyxOperation instance) Creates an instance for modifying an existing property.BaSxyOperationBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddInOutVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type, Consumer<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder> init) de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddInputVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type, Consumer<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder> init) private voidaddInvocationQualifier(String type, String value) Adds an invocation qualifier.de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddOutputVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type, Consumer<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder> init) de.iip_ecosphere.platform.support.aas.Operationbuild()(package private) static BaSyxOperation.BaSxyOperationBuildercreate(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort, de.iip_ecosphere.platform.support.aas.Operation instance) Creates an operation builder, if possible frominstanceelse fromidShort.private org.eclipse.digitaltwin.aas4j.v3.model.OperationVariablecreateOperationVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type, Consumer<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder> init) Creates an operation variable.de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderrbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth) de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderrbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.Role role, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacAction... actions) de.iip_ecosphere.platform.support.aas.Operation.OperationBuildersetDescription(de.iip_ecosphere.platform.support.aas.LangString... description) de.iip_ecosphere.platform.support.aas.Operation.OperationBuildersetInvocable(de.iip_ecosphere.platform.support.aas.Invokable invocable) de.iip_ecosphere.platform.support.aas.Operation.OperationBuildersetInvocableLazy(de.iip_ecosphere.platform.support.aas.Invokable invocable) de.iip_ecosphere.platform.support.aas.Operation.OperationBuildersetSemanticId(String refValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
addInOutVariable, addInputVariable, addOutputVariable, build, build, build, rbacMethods inherited from interface de.iip_ecosphere.platform.support.aas.RbacReceiver
rbacAll, rbacAllAuthenticated, rbacDevice, rbacPlatform
-
Field Details
-
parentBuilder
-
instance
-
operation
private org.eclipse.digitaltwin.aas4j.v3.model.Operation operation -
inputVariables
-
outputVariables
-
inOutVariables
-
isNew
private boolean isNew
-
-
Constructor Details
-
BaSxyOperationBuilder
BaSxyOperationBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort) Creates an instance. Prevents from external creation.- Parameters:
parentBuilder- the parent builderidShort- the short name of the operation- Throws:
IllegalArgumentException- ifidShortis null or empty
-
BaSxyOperationBuilder
BaSxyOperationBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, BaSyxOperation instance) Creates an instance for modifying an existing property. Prevents external creation.- Parameters:
parentBuilder- the parent builderinstance- the existing property
-
-
Method Details
-
create
static BaSyxOperation.BaSxyOperationBuilder create(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort, de.iip_ecosphere.platform.support.aas.Operation instance) Creates an operation builder, if possible frominstanceelse fromidShort.- Parameters:
parentBuilder- the parent builderidShort- the id shortinstance- the optional operation instance- Returns:
- the builder
-
getParentBuilder
- Specified by:
getParentBuilderin interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
createOperationVariable
private org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable createOperationVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type, Consumer<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder> init) Creates an operation variable. Just in case that we somewhen need name and type.- Parameters:
idShort- the short id of the variabletype- the type of the variable (may be null for left undefined)init- optional initializer in builder style, may be null for none- Returns:
- the operation variable
-
addInputVariable
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder addInputVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type, Consumer<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder> init) - Specified by:
addInputVariablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
addOutputVariable
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder addOutputVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type, Consumer<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder> init) - Specified by:
addOutputVariablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
addInOutVariable
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder addInOutVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type, Consumer<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder> init) - Specified by:
addInOutVariablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
setInvocable
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder setInvocable(de.iip_ecosphere.platform.support.aas.Invokable invocable) - Specified by:
setInvocablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
addInvocationQualifier
Adds an invocation qualifier.- Parameters:
type- the qualifier typevalue- the qualifier value
-
setInvocableLazy
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder setInvocableLazy(de.iip_ecosphere.platform.support.aas.Invokable invocable) - Specified by:
setInvocableLazyin interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
setDescription
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder setDescription(de.iip_ecosphere.platform.support.aas.LangString... description) - Specified by:
setDescriptionin interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
build
public de.iip_ecosphere.platform.support.aas.Operation build()- Specified by:
buildin interfacede.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Operation>
-
setSemanticId
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder setSemanticId(String refValue) - Specified by:
setSemanticIdin interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
rbac
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder rbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.Role role, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacAction... actions) - Specified by:
rbacin interfacede.iip_ecosphere.platform.support.aas.RbacReceiver<de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder>
-
rbac
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder rbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth) - Specified by:
rbacin interfacede.iip_ecosphere.platform.support.aas.RbacReceiver<de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder>
-