Class BaSyxSubmodelElementCollection
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx.BaSyxSubmodelElement
de.iip_ecosphere.platform.support.aas.basyx.BaSyxSubmodelElementCollection
- All Implemented Interfaces:
BaSyxElementTranslator.DataElementsRegistrar,BaSyxElementTranslator.OperationsRegistrar,BaSyxElementTranslator.RemainingSubmodelElementsRegistrar,BaSyxElementTranslator.SubmodelElementsRegistrar,de.iip_ecosphere.platform.support.aas.Element,de.iip_ecosphere.platform.support.aas.HasDataSpecification,de.iip_ecosphere.platform.support.aas.HasKind,de.iip_ecosphere.platform.support.aas.HasSemantics,de.iip_ecosphere.platform.support.aas.Qualifiable,de.iip_ecosphere.platform.support.aas.Referable,de.iip_ecosphere.platform.support.aas.SubmodelElement,de.iip_ecosphere.platform.support.aas.SubmodelElementCollection
public class BaSyxSubmodelElementCollection extends BaSyxSubmodelElement implements de.iip_ecosphere.platform.support.aas.SubmodelElementCollection, BaSyxElementTranslator.SubmodelElementsRegistrar
Wrapper for the BaSyx sub-model element collection.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaSyxSubmodelElementCollection.BaSyxSubmodelElementCollectionBuilderThe sub-model element collection builder. -
Field Summary
Fields Modifier and Type Field Description private org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElementCollectioncollectionprivate List<de.iip_ecosphere.platform.support.aas.SubmodelElement>elements -
Constructor Summary
Constructors Modifier Constructor Description privateBaSyxSubmodelElementCollection()Creates an instance.(package private)BaSyxSubmodelElementCollection(org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElementCollection collection)Creates an instance and sets the BaSyx instance directly. -
Method Summary
Modifier and Type Method Description voidaccept(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)de.iip_ecosphere.platform.support.aas.ReferencecreateReference()Iterable<de.iip_ecosphere.platform.support.aas.SubmodelElement>elements()de.iip_ecosphere.platform.support.aas.DataElementgetDataElement(String idShort)de.iip_ecosphere.platform.support.aas.SubmodelElementgetElement(String idShort)private <T extends de.iip_ecosphere.platform.support.aas.SubmodelElement>
TgetElement(String idShort, Class<T> type)getElement(String)combined with a type filter.intgetElementsCount()StringgetIdShort()de.iip_ecosphere.platform.support.aas.PropertygetProperty(String idShort)de.iip_ecosphere.platform.support.aas.ReferenceElementgetReferenceElement(String idShort)(package private) org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElementCollectiongetSubmodelElement()Returns the implementing sub-model element.de.iip_ecosphere.platform.support.aas.SubmodelElementCollectiongetSubmodelElementCollection(String idShort)BaSyxOperationregister(BaSyxOperation operation)Registers an operation.BaSyxPropertyregister(BaSyxProperty property)Registers a property.BaSyxReferenceElementregister(BaSyxReferenceElement reference)Registers a reference element.BaSyxSubmodelElementCollectionregister(BaSyxSubmodelElementCollection collection)Registers a sub-model element collection.
-
Field Details
-
collection
private org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElementCollection collection -
elements
-
-
Constructor Details
-
BaSyxSubmodelElementCollection
private BaSyxSubmodelElementCollection()Creates an instance. Prevents external creation. -
BaSyxSubmodelElementCollection
BaSyxSubmodelElementCollection(org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElementCollection collection)Creates an instance and sets the BaSyx instance directly.- Parameters:
collection- the collection instance
-
-
Method Details
-
getElementsCount
public int getElementsCount()- Specified by:
getElementsCountin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
elements
- Specified by:
elementsin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
getIdShort
- Specified by:
getIdShortin interfacede.iip_ecosphere.platform.support.aas.Element
-
getSubmodelElement
org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElementCollection getSubmodelElement()Description copied from class:BaSyxSubmodelElementReturns the implementing sub-model element.- Specified by:
getSubmodelElementin classBaSyxSubmodelElement- Returns:
- the submodel element
-
getDataElement
- Specified by:
getDataElementin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
getProperty
- Specified by:
getPropertyin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
getReferenceElement
- Specified by:
getReferenceElementin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
getElement
- Specified by:
getElementin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
getElement
private <T extends de.iip_ecosphere.platform.support.aas.SubmodelElement> T getElement(String idShort, Class<T> type)getElement(String)combined with a type filter.- Type Parameters:
T- the type- Parameters:
idShort- the short id to search fortype- the class representing the type- Returns:
- the element with given type or null for none
-
getSubmodelElementCollection
public de.iip_ecosphere.platform.support.aas.SubmodelElementCollection getSubmodelElementCollection(String idShort)- Specified by:
getSubmodelElementCollectionin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
register
Description copied from interface:BaSyxElementTranslator.DataElementsRegistrarRegisters a property.- Specified by:
registerin interfaceBaSyxElementTranslator.DataElementsRegistrar- Parameters:
property- the property- Returns:
property
-
register
Description copied from interface:BaSyxElementTranslator.OperationsRegistrarRegisters an operation.- Specified by:
registerin interfaceBaSyxElementTranslator.OperationsRegistrar- Parameters:
operation- the operation- Returns:
operation
-
register
Description copied from interface:BaSyxElementTranslator.RemainingSubmodelElementsRegistrarRegisters a reference element.- Specified by:
registerin interfaceBaSyxElementTranslator.RemainingSubmodelElementsRegistrar- Parameters:
reference- the reference- Returns:
reference
-
register
Description copied from interface:BaSyxElementTranslator.RemainingSubmodelElementsRegistrarRegisters a sub-model element collection.- Specified by:
registerin interfaceBaSyxElementTranslator.RemainingSubmodelElementsRegistrar- Parameters:
collection- the collection- Returns:
collection
-
accept
public void accept(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)- Specified by:
acceptin interfacede.iip_ecosphere.platform.support.aas.Element
-
createReference
public de.iip_ecosphere.platform.support.aas.Reference createReference()- Specified by:
createReferencein interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-