Class OrchestraValidator

java.lang.Object
com.esprow.oapi.OrchestraValidator

public class OrchestraValidator extends Object
Provides utility methods for validating Orchestra files or loaded documents
  • Method Details

    • validate

      public static ValidationResult validate(URI uri) throws IOException
      Validates the Orchestra file by given URI performing mandatory model checks and checking the file against the Orchestra Repository XML Schema Definition
      Parameters:
      uri - the Orchestra file URI
      Returns:
      the validation result
      Throws:
      IOException - in case of any I/O errors when trying to read the given file
    • validate

      public static ValidationResult validate(URI uri, boolean checkSchema) throws IOException
      Validates the Orchestra file by given URI performing mandatory model checks and optionally checking the file against the Orchestra Repository XML Schema Definition
      Parameters:
      uri - the Orchestra file URI
      checkSchema - whether to perform validation with XML schema
      Returns:
      the validation result
      Throws:
      IOException - in case of any I/O errors when trying to read the given file
    • validate

      public static ValidationResult validate(OrchestraDocument doc)
      Validates the given OrchestraDocument performing mandatory model checks
      Parameters:
      doc - the Orchestra document model
      Returns:
      the validation result