JET FAQ Why my custom container tag does not process its body content ?

From Eclipsepedia

Jump to: navigation, search

Question

I defined a custom Container tag for my Jet transformation, but I cannot launch any process on its body content.

Answer

There are two steps for defining a custom container tag with custom body process :

First, you need to override method setBodyContent() from superclass :

public void setBodyContent(JET2Writer bodyContent) {
  tagContent = bodyContent.toString();
}

Note : if you wish to keep on writing body content on your generated file, you will have to call super.setBodyContent(...)


You also have to specify in plugin definition that your containerTag has to use your own treatment on its body content :

1. Open plugin.xml, Extension Tab

2. Select the needed tag

3. Set the processContents element on the right on custom

See Also

Back to the M2T-JET-FAQ