public final class ChainedDependencyGraphTransformer extends Object implements DependencyGraphTransformer
Constructor and Description |
---|
ChainedDependencyGraphTransformer(DependencyGraphTransformer... transformers)
Creates a new transformer that chains the specified transformers.
|
Modifier and Type | Method and Description |
---|---|
static DependencyGraphTransformer |
newInstance(DependencyGraphTransformer transformer1,
DependencyGraphTransformer transformer2)
Creates a new transformer that chains the specified transformers or simply returns one of them if the other one
is
null . |
DependencyNode |
transformGraph(DependencyNode node,
DependencyGraphTransformationContext context)
Transforms the dependency graph denoted by the specified root node.
|
public ChainedDependencyGraphTransformer(DependencyGraphTransformer... transformers)
transformers
- The transformers to chain, may be null
or empty.public static DependencyGraphTransformer newInstance(DependencyGraphTransformer transformer1, DependencyGraphTransformer transformer2)
null
.transformer1
- The first transformer of the chain, may be null
.transformer2
- The second transformer of the chain, may be null
.null
if both input transformers are null
.public DependencyNode transformGraph(DependencyNode node, DependencyGraphTransformationContext context) throws RepositoryException
DependencyGraphTransformer
transformGraph
in interface DependencyGraphTransformer
node
- The root node of the (possibly cyclic!) graph to transform, must not be null
.context
- The graph transformation context, must not be null
.null
.RepositoryException
- If the transformation failed.Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.