Class YamlSemanticCatalog.YamlBasedResolver
java.lang.Object
de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
de.iip_ecosphere.platform.support.iip_aas.YamlSemanticCatalog.YamlBasedResolver
- Enclosing class:
YamlSemanticCatalog
public static class YamlSemanticCatalog.YamlBasedResolver
extends de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
A default Yaml-based resolver.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsFields inherited from class de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
ENGLISH, GERMAN, PLUGIN_ID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionYamlBasedResolver(String name, YamlSemanticCatalog catalog, Predicate<String> responsible, Function<de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult, de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult> adjuster) Creates an instance.YamlBasedResolver(String name, String resource, Predicate<String> responsible, Function<de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult, de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult> adjuster) Creates an instance based on a resource nameResourceLoader. -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanisResponsible(String semanticId) de.iip_ecosphere.platform.support.semanticId.SemanticIdResolutionResultresolveSemanticId(String semanticId) Methods inherited from class de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
hasResolver, resolve
-
Field Details
-
name
-
catalog
-
responsible
-
-
Constructor Details
-
YamlBasedResolver
public YamlBasedResolver(String name, String resource, Predicate<String> responsible, Function<de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult, de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult> adjuster) Creates an instance based on a resource nameResourceLoader.- Parameters:
name- the print name of the resolverresource- the resource containing the catalogresponsible- a predicate indicating responsibilityadjuster- optional function to set, e.g., default values for a catalog (may be null)
-
YamlBasedResolver
public YamlBasedResolver(String name, YamlSemanticCatalog catalog, Predicate<String> responsible, Function<de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult, de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult> adjuster) Creates an instance.- Parameters:
name- the print name of the resolvercatalog- the catalog to useresponsible- a predicate indicating responsibilityadjuster- optional function to set, e.g., default values for a catalog (may be null)
-
-
Method Details
-
getName
- Overrides:
getNamein classde.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
-
resolveSemanticId
public de.iip_ecosphere.platform.support.semanticId.SemanticIdResolutionResult resolveSemanticId(String semanticId) - Specified by:
resolveSemanticIdin classde.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
-
isResponsible
- Specified by:
isResponsiblein classde.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
-