org.fcrepo.server.validation
Class DOValidatorSchematronResult

java.lang.Object
  extended by org.fcrepo.server.validation.DOValidatorSchematronResult

public class DOValidatorSchematronResult
extends Object

Schematron validation with FedoraRules schema as default.

Author:
Sandy Payette

Constructor Summary
DOValidatorSchematronResult(DOMResult result)
           
 
Method Summary
 String getXMLResult()
           
 boolean isValid()
          Check if the object passes Schematron validation
 String serializeResult(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(DOMResult result)
Method Detail

getXMLResult

public String getXMLResult()
                    throws TransformerException,
                           TransformerConfigurationException,
                           ParserConfigurationException
Throws:
TransformerException
TransformerConfigurationException
ParserConfigurationException

isValid

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

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

serializeResult

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



Copyright © 2012 DuraSpace. All Rights Reserved.