Class EclassSemanticIdResolver

java.lang.Object
de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
de.iip_ecosphere.platform.support.semanticId.eclass.EclassSemanticIdResolver

public class EclassSemanticIdResolver extends de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
Initial caching semantic id resolver for Eclass Ids.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • EclassSemanticIdResolver

      public EclassSemanticIdResolver()
      Creates an instance.
  • Method Details

    • initialize

      private void initialize()
      Tries to initialize the API lazily.
    • createInstance

      public static de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult createInstance(String semanticId)
      Creates a result instance.
      Parameters:
      semanticId - the semantic id to create the result for
      Returns:
      the instance
    • createNaming

      public static Map<String,de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult.DefaultNaming> createNaming(TranslatableLabel preferredName, TranslatableLabel structuredName, TranslatableLabel description)
      Creates a naming structure based on two labels. [public for testing]
      Parameters:
      preferredName - the preferred name, may be null
      structuredName - the structured name, may be null
      description - the description, may be null
      Returns:
      the naming map
    • createNaming

      private static void createNaming(TranslatableLabel label, EclassSemanticIdResolver.Setter setter, Map<String,de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult.DefaultNaming> result)
      Takes over information from the label.
      Parameters:
      label - the label
      setter - the setter function
      result - the (modified) result set
    • resolveSemanticId

      public de.iip_ecosphere.platform.support.semanticId.SemanticIdResolutionResult resolveSemanticId(String semanticId)
      Specified by:
      resolveSemanticId in class de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
    • isResponsible

      public boolean isResponsible(String semanticId)
      Specified by:
      isResponsible in class de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver