Interface S2SValidatorService

All Known Implementing Classes:
S2SValidatorServiceImpl

public interface S2SValidatorService
This class Forms the base for all XML Beans based validations to be done.
Author:
Kuali Research Administration Team (kualidev@oncourse.iu.edu)
  • Field Summary

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

    Modifier and Type
    Method
    Description
    validateApplication(String applicationXml, org.springframework.core.io.Resource oppSchemaResource)
    This method receives a full s2s application and the url to a schema and validates the application against the schema.
    validateForm(org.apache.xmlbeans.XmlObject formObject, String formName)
    This method receives an XMLObject and validates it against its schema and returns the validation result.
  • Field Details

  • Method Details

    • validateForm

      ValidationResult validateForm(org.apache.xmlbeans.XmlObject formObject, String formName)
      This method receives an XMLObject and validates it against its schema and returns the validation result. It also receives a list in which upon validation failure, populates it with XPaths of the error nodes
      Parameters:
      formObject - XML document as XmlObject
      formName - is the FormName.
      Returns:
      validation result true if valid false otherwise.
    • validateApplication

      ValidationResult validateApplication(String applicationXml, org.springframework.core.io.Resource oppSchemaResource)
      This method receives a full s2s application and the url to a schema and validates the application against the schema. Failure to retrieve the schema or a malformed schema will not cause a failure.