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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceSetter interface to generically setvalueonnaming. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate EclassJsonReadServicesApiprivate Stringprivate Patternprivate Localeprivate static final Stringstatic final StringFields inherited from class de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
ENGLISH, GERMAN, PLUGIN_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResultcreateInstance(String semanticId) Creates a result instance.private static voidcreateNaming(TranslatableLabel label, EclassSemanticIdResolver.Setter setter, Map<String, de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult.DefaultNaming> result) Takes over information from the label.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.private voidTries to initialize the API lazily.booleanisResponsible(String semanticId) de.iip_ecosphere.platform.support.semanticId.SemanticIdResolutionResultresolveSemanticId(String semanticId) Methods inherited from class de.iip_ecosphere.platform.support.semanticId.SemanticIdResolver
getName, hasResolver, resolve
-
Field Details
-
RELEASE_LATEST
- See Also:
-
REGEX
- See Also:
-
pattern
-
eclassApi
-
disabled
private boolean disabled -
cache
-
keystoreKey
-
preferredLanguage
-
-
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 nullstructuredName- the structured name, may be nulldescription- 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 labelsetter- the setter functionresult- the (modified) result set
-
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
-