org.xwiki.rendering.transformation
Class AbstractTransformation
java.lang.Object
org.xwiki.rendering.transformation.AbstractTransformation
- All Implemented Interfaces:
- Comparable<Transformation>, Transformation
public abstract class AbstractTransformation
- extends Object
- implements Transformation
Code common to all Transformation and base implementation of priorities (see Transformation.getPriority()).
- Since:
- 1.5M2
- Version:
- $Id: 9fcf1b9a1862b9ad2587ffbb592aed4d3fd9e345 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTransformation
public AbstractTransformation()
getPriority
public int getPriority()
- The priority of execution relative to the other transformations. The lowest values have the highest priorities
and execute first. For example a Transformation with a priority of 100 will execute before one with a priority of
500.
- Specified by:
getPriority in interface Transformation
- Returns:
- the execution priority
- See Also:
Transformation.getPriority()
compareTo
public int compareTo(Transformation transformation)
-
- Specified by:
compareTo in interface Comparable<Transformation>
- See Also:
Comparable.compareTo(Object)
transform
public void transform(XDOM dom,
Syntax syntax)
throws TransformationException
- Transform the passed XDOM and modifies it.
- Specified by:
transform in interface Transformation
- Parameters:
dom - the AST representing the content in Blockssyntax - the Syntax of the content
- Throws:
TransformationException - if the transformation fails for any reason- See Also:
Transformation.transform(org.xwiki.rendering.block.XDOM ,
org.xwiki.rendering.syntax.Syntax)
Copyright © 2004-2012 XWiki. All Rights Reserved.