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) |
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
transformGraph
in interface DependencyGraphTransformer
RepositoryException
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.