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 (seeTransformation.getPriority()
).- Since:
- 1.5M2
- Version:
- $Id: d37129784993c0f7b3e23a2df56ffe921a8d9942 $
-
-
Constructor Summary
Constructors Constructor Description AbstractTransformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(Transformation transformation)
int
getPriority()
The priority of execution relative to the other transformations.void
transform(XDOM dom, Syntax syntax)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.xwiki.rendering.transformation.Transformation
transform
-
-
-
-
Method Detail
-
getPriority
public int getPriority()
Description copied from interface:Transformation
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 interfaceTransformation
- Returns:
- the execution priority
-
compareTo
public int compareTo(Transformation transformation)
- Specified by:
compareTo
in interfaceComparable<Transformation>
-
transform
@Deprecated public void transform(XDOM dom, Syntax syntax) throws TransformationException
Deprecated.Description copied from interface:Transformation
Transform the passed XDOM and modifies it.- Specified by:
transform
in interfaceTransformation
- Parameters:
dom
- the AST representing the content in Blockssyntax
- the Syntax of the content- Throws:
TransformationException
- if the transformation fails for any reason
-
-