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 java.lang.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 Modifier and Type Field Description private Transformation
helper
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTransformationBuilder(javax.xml.transform.Source s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private B
asB()
protected Transformation
getHelper()
Provides access to a cachedTransformation
instance.B
usingFactory(javax.xml.transform.TransformerFactory f)
sets the TraX factory to use.B
withOutputProperty(java.lang.String name, java.lang.String value)
Adds an output property.B
withParameter(java.lang.String name, java.lang.Object value)
Adds a parameter.B
withStylesheet(javax.xml.transform.Source s)
Sets the stylesheet to use.B
withURIResolver(javax.xml.transform.URIResolver r)
Sets the resolver to use for the document() function and xsi:import/include.
-
-
-
Field Detail
-
helper
private final Transformation helper
-
-
Method Detail
-
withStylesheet
public B withStylesheet(javax.xml.transform.Source s)
Description copied from interface:TransformationBuilderBase
Sets the stylesheet to use.- Specified by:
withStylesheet
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
withOutputProperty
public B withOutputProperty(java.lang.String name, java.lang.String value)
Description copied from interface:TransformationBuilderBase
Adds an output property.- Specified by:
withOutputProperty
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
withParameter
public B withParameter(java.lang.String name, java.lang.Object value)
Description copied from interface:TransformationBuilderBase
Adds a parameter.- Specified by:
withParameter
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
usingFactory
public B usingFactory(javax.xml.transform.TransformerFactory f)
Description copied from interface:TransformationBuilderBase
sets the TraX factory to use.- Specified by:
usingFactory
in interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
withURIResolver
public B withURIResolver(javax.xml.transform.URIResolver r)
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>>
-
getHelper
protected Transformation getHelper()
Provides access to a cachedTransformation
instance.
-
asB
private B asB()
-
-