Klasse ValidatorImpl

java.lang.Object
org.oxt.toolbox.validation.ValidatorImpl
Alle implementierten Schnittstellen:
IValidator

public class ValidatorImpl extends Object implements IValidator
Class implementing the validation report processing (implements the IValidator interface).
Autor:
Dr. Jan C. Thiele
  • Felddetails

    • invoicePath

      String invoicePath
      Class member to store invoice path.
    • html

      String html
      String to store validation report HTML.
  • Konstruktordetails

    • ValidatorImpl

      public ValidatorImpl()
  • Methodendetails

    • runValidation

      public String runValidation(String invoicePath, String valiVersion) throws IOException, Exception
      Beschreibung aus Schnittstelle kopiert: IValidator
      Method to run the validation.
      Angegeben von:
      runValidation in Schnittstelle IValidator
      Parameter:
      invoicePath - path of invoice file
      valiVersion - path to validation scenario file
      Gibt zurück:
      string string with validation report
      Löst aus:
      IOException - read error
      Exception - unspecific error
    • saveAs

      public void saveAs(String filePath) throws IOException
      Beschreibung aus Schnittstelle kopiert: IValidator
      Method to save the validation report to a file.
      Angegeben von:
      saveAs in Schnittstelle IValidator
      Parameter:
      filePath - file path to save the report into
      Löst aus:
      IOException - write error