|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ComponentRole public interface Transformation
Performs a transformation on a XDOM (i.e. a tree of Block. This used for example
for transforming Macro Blocks into other Blocks corresponding to the execution of the Macros. Another example of
transformation would be looking for all words that have an entry on Wikipedia and adding links to them.
| Method Summary | |
|---|---|
int |
getPriority()
The priority of execution relative to the other transformations. |
void |
transform(Block block,
TransformationContext context)
Transform the passed XDOM and modifies it. |
void |
transform(XDOM dom,
Syntax syntax)
Deprecated. since 2.4M1 use transform(Block, TransformationContext) instead |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
int getPriority()
@Deprecated
void transform(XDOM dom,
Syntax syntax)
throws TransformationException
transform(Block, TransformationContext) instead
dom - the AST representing the content in Blockssyntax - the Syntax of the content
TransformationException - if the transformation fails for any reason
void transform(Block block,
TransformationContext context)
throws TransformationException
block - the block to transform (can be an XDOM)context - the context of the transformation process (syntax, transformation id, etc)
TransformationException - if the transformation fails for any reason
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||