Class FakeSubmodelElementCollection
- java.lang.Object
-
- test.de.iip_ecosphere.platform.support.fakeAas.FakeElement
-
- test.de.iip_ecosphere.platform.support.fakeAas.FakeSubmodelElementCollection
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.Element,de.iip_ecosphere.platform.support.aas.ElementsAccess,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 FakeSubmodelElementCollection extends FakeElement implements de.iip_ecosphere.platform.support.aas.SubmodelElementCollection
Implements a fake sub-model element collection.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classFakeSubmodelElementCollection.FakeSubmodelElementCollectionBuilderThe builder.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFakeSubmodelElementCollection(java.lang.String idShort)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)de.iip_ecosphere.platform.support.aas.ReferencecreateReference()voiddeleteElement(java.lang.String idShort)java.lang.Iterable<de.iip_ecosphere.platform.support.aas.SubmodelElement>elements()protected java.util.Map<java.lang.String,de.iip_ecosphere.platform.support.aas.SubmodelElement>elts()Returns the elements.private <T extends de.iip_ecosphere.platform.support.aas.SubmodelElement>
Tfilter(java.lang.String idShort, java.lang.Class<T> type)Filters#elements()for the given short id and type.de.iip_ecosphere.platform.support.aas.DataElementgetDataElement(java.lang.String idShort)de.iip_ecosphere.platform.support.aas.SubmodelElementgetElement(java.lang.String idShort)intgetElementsCount()de.iip_ecosphere.platform.support.aas.OperationgetOperation(java.lang.String idShort)de.iip_ecosphere.platform.support.aas.PropertygetProperty(java.lang.String idShort)de.iip_ecosphere.platform.support.aas.ReferenceElementgetReferenceElement(java.lang.String idShort)de.iip_ecosphere.platform.support.aas.SubmodelElementCollectiongetSubmodelElementCollection(java.lang.String idShort)-
Methods inherited from class test.de.iip_ecosphere.platform.support.fakeAas.FakeElement
getIdShort, update
-
-
-
-
Method Detail
-
accept
public void accept(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)
- Specified by:
acceptin interfacede.iip_ecosphere.platform.support.aas.Element
-
elts
protected java.util.Map<java.lang.String,de.iip_ecosphere.platform.support.aas.SubmodelElement> elts()
Returns the elements.- Returns:
- the elements
-
elements
public java.lang.Iterable<de.iip_ecosphere.platform.support.aas.SubmodelElement> elements()
- Specified by:
elementsin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
filter
private <T extends de.iip_ecosphere.platform.support.aas.SubmodelElement> T filter(java.lang.String idShort, java.lang.Class<T> type)Filters#elements()for the given short id and type.- Type Parameters:
T- the element type to return- Parameters:
idShort- the short idtype- the element type- Returns:
- the found element or null
-
getDataElement
public de.iip_ecosphere.platform.support.aas.DataElement getDataElement(java.lang.String idShort)
- Specified by:
getDataElementin interfacede.iip_ecosphere.platform.support.aas.ElementsAccess
-
getProperty
public de.iip_ecosphere.platform.support.aas.Property getProperty(java.lang.String idShort)
- Specified by:
getPropertyin interfacede.iip_ecosphere.platform.support.aas.ElementsAccess
-
getReferenceElement
public de.iip_ecosphere.platform.support.aas.ReferenceElement getReferenceElement(java.lang.String idShort)
- Specified by:
getReferenceElementin interfacede.iip_ecosphere.platform.support.aas.ElementsAccess
-
getElement
public de.iip_ecosphere.platform.support.aas.SubmodelElement getElement(java.lang.String idShort)
- Specified by:
getElementin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
getSubmodelElementCollection
public de.iip_ecosphere.platform.support.aas.SubmodelElementCollection getSubmodelElementCollection(java.lang.String idShort)
- Specified by:
getSubmodelElementCollectionin interfacede.iip_ecosphere.platform.support.aas.ElementsAccess
-
getElementsCount
public int getElementsCount()
- Specified by:
getElementsCountin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
createReference
public de.iip_ecosphere.platform.support.aas.Reference createReference()
- Specified by:
createReferencein interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
deleteElement
public void deleteElement(java.lang.String idShort)
- Specified by:
deleteElementin interfacede.iip_ecosphere.platform.support.aas.SubmodelElementCollection
-
getOperation
public de.iip_ecosphere.platform.support.aas.Operation getOperation(java.lang.String idShort)
- Specified by:
getOperationin interfacede.iip_ecosphere.platform.support.aas.ElementsAccess
-
-