Package org.xmlunit.builder
Class AbstractTransformationBuilder<B extends TransformationBuilderBase<B>>
java.lang.Object
org.xmlunit.builder.AbstractTransformationBuilder<B>
- All Implemented Interfaces:
TransformationBuilderBase<B>
- Direct Known Subclasses:
Input.Transformation
,Transform.TransformationBuilder
abstract class AbstractTransformationBuilder<B extends TransformationBuilderBase<B>>
extends Object
implements TransformationBuilderBase<B>
Base class providing the common logic of the XSLT related builders.
Not intended to be used outside of this package.
I wish there was a way to say implements B
.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate B
asB()
protected Transformation
Provides access to a cachedTransformation
instance.sets the TraX factory to use.withOutputProperty
(String name, String value) Adds an output property.withParameter
(String name, Object value) Adds a parameter.Sets the stylesheet to use.Sets the resolver to use for the document() function and xsi:import/include.
-
Field Details
-
helper
-
-
Constructor Details
-
AbstractTransformationBuilder
-
-
Method Details
-
withStylesheet
Description copied from interface:TransformationBuilderBase
Sets the stylesheet to use.- Specified by:
withStylesheet
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
- Parameters:
s
- styleSheet to use- Returns:
- this
-
withOutputProperty
Description copied from interface:TransformationBuilderBase
Adds an output property.- Specified by:
withOutputProperty
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
- Parameters:
name
- name of the propertyvalue
- value of the property- Returns:
- this
-
withParameter
Description copied from interface:TransformationBuilderBase
Adds a parameter.- Specified by:
withParameter
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
- Parameters:
name
- name of the parametervalue
- value of the parameter- Returns:
- this
-
usingFactory
Description copied from interface:TransformationBuilderBase
sets the TraX factory to use.- Specified by:
usingFactory
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
- Parameters:
f
- the factory to use- Returns:
- this
-
withURIResolver
Description copied from interface:TransformationBuilderBase
Sets the resolver to use for the document() function and xsi:import/include.- Specified by:
withURIResolver
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
- Parameters:
r
- the resolver to use- Returns:
- this
-
getHelper
Provides access to a cachedTransformation
instance. -
asB
-