@Immutable public final class SVRLWriter extends Object
SchematronOutputType
elements and converts them to W3C nodes. The
writing itself is done with JAXB.Modifier and Type | Method and Description |
---|---|
static Document |
createXML(SchematronOutputType aSchematronOutput)
Convert the passed schematron output element into an W3C Document node.
|
static String |
createXMLString(SchematronOutputType aSchematronOutput)
Utility method to directly convert the passed SVRL domain object to an XML
string.
|
static com.helger.commons.state.ESuccess |
writeSVRL(SchematronOutputType aSchematronOutput,
Result aResult)
Convert the passed schematron output element into an W3C Document node.
|
@Nonnull public static com.helger.commons.state.ESuccess writeSVRL(@Nonnull SchematronOutputType aSchematronOutput, @Nonnull Result aResult)
aSchematronOutput
- The schematron output to be converted. May not be null
.aResult
- The result object to write to.ESuccess
@Nullable public static Document createXML(@Nonnull SchematronOutputType aSchematronOutput)
aSchematronOutput
- The schematron output to be converted. May not be null
.null
if conversion failed.@Nullable public static String createXMLString(@Nonnull SchematronOutputType aSchematronOutput)
aSchematronOutput
- The SVRL domain object to be converted. May not be null.null
if the passed domain object could not be
converted because of validation errors.Copyright © 2014–2015 Philip Helger. All rights reserved.