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 Transformationhelper
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTransformationBuilder(javax.xml.transform.Source s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private BasB()protected TransformationgetHelper()Provides access to a cachedTransformationinstance.BusingFactory(javax.xml.transform.TransformerFactory f)sets the TraX factory to use.BwithOutputProperty(java.lang.String name, java.lang.String value)Adds an output property.BwithParameter(java.lang.String name, java.lang.Object value)Adds a parameter.BwithStylesheet(javax.xml.transform.Source s)Sets the stylesheet to use.BwithURIResolver(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:TransformationBuilderBaseSets the stylesheet to use.- Specified by:
withStylesheetin interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
withOutputProperty
public B withOutputProperty(java.lang.String name, java.lang.String value)
Description copied from interface:TransformationBuilderBaseAdds an output property.- Specified by:
withOutputPropertyin interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
withParameter
public B withParameter(java.lang.String name, java.lang.Object value)
Description copied from interface:TransformationBuilderBaseAdds a parameter.- Specified by:
withParameterin interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
usingFactory
public B usingFactory(javax.xml.transform.TransformerFactory f)
Description copied from interface:TransformationBuilderBasesets the TraX factory to use.- Specified by:
usingFactoryin interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
withURIResolver
public B withURIResolver(javax.xml.transform.URIResolver r)
Description copied from interface:TransformationBuilderBaseSets the resolver to use for the document() function and xsi:import/include.- Specified by:
withURIResolverin interfaceTransformationBuilderBase<B extends TransformationBuilderBase<B>>
-
getHelper
protected Transformation getHelper()
Provides access to a cachedTransformationinstance.
-
asB
private B asB()
-
-