Class BaSyxSubmodelElementCollection.BaSyxSubmodelElementCollectionBuilder

    • Constructor Detail

      • BaSyxSubmodelElementCollectionBuilder

        protected BaSyxSubmodelElementCollectionBuilder​(BaSyxSubmodelElementContainerBuilder<?> parentBuilder,
                                                        java.lang.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 builder
        idShort - the short name of the sub-model element
        ordered - whether the collection is ordered
        allowDuplicates - whether the collection allows duplicates
        Throws:
        java.lang.IllegalArgumentException - may be thrown if idShort is not given
      • BaSyxSubmodelElementCollectionBuilder

        protected BaSyxSubmodelElementCollectionBuilder​(BaSyxSubmodelElementContainerBuilder<?> parentBuilder,
                                                        java.lang.String idShort,
                                                        java.util.function.Supplier<BaSyxSubmodelElementCollection> wCreator,
                                                        java.util.function.Supplier<org.eclipse.basyx.submodel.metamodel.map.submodelelement.SubmodelElementCollection> bCreator)
        Creates a sub-model element collection builder. The parent builder must be set by the calling constructor.
        Parameters:
        parentBuilder - the parent builder
        idShort - the short name of the sub-model element
        wCreator - creates a wrapper instance, subclass of the containing class
        bCreator - creates a BaSyx instance
        Throws:
        java.lang.IllegalArgumentException - may be thrown if idShort is not given
    • Method Detail

      • getCollection

        protected org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElementCollection getCollection()
        Returns the BaSyx collection created by this instance.
        Returns:
        the collection
      • getCollectionInstance

        protected BaSyxSubmodelElementCollection getCollectionInstance()
        Returns the collection instance being created.
        Returns:
        the collection instance
      • createPropertyBuilder

        public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder createPropertyBuilder​(java.lang.String idShort)
        Specified by:
        createPropertyBuilder in interface de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
        Overrides:
        createPropertyBuilder in class BaSyxSubmodelElementContainerBuilder<org.eclipse.basyx.submodel.metamodel.api.ISubmodel>
      • createReferenceElementBuilder

        public de.iip_ecosphere.platform.support.aas.ReferenceElement.ReferenceElementBuilder createReferenceElementBuilder​(java.lang.String idShort)
        Specified by:
        createReferenceElementBuilder in interface de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
        Overrides:
        createReferenceElementBuilder in class BaSyxSubmodelElementContainerBuilder<org.eclipse.basyx.submodel.metamodel.api.ISubmodel>
      • createOperationBuilder

        public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder createOperationBuilder​(java.lang.String idShort)
        Specified by:
        createOperationBuilder in interface de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
        Overrides:
        createOperationBuilder in class BaSyxSubmodelElementContainerBuilder<org.eclipse.basyx.submodel.metamodel.api.ISubmodel>
      • createSubmodelElementCollectionBuilder

        public de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder createSubmodelElementCollectionBuilder​(java.lang.String idShort,
                                                                                                                                                       boolean ordered,
                                                                                                                                                       boolean allowDuplicates)
        Specified by:
        createSubmodelElementCollectionBuilder in interface de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
      • createReference

        public de.iip_ecosphere.platform.support.aas.Reference createReference()
        Description copied from class: BaSyxSubmodelElementContainerBuilder
        Creates a reference to the sub-model under creation.
        Specified by:
        createReference in interface de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder
        Overrides:
        createReference in class BaSyxSubmodelElementContainerBuilder<org.eclipse.basyx.submodel.metamodel.api.ISubmodel>
        Returns:
        the reference
      • defer

        public void defer()
        Specified by:
        defer in interface de.iip_ecosphere.platform.support.aas.DeferredBuilder<de.iip_ecosphere.platform.support.aas.SubmodelElementCollection>
      • buildDeferred

        public void buildDeferred()
        Specified by:
        buildDeferred in interface de.iip_ecosphere.platform.support.aas.DeferredBuilder<de.iip_ecosphere.platform.support.aas.SubmodelElementCollection>
      • build

        public BaSyxSubmodelElementCollection build()
        Specified by:
        build in interface de.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:
        getAasBuilder in interface de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
      • getParentBuilder

        public de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder getParentBuilder()
        Specified by:
        getParentBuilder in interface de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder
      • isNew

        public boolean isNew()
        Specified by:
        isNew in interface de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder