-
public final class PactXmlBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private final Generatorsgeneratorsprivate final MatchingRuleCategorymatchingRulesprivate Documentdocprivate StringrootNameprivate StringrootNameSpaceprivate Map<String, String>namespacesprivate Stringversionprivate Stringcharsetprivate Booleanstandalone
-
Constructor Summary
Constructors Constructor Description PactXmlBuilder(String rootName, String rootNameSpace, Map<String, String> namespaces, String version, String charset, Boolean standalone)PactXmlBuilder(String rootName, String rootNameSpace, Map<String, String> namespaces, String version, String charset)PactXmlBuilder(String rootName, String rootNameSpace, Map<String, String> namespaces, String version)PactXmlBuilder(String rootName, String rootNameSpace, Map<String, String> namespaces)PactXmlBuilder(String rootName, String rootNameSpace)PactXmlBuilder(String rootName)
-
Method Summary
Modifier and Type Method Description final GeneratorsgetGenerators()final MatchingRuleCategorygetMatchingRules()final DocumentgetDoc()final UnitsetDoc(Document doc)final StringgetRootName()final UnitsetRootName(String rootName)final StringgetRootNameSpace()final UnitsetRootNameSpace(String rootNameSpace)final Map<String, String>getNamespaces()final UnitsetNamespaces(Map<String, String> namespaces)final StringgetVersion()final UnitsetVersion(String version)final StringgetCharset()final UnitsetCharset(String charset)final BooleangetStandalone()final UnitsetStandalone(Boolean standalone)final PactXmlBuilderbuild(Consumer<XmlNode> cl)final StringqualifiedName(String name)final ByteArrayasBytes(Charset charset)final ByteArrayasBytes()StringtoString()final PactXmlBuilderwithRootName(String name)Sets the name of the root name final PactXmlBuilderwithRootNameSpace(String nameSpace)Sets the namespace of the root node final PactXmlBuilderwithNamespaces(Map<String, String> namespaces)Namespaces to define on the root name final PactXmlBuilderwithVersion(String version)Sets the version on the XML descriptor. final PactXmlBuilderwithCharset(String charset)Sets the charset on the XML descriptor. final PactXmlBuilderwithStandalone(Boolean standalone)Sets the standalone flag on the XML descriptor. -
-
Constructor Detail
-
PactXmlBuilder
PactXmlBuilder(String rootName, String rootNameSpace, Map<String, String> namespaces, String version, String charset, Boolean standalone)
-
PactXmlBuilder
PactXmlBuilder(String rootName, String rootNameSpace, Map<String, String> namespaces, String version, String charset)
-
PactXmlBuilder
PactXmlBuilder(String rootName, String rootNameSpace, Map<String, String> namespaces, String version)
-
PactXmlBuilder
PactXmlBuilder(String rootName, String rootNameSpace, Map<String, String> namespaces)
-
PactXmlBuilder
PactXmlBuilder(String rootName)
-
-
Method Detail
-
getGenerators
final Generators getGenerators()
-
getMatchingRules
final MatchingRuleCategory getMatchingRules()
-
getRootName
final String getRootName()
-
setRootName
final Unit setRootName(String rootName)
-
getRootNameSpace
final String getRootNameSpace()
-
setRootNameSpace
final Unit setRootNameSpace(String rootNameSpace)
-
getNamespaces
final Map<String, String> getNamespaces()
-
setNamespaces
final Unit setNamespaces(Map<String, String> namespaces)
-
getVersion
final String getVersion()
-
setVersion
final Unit setVersion(String version)
-
getCharset
final String getCharset()
-
setCharset
final Unit setCharset(String charset)
-
getStandalone
final Boolean getStandalone()
-
setStandalone
final Unit setStandalone(Boolean standalone)
-
build
final PactXmlBuilder build(Consumer<XmlNode> cl)
-
qualifiedName
final String qualifiedName(String name)
-
asBytes
@JvmOverloads() final ByteArray asBytes(Charset charset)
-
asBytes
@JvmOverloads() final ByteArray asBytes()
-
withRootName
final PactXmlBuilder withRootName(String name)
Sets the name of the root name
-
withRootNameSpace
final PactXmlBuilder withRootNameSpace(String nameSpace)
Sets the namespace of the root node
-
withNamespaces
final PactXmlBuilder withNamespaces(Map<String, String> namespaces)
Namespaces to define on the root name
-
withVersion
final PactXmlBuilder withVersion(String version)
Sets the version on the XML descriptor. Defaults to '1.0'.
-
withCharset
final PactXmlBuilder withCharset(String charset)
Sets the charset on the XML descriptor. Defaults to 'UTF-8'
-
withStandalone
final PactXmlBuilder withStandalone(Boolean standalone)
Sets the standalone flag on the XML descriptor. Default is set ('yes')
-
-
-
-