java.lang.Object
de.iip_ecosphere.platform.configuration.aas.AasImports

public class AasImports extends Object
Defines known types to be considered as imports.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • AasImports

      public AasImports()
  • Method Details

    • addImport

      private static void addImport(String semanticId, String specificType, AasImports.Import imp)
      Adds an import.
      Parameters:
      semanticId - the semantic id
      specificType - the represented specific type
      imp - the underlying import
    • getImport

      static AasImports.Import getImport(String semanticId)
      Returns the import representing semanticId.
      Parameters:
      semanticId - the semantic id in the notation of the AAS abstraction of the platform
      Returns:
      the import, null for none
    • getSpecificType

      static String getSpecificType(String semanticId)
      Returns the specific type represented by semanticId.
      Parameters:
      semanticId - the semantic id in the notation of the AAS abstraction of the platform
      Returns:
      the type, null for none
    • isKnownType

      static boolean isKnownType(String type, Set<AasImports.Import> excludes)
      Returns whether type shall be known through this import.
      Parameters:
      type - the type (may be null)
      excludes - imports to be excluded
      Returns:
      true for known, false else
    • sort

      public static List<AasImports.Import> sort(List<AasImports.Import> imports)
      Sorts imports according to AasImports.Import.getProjectName().
      Parameters:
      imports - the imports
      Returns:
      imports
    • imports

      public static Iterable<AasImports.Import> imports()
      Returns the available imports (sorted).
      Returns:
      the available imports
    • importsStream

      public static Stream<AasImports.Import> importsStream()
      Returns the available imports (sorted).
      Returns:
      the available imports