Package org.jboss.windup.config.metadata
Class TechnologyReferenceAliasTranslator
- java.lang.Object
-
- org.jboss.windup.config.metadata.TechnologyReferenceAliasTranslator
-
public class TechnologyReferenceAliasTranslator extends Object
Translates from oneTechnologyReferenceto another, ie. from "eap7" to "eap:7".- Author:
- Jesse Sightler
-
-
Constructor Summary
Constructors Constructor Description TechnologyReferenceAliasTranslator(TechnologyReference original, TechnologyReference target)Creates a translator that converts references matching the name, to one matching the given target.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<TechnologyReferenceAliasTranslator>getAliasTranslators(RuleLoaderContext ruleLoaderContext)Gets the translators for the given graph context, or loads them if necessary.TechnologyReferencegetOriginalTechnology()Gets the type to translate from.TechnologyReferencegetTargetTechnology()Gets the type to translate to.TechnologyReferencetranslate(String technologyIdAndVersion)If the given reference matches the source technology, then this will return the target technologyTechnologyReference.TechnologyReferencetranslate(TechnologyReference technology)If the given reference matches the source technology, then this will return the target technologyTechnologyReference.
-
-
-
Constructor Detail
-
TechnologyReferenceAliasTranslator
public TechnologyReferenceAliasTranslator(TechnologyReference original, TechnologyReference target)
Creates a translator that converts references matching the name, to one matching the given target.
-
-
Method Detail
-
getAliasTranslators
public static List<TechnologyReferenceAliasTranslator> getAliasTranslators(RuleLoaderContext ruleLoaderContext)
Gets the translators for the given graph context, or loads them if necessary.
-
getOriginalTechnology
public TechnologyReference getOriginalTechnology()
Gets the type to translate from.
-
getTargetTechnology
public TechnologyReference getTargetTechnology()
Gets the type to translate to.
-
translate
public TechnologyReference translate(TechnologyReference technology)
If the given reference matches the source technology, then this will return the target technologyTechnologyReference.
-
translate
public TechnologyReference translate(String technologyIdAndVersion)
If the given reference matches the source technology, then this will return the target technologyTechnologyReference.
-
-