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 -
Method Summary
Modifier and TypeMethodDescriptionvalidateApplication(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
-
GRANTS_GOV_PREFIX
- See Also:
-
-
Method Details
-
validateForm
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 asXmlObjectformName- 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.
-