Class BaSyxProperty.BaSyxPropertyBuilder
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxProperty.BaSyxPropertyBuilder
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder,de.iip_ecosphere.platform.support.aas.RbacReceiver<de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder>,de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Property>
- Enclosing class:
BaSyxProperty
public static class BaSyxProperty.BaSyxPropertyBuilder
extends Object
implements de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
Builder for
BaSyxProperty.- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BaSyxPropertyprivate booleanprivate BaSyxSubmodelElementContainerBuilder<?> private org.eclipse.digitaltwin.aas4j.v3.model.Propertyprivate org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsdFields inherited from interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
READ_ONLY, READ_ONLY_FUNC, WRITE_ONLY, WRITE_ONLY_FUNC -
Constructor Summary
ConstructorsConstructorDescriptionBaSyxPropertyBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, BaSyxProperty instance) Creates an instance for modifying an existing property.BaSyxPropertyBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.aas.Property.PropertyBuilderbind(de.iip_ecosphere.platform.support.aas.Invokable get, de.iip_ecosphere.platform.support.aas.Invokable set) de.iip_ecosphere.platform.support.aas.Property.PropertyBuilderbindLazy(de.iip_ecosphere.platform.support.aas.Invokable get, de.iip_ecosphere.platform.support.aas.Invokable set) de.iip_ecosphere.platform.support.aas.Propertybuild()(package private) static BaSyxProperty.BaSyxPropertyBuildercreate(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort, de.iip_ecosphere.platform.support.aas.Property instance) Creates a property builder, if possible frominstanceelse fromidShort.getValue()de.iip_ecosphere.platform.support.aas.Property.PropertyBuilderrbac(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.Property.PropertyBuildersetDescription(de.iip_ecosphere.platform.support.aas.LangString... description) de.iip_ecosphere.platform.support.aas.Property.PropertyBuildersetSemanticId(String refValue) de.iip_ecosphere.platform.support.aas.Property.PropertyBuildersetType(de.iip_ecosphere.platform.support.aas.Type type) de.iip_ecosphere.platform.support.aas.Property.PropertyBuilderde.iip_ecosphere.platform.support.aas.Property.PropertyBuilderMethods 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.Property.PropertyBuilder
build, rbac, rbacMethods inherited from interface de.iip_ecosphere.platform.support.aas.RbacReceiver
rbacAll, rbacAllAuthenticated, rbacDevice, rbacPlatform
-
Field Details
-
parentBuilder
-
instance
-
property
private org.eclipse.digitaltwin.aas4j.v3.model.Property property -
typeDef
private org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd typeDef -
isNew
private boolean isNew
-
-
Constructor Details
-
BaSyxPropertyBuilder
BaSyxPropertyBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort) Creates an instance. Prevents external creation.- Parameters:
parentBuilder- the parent builderidShort- the short name of the property- Throws:
IllegalArgumentException- ifidShortis null or empty
-
BaSyxPropertyBuilder
BaSyxPropertyBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, BaSyxProperty instance) Creates an instance for modifying an existing property. Prevents external creation.- Parameters:
parentBuilder- the parent builderinstance- the existing property
-
-
Method Details
-
create
static BaSyxProperty.BaSyxPropertyBuilder create(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort, de.iip_ecosphere.platform.support.aas.Property instance) Creates a property builder, if possible frominstanceelse fromidShort.- Parameters:
parentBuilder- the parent builderidShort- the id shortinstance- the optional property instance- Returns:
- the builder
-
getParentBuilder
- Specified by:
getParentBuilderin interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
setType
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setType(de.iip_ecosphere.platform.support.aas.Type type) - Specified by:
setTypein interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
bind
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder bind(de.iip_ecosphere.platform.support.aas.Invokable get, de.iip_ecosphere.platform.support.aas.Invokable set) - Specified by:
bindin interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
bindLazy
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder bindLazy(de.iip_ecosphere.platform.support.aas.Invokable get, de.iip_ecosphere.platform.support.aas.Invokable set) - Specified by:
bindLazyin interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
setValue
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setValue(de.iip_ecosphere.platform.support.aas.Type type, Object value) - Specified by:
setValuein interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
setDescription
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setDescription(de.iip_ecosphere.platform.support.aas.LangString... description) - Specified by:
setDescriptionin interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
setValue
- Specified by:
setValuein interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
setSemanticId
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setSemanticId(String refValue) - Specified by:
setSemanticIdin interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
build
public de.iip_ecosphere.platform.support.aas.Property build()- Specified by:
buildin interfacede.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Property>
-
getValue
- Specified by:
getValuein interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder- Throws:
ExecutionException
-
rbac
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder 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.Property.PropertyBuilder>
-