Class AasImports
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.aas.AasImports
Defines known types to be considered as imports.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddImport(String semanticId, String specificType, AasImports.Import imp) Adds an import.(package private) static AasImports.ImportReturns the import representingsemanticId.(package private) static StringgetSpecificType(String semanticId) Returns the specific type represented bysemanticId.static Iterable<AasImports.Import> imports()Returns the available imports (sorted).static Stream<AasImports.Import> Returns the available imports (sorted).(package private) static booleanisKnownType(String type, Set<AasImports.Import> excludes) Returns whethertypeshall be known through this import.static List<AasImports.Import> sort(List<AasImports.Import> imports) Sortsimportsaccording toAasImports.Import.getProjectName().
-
Field Details
-
KNOWN_TYPES
-
imports
-
specificType
-
-
Constructor Details
-
AasImports
public AasImports()
-
-
Method Details
-
addImport
Adds an import.- Parameters:
semanticId- the semantic idspecificType- the represented specific typeimp- the underlying import
-
getImport
Returns the import representingsemanticId.- Parameters:
semanticId- the semantic id in the notation of the AAS abstraction of the platform- Returns:
- the import, null for none
-
getSpecificType
Returns the specific type represented bysemanticId.- Parameters:
semanticId- the semantic id in the notation of the AAS abstraction of the platform- Returns:
- the type, null for none
-
isKnownType
Returns whethertypeshall be known through this import.- Parameters:
type- the type (may be null)excludes- imports to be excluded- Returns:
truefor known,falseelse
-
sort
Sortsimportsaccording toAasImports.Import.getProjectName().- Parameters:
imports- the imports- Returns:
imports
-
imports
Returns the available imports (sorted).- Returns:
- the available imports
-
importsStream
Returns the available imports (sorted).- Returns:
- the available imports
-