public class ChainedTransformationTools extends Object
ResourceTransformationContext
implementation classes.
Used for chained transformersConstructor and Description |
---|
ChainedTransformationTools() |
Modifier and Type | Method and Description |
---|---|
static ResourceTransformationContext |
initialiseChain(ResourceTransformationContext context,
OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
Call when starting a new chain of model versions.
|
static ResourceTransformationContext |
nextInChainOperation(ResourceTransformationContext context,
OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
Call when transforming a new model version delta for an operation.
|
static ResourceTransformationContext |
nextInChainResource(ResourceTransformationContext context,
OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
Call when transforming a new model version delta for a resource.
|
static PathAddress |
transformAddress(PathAddress original,
TransformationTarget target)
Transform a path address.
|
public static ResourceTransformationContext initialiseChain(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
ResourceTransformationContext
instance, using the extra resolver
to resolve the children of the placeholder resource.context
- the context to copy. It should be at a chained placeholderplaceholderResolver
- the extra resolver to use to resolve the placeholder's children for the first model version delta in the chainResourceTransformationContext
instance using the extra resolverpublic static ResourceTransformationContext nextInChainResource(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
ResourceTransformationContext
instance, using the extra resolver
to resolve the children of the placeholder resource.context
- the context to copy. It should be at a chained placeholderplaceholderResolver
- the extra resolver to use to resolve the placeholder's children for the model version delta we are transformingResourceTransformationContext
instance using the extra resolverpublic static ResourceTransformationContext nextInChainOperation(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
ResourceTransformationContext
instance, using the extra resolver
to resolve the children of the placeholder resource.context
- the context to copy. It should be at a chained placeholderplaceholderResolver
- the extra resolver to use to resolve the placeholder's children for the model version delta we are transformingResourceTransformationContext
instance using the extra resolverpublic static PathAddress transformAddress(PathAddress original, TransformationTarget target)
original
- the path address to be transformedtarget
- the transformation targetCopyright © 2023 JBoss by Red Hat. All rights reserved.