| java.lang.Object biz.hammurapi.transformica.TransformSession
TransformSession | public class TransformSession (Code) | | author: Pavel Vlasov version: $Revision: 1.1 $ |
Method Summary | |
public void | debug(String msg) | public void | error(String msg) | public String | evaluate(Object element, String text) | public String | evaluate(Object element, String text, int indent) | public Object | getAttribute(String name) | public Visitable | getRoot() | public TransformTask | getTask() | public String | include(Object modelElement) | public String | include(Object modelElement, int indent) | public String | include(Object modelElement, String channelName) | public String | include(Object modelElement, String channelName, int indent) | public String | includeRecursive(Object root, String channelName) Navigates through model tree and collects output from a named
channel. | public String | includeRecursive(Object root, String channelName, int indent) Navigates through model tree and collects output from a named
channel. | public String | includeTemplate(Object element, String templateName) | public String | includeTemplate(Object element, String templateName, int indent) | public String | indent(String text, int indent) Breaks string into lines, indents every line
and concantenates them back. | public void | info(String msg) | public boolean | isMatched(Object element) | public void | log(String msg, int level) | public void | log(String msg) | public VelocityContext | newContext() Creates a new Velocity context. | public void | releaseContext(VelocityContext context) | public Object | removeAttribute(String name) | void | reset() | public Object | setAttribute(String name, Object value) | public void | setMatched(Object element) | void | setRoot(Visitable root) | public void | verbose(String msg) | public void | warn(String msg) |
getRoot | public Visitable getRoot()(Code) | | |
includeRecursive | public String includeRecursive(Object root, String channelName) throws TransformicaException(Code) | | Navigates through model tree and collects output from a named
channel. Use this method to generate one file from many elements,
for example, deployment descriptor.
Parameters: root - ModelElement to start traversing from. Parameters: channelName - Channel name |
includeRecursive | public String includeRecursive(Object root, String channelName, int indent) throws TransformicaException(Code) | | Navigates through model tree and collects output from a named
channel. Use this method to generate one file from many elements,
for example, deployment descriptor.
Parameters: root - ModelElement to start traversing from. Parameters: channelName - Channel name |
indent | public String indent(String text, int indent) throws TransformicaException(Code) | | Breaks string into lines, indents every line
and concantenates them back.
If indent is negative - removes first "indent"
characters from each line.
|
newContext | public VelocityContext newContext()(Code) | | Creates a new Velocity context. Chains it with current
thread context if any.
Velocity context for the thread |
releaseContext | public void releaseContext(VelocityContext context)(Code) | | Restores previous velocity context
Parameters: context - |
setRoot | void setRoot(Visitable root)(Code) | | |
|
|