Class SVGUseTranslator
- java.lang.Object
-
- org.kie.workbench.common.stunner.svg.gen.translator.impl.SVGUseTranslator
-
- All Implemented Interfaces:
SVGElementTranslator<Element,ViewRefDefinition>,Translator<Element>
public class SVGUseTranslator extends Object implements SVGElementTranslator<Element,ViewRefDefinition>
-
-
Constructor Summary
Constructors Constructor Description SVGUseTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Element>getInputType()StringgetTagName()The name for the tag that this translator is able to process.ViewRefDefinitiontranslate(Element element, SVGTranslatorContext context)Process the given input and generates the SVG view definition instance for it.
-
-
-
Field Detail
-
HREF
public static final String HREF
- See Also:
- Constant Field Values
-
TAG_NAME
public static final String TAG_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTagName
public String getTagName()
Description copied from interface:SVGElementTranslatorThe name for the tag that this translator is able to process.- Specified by:
getTagNamein interfaceSVGElementTranslator<Element,ViewRefDefinition>
-
translate
public ViewRefDefinition translate(Element element, SVGTranslatorContext context) throws TranslatorException
Description copied from interface:SVGElementTranslatorProcess the given input and generates the SVG view definition instance for it.- Specified by:
translatein interfaceSVGElementTranslator<Element,ViewRefDefinition>- Parameters:
element- The source element.context- The translator context.- Throws:
TranslatorException
-
getInputType
public Class<Element> getInputType()
- Specified by:
getInputTypein interfaceTranslator<Element>
-
-