Interface BaSyxSubmodelElementParent
- All Known Implementing Classes:
AbstractSubmodel,BaSyxSubmodel,BaSyxSubmodelElementCollection,BaSyxSubmodelElementList
public interface BaSyxSubmodelElementParent
Represents the parent element of a submodel element.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionReturns the short id of the element.Returns the parent element.org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementReturns the path element to be used inprocessOnPath(List, boolean, PathFunction).default org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementprocessOnPath(List<org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement> path, boolean skipIfNoRepo, BaSyxSubmodelElement.PathFunction function) Iterates up the path up to the submodel and callsfunctionon the aggregated path.
-
Method Details
-
getIdShort
String getIdShort()Returns the short id of the element.- Returns:
- the short id
-
getParent
BaSyxSubmodelElementParent getParent()Returns the parent element.- Returns:
- the parent element
-
getPathElement
org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement getPathElement()Returns the path element to be used inprocessOnPath(List, boolean, PathFunction).- Returns:
- the path element
-
processOnPath
default org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement processOnPath(List<org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement> path, boolean skipIfNoRepo, BaSyxSubmodelElement.PathFunction function) Iterates up the path up to the submodel and callsfunctionon the aggregated path.- Parameters:
path- the path accumulated so farskipIfNoRepo- skip executing function if there is no repository to pass intofunction- the function to call at the end of the path- See Also:
-