Class SchematronHelper

java.lang.Object
org.fa.tei.validation.SchematronHelper

public class SchematronHelper extends Object
Can validate xml against schematron generated from fryske akademy tei dictionaries customization
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    validate all files in first file or directory argument (ValidationException indicates validation failure)
    static name.dmaus.schxslt.Result
    validates using schematron, the result holds success or failures
    static name.dmaus.schxslt.Result
    validates using schematron, the result holds success or failures

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SchematronHelper

      public SchematronHelper()
  • Method Details

    • validate

      public static name.dmaus.schxslt.Result validate(URL xml) throws IOException, name.dmaus.schxslt.SchematronException
      validates using schematron, the result holds success or failures
      Parameters:
      xml -
      Throws:
      name.dmaus.schxslt.SchematronException - when transforming fails, NOT when validation fails
      IOException
    • validate

      public static name.dmaus.schxslt.Result validate(String xml) throws name.dmaus.schxslt.SchematronException
      validates using schematron, the result holds success or failures
      Parameters:
      xml -
      Throws:
      name.dmaus.schxslt.SchematronException - when transforming fails, NOT when validation fails
    • main

      public static void main(String[] args) throws IOException, name.dmaus.schxslt.SchematronException
      validate all files in first file or directory argument (ValidationException indicates validation failure)
      Parameters:
      args -
      Throws:
      ValidationException - when validation fails
      IOException
      name.dmaus.schxslt.SchematronException