Class BaSyxSubmodelElementCollection.BaSyxSubmodelElementCollectionBuilder
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxSubmodelElementCollection.BaSyxSubmodelElementCollectionBuilder
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.DeferredBuilder<de.iip_ecosphere.platform.support.aas.SubmodelElementCollection>,de.iip_ecosphere.platform.support.aas.RbacReceiver<de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder>,de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder,de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder,de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.SubmodelElementCollection>
- Enclosing class:
BaSyxSubmodelElementCollection
public static class BaSyxSubmodelElementCollection.BaSyxSubmodelElementCollectionBuilder
extends BaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>
implements de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder
The sub-model element collection builder.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollectionprivate BaSyxSubmodelElementCollectionprivate booleanprivate BaSyxSubmodelElementContainerBuilder<?> private boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaSyxSubmodelElementCollectionBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, BaSyxSubmodelElementCollection instance) Creates an instance from an existing BaSyx instance.protectedBaSyxSubmodelElementCollectionBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort, boolean ordered, boolean allowDuplicates) Creates a sub-model element collection builder.protectedBaSyxSubmodelElementCollectionBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort, Supplier<BaSyxSubmodelElementCollection> wCreator, Supplier<org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection> bCreator) Creates a sub-model element collection builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()void(package private) voidCallsBuilder.build()on all deferred builders.de.iip_ecosphere.platform.support.aas.Operation.OperationBuildercreateOperationBuilder(String idShort) de.iip_ecosphere.platform.support.aas.Property.PropertyBuildercreatePropertyBuilder(String idShort) de.iip_ecosphere.platform.support.aas.ReferenceCreates a reference to the sub-model under creation.de.iip_ecosphere.platform.support.aas.ReferenceElement.ReferenceElementBuildercreateReferenceElementBuilder(String idShort) de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilderde.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilderde.iip_ecosphere.platform.support.aas.SubmodelElementList.SubmodelElementListBuildercreateSubmodelElementListBuilder(String idShort) voiddefer()(package private) voidRegisters a sub-build as deferred.de.iip_ecosphere.platform.support.aas.Aas.AasBuilderprotected org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollectionReturns the BaSyx collection created by this instance.protected BaSyxSubmodelElementCollectionReturns the collection instance being created.protected StringReturns the underlying collection instance.de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilderbooleanhasElement(String idShort) booleanisNew()de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilderrbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth) de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilderrbac(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) protected BaSyxBlobRegisters a file data element.protected BaSyxEntityregister(BaSyxEntity entity) Registers a entity element.protected BaSyxFileRegisters a file data element.protected BaSyxMultiLanguagePropertyregister(BaSyxMultiLanguageProperty property) Registers a multi-language property.protected BaSyxOperationregister(BaSyxOperation operation) Registers an operation.protected BaSyxPropertyregister(BaSyxProperty property) Registers a property.protected BaSyxRangeregister(BaSyxRange range) Registers a range element.protected BaSyxReferenceElementregister(BaSyxReferenceElement reference) Registers a reference element.protected BaSyxRelationshipElementregister(BaSyxRelationshipElement relationship) Registers a relationship element.protected BaSyxSubmodelElementCollectionregister(BaSyxSubmodelElementCollection collection, boolean propagate) Registers a sub-model element collection.protected BaSyxSubmodelElementListregister(BaSyxSubmodelElementList collection, boolean propagate) Registers a sub-model element list.de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuildersetDescription(de.iip_ecosphere.platform.support.aas.LangString... description) (package private) voidsetPropagation(boolean propagate) Enables or disables registration propagation into the interface instance.de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuildersetSemanticId(String refValue) Methods inherited from class de.iip_ecosphere.platform.support.aas.basyx2.BaSyxSubmodelElementContainerBuilder
composeRbacPath, createBlobDataElementBuilder, createEntityBuilder, createFileDataElementBuilder, createMultiLanguagePropertyBuilder, createRangeBuilder, createRelationshipElementBuilder, getInstance, parents, registerElementMethods 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.RbacReceiver
rbacAll, rbacAllAuthenticated, rbacDevice, rbacPlatformMethods inherited from interface de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder
build, justBuild, rbacMethods inherited from interface de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
createBlobDataElementBuilder, createEntityBuilder, createFileDataElementBuilder, createMultiLanguagePropertyBuilder, createRangeBuilder, createRelationshipElementBuilder
-
Field Details
-
parentBuilder
-
instance
-
collection
private org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection collection -
isNew
private boolean isNew -
propagate
private boolean propagate
-
-
Constructor Details
-
BaSyxSubmodelElementCollectionBuilder
protected BaSyxSubmodelElementCollectionBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort, boolean ordered, boolean allowDuplicates) Creates a sub-model element collection builder. The parent builder must be set by the calling constructor.- Parameters:
parentBuilder- the parent builderidShort- the short name of the sub-model elementordered- whether the collection is orderedallowDuplicates- whether the collection allows duplicates- Throws:
IllegalArgumentException- may be thrown ifidShortis not given
-
BaSyxSubmodelElementCollectionBuilder
protected BaSyxSubmodelElementCollectionBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort, Supplier<BaSyxSubmodelElementCollection> wCreator, Supplier<org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection> bCreator) Creates a sub-model element collection builder. The parent builder must be set by the calling constructor.- Parameters:
parentBuilder- the parent builderidShort- the short name of the sub-model elementwCreator- creates a wrapper instance, subclass of the containing classbCreator- creates a BaSyx instance- Throws:
IllegalArgumentException- may be thrown ifidShortis not given
-
BaSyxSubmodelElementCollectionBuilder
protected BaSyxSubmodelElementCollectionBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, BaSyxSubmodelElementCollection instance) Creates an instance from an existing BaSyx instance.- Parameters:
parentBuilder- the parent builderinstance- the BaSyx instance
-
-
Method Details
-
getCollection
protected org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection getCollection()Returns the BaSyx collection created by this instance.- Returns:
- the collection
-
getCollectionInstance
Returns the collection instance being created.- Returns:
- the collection instance
-
getIdShort
Description copied from class:BaSyxSubmodelElementContainerBuilderReturns the underlying collection instance.- Specified by:
getIdShortin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Returns:
- the instance
-
setSemanticId
public de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder setSemanticId(String refValue) - Specified by:
setSemanticIdin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder- Specified by:
setSemanticIdin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-
createPropertyBuilder
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder createPropertyBuilder(String idShort) - Specified by:
createPropertyBuilderin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder- Overrides:
createPropertyBuilderin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>
-
createReferenceElementBuilder
public de.iip_ecosphere.platform.support.aas.ReferenceElement.ReferenceElementBuilder createReferenceElementBuilder(String idShort) - Specified by:
createReferenceElementBuilderin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder- Overrides:
createReferenceElementBuilderin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>
-
createOperationBuilder
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder createOperationBuilder(String idShort) - Specified by:
createOperationBuilderin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder- Overrides:
createOperationBuilderin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>
-
createSubmodelElementCollectionBuilder
public de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder createSubmodelElementCollectionBuilder(String idShort) - Specified by:
createSubmodelElementCollectionBuilderin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-
createSubmodelElementListBuilder
public de.iip_ecosphere.platform.support.aas.SubmodelElementList.SubmodelElementListBuilder createSubmodelElementListBuilder(String idShort) - Specified by:
createSubmodelElementListBuilderin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-
createSubmodelElementContainerBuilder
public de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder createSubmodelElementContainerBuilder(String idShort) - Specified by:
createSubmodelElementContainerBuilderin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-
createReference
public de.iip_ecosphere.platform.support.aas.Reference createReference()Description copied from class:BaSyxSubmodelElementContainerBuilderCreates a reference to the sub-model under creation.- Specified by:
createReferencein interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder- Overrides:
createReferencein classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Returns:
- the reference
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a file data element.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
file- the file data element- Returns:
file
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a range element.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
range- the range element- Returns:
range
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a file data element.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
blob- the BLOB data element- Returns:
blob
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters an operation.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
operation- the operation- Returns:
operation
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a property.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
property- the property- Returns:
property
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a multi-language property.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
property- the property- Returns:
property
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a relationship element.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
relationship- the relationship element- Returns:
relationship
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a entity element.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
entity- the entity- Returns:
reference
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a reference element.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
reference- the reference- Returns:
reference
-
register
protected BaSyxSubmodelElementCollection register(BaSyxSubmodelElementCollection collection, boolean propagate) Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a sub-model element collection.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
collection- the collectionpropagate- enable propagation into the interface instance (usuallytrue) or take a (performance) shortcut and only update the BaSyx submodel (false)- Returns:
collection
-
register
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a sub-model element list.- Overrides:
registerin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
collection- the listpropagate- enable propagation into the interface instance (usuallytrue) or take a (performance) shortcut and only update the BaSyx submodel (false)- Returns:
list
-
defer
public void defer()- Specified by:
deferin interfacede.iip_ecosphere.platform.support.aas.DeferredBuilder<de.iip_ecosphere.platform.support.aas.SubmodelElementCollection>
-
defer
Description copied from class:BaSyxSubmodelElementContainerBuilderRegisters a sub-build as deferred.- Overrides:
deferin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- Parameters:
shortId- the shortId of the elementbuilder- the sub-builder to be registered- See Also:
-
buildMyDeferred
void buildMyDeferred()Description copied from class:BaSyxSubmodelElementContainerBuilderCallsBuilder.build()on all deferred builders.- Overrides:
buildMyDeferredin classBaSyxSubmodelElementContainerBuilder<org.eclipse.digitaltwin.aas4j.v3.model.Submodel>- See Also:
-
buildDeferred
public void buildDeferred()- Specified by:
buildDeferredin interfacede.iip_ecosphere.platform.support.aas.DeferredBuilder<de.iip_ecosphere.platform.support.aas.SubmodelElementCollection>
-
build
- Specified by:
buildin interfacede.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.SubmodelElementCollection>
-
getAasBuilder
public de.iip_ecosphere.platform.support.aas.Aas.AasBuilder getAasBuilder()- Specified by:
getAasBuilderin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-
getParentBuilder
public de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder getParentBuilder()- Specified by:
getParentBuilderin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-
isNew
public boolean isNew()- Specified by:
isNewin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-
hasElement
- Specified by:
hasElementin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-
rbac
public de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder 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.SubmodelElementCollection.SubmodelElementCollectionBuilder>
-
rbac
public de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder 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.SubmodelElementCollection.SubmodelElementCollectionBuilder>
-
setPropagation
void setPropagation(boolean propagate) Enables or disables registration propagation into the interface instance.- Parameters:
propagate- enable or disable propagation
-
setDescription
public de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder setDescription(de.iip_ecosphere.platform.support.aas.LangString... description) - Specified by:
setDescriptionin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder- Specified by:
setDescriptionin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
-