| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package org.xwiki.rendering.transformation; |
| 21 |
|
|
| 22 |
|
import org.xwiki.rendering.block.XDOM; |
| 23 |
|
import org.xwiki.rendering.syntax.Syntax; |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
@link |
| 27 |
|
|
| 28 |
|
@version |
| 29 |
|
@since |
| 30 |
|
|
| |
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 3 |
Complexity Density: 1 |
|
| 31 |
|
public abstract class AbstractTransformation implements Transformation |
| 32 |
|
{ |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
private int priority = 1000; |
| 38 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 39 |
7180 |
@Override... |
| 40 |
|
public int getPriority() |
| 41 |
|
{ |
| 42 |
7180 |
return this.priority; |
| 43 |
|
} |
| 44 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 45 |
7174 |
@Override... |
| 46 |
|
public int compareTo(Transformation transformation) |
| 47 |
|
{ |
| 48 |
7175 |
return getPriority() - transformation.getPriority(); |
| 49 |
|
} |
| 50 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 51 |
0 |
@Override... |
| 52 |
|
@Deprecated |
| 53 |
|
public void transform(XDOM dom, Syntax syntax) throws TransformationException |
| 54 |
|
{ |
| 55 |
0 |
transform(dom, new TransformationContext(dom, syntax)); |
| 56 |
|
} |
| 57 |
|
} |