Class TalkbankValidator

java.lang.Object
ca.phon.phontalk.TalkbankValidator

public class TalkbankValidator extends Object
Validates talkbank xml files. The class looks for the schmea in the following locations: ./talkbank.xsd ./data/talkbank.xsd http://www.talkbank.org/software/talkbank.xsd Errors are automatically sent to PhonLogger.
  • Constructor Details

    • TalkbankValidator

      public TalkbankValidator()
      Constructor
  • Method Details

    • getResourceResolver

      public LSResourceResolver getResourceResolver()
      Get the resource resolver based on the catalog resolver.
    • validate

      public boolean validate(Document doc) throws jakarta.xml.bind.ValidationException
      Validate the given DOM doc.
      Throws:
      jakarta.xml.bind.ValidationException
    • validate

      public boolean validate(Document doc, ErrorHandler handler) throws jakarta.xml.bind.ValidationException
      Throws:
      jakarta.xml.bind.ValidationException
    • validate

      public boolean validate(File file) throws jakarta.xml.bind.ValidationException
      Validatoe the given file
      Throws:
      jakarta.xml.bind.ValidationException
    • validate

      public boolean validate(File file, ErrorHandler handler) throws jakarta.xml.bind.ValidationException
      Throws:
      jakarta.xml.bind.ValidationException
    • validate

      public boolean validate(Source src) throws jakarta.xml.bind.ValidationException
      Throws:
      jakarta.xml.bind.ValidationException
    • validate

      public boolean validate(Source src, ErrorHandler handler) throws jakarta.xml.bind.ValidationException
      Validate the given source.
      Throws:
      jakarta.xml.bind.ValidationException