fedora.server.validation
Class DOValidatorSchematronResult

java.lang.Object
  extended by fedora.server.validation.DOValidatorSchematronResult

public class DOValidatorSchematronResult
extends java.lang.Object

Schematron validation with FedoraRules schema as default.

Version:
$Id: DOValidatorSchematronResult.java 5218 2006-11-20 05:10:11Z cwilper $
Author:
payette@cs.cornell.edu

Constructor Summary
DOValidatorSchematronResult(javax.xml.transform.dom.DOMResult result)
           
 
Method Summary
 java.lang.String getXMLResult()
           
 boolean isValid()
          Check if the object passes Schematron validation
 java.lang.String serializeResult(java.io.Writer out)
          Serializes the specified node, recursively, to a Writer and returns it as a String too.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOValidatorSchematronResult

public DOValidatorSchematronResult(javax.xml.transform.dom.DOMResult result)
Method Detail

getXMLResult

public java.lang.String getXMLResult()
                              throws javax.xml.transform.TransformerException,
                                     javax.xml.transform.TransformerConfigurationException,
                                     javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.transform.TransformerException
javax.xml.transform.TransformerConfigurationException
javax.xml.parsers.ParserConfigurationException

isValid

public boolean isValid()
Check if the object passes Schematron validation

Returns:
true, object is valid, false object had errors.

serializeResult

public java.lang.String serializeResult(java.io.Writer out)
Serializes the specified node, recursively, to a Writer and returns it as a String too.