Package com.opentext.ia.sdk.sip
Class XmlSchemaValidator
- java.lang.Object
-
- com.opentext.ia.sdk.sip.XmlSchemaValidator
-
-
Constructor Summary
Constructors Constructor Description XmlSchemaValidator(java.io.File xmlSchema)
Create an instance.XmlSchemaValidator(java.io.InputStream xmlSchema)
Create an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(java.io.InputStream xmlInstance)
Validate that the contents of a stream meets the expectations.
-
-
-
Constructor Detail
-
XmlSchemaValidator
public XmlSchemaValidator(java.io.File xmlSchema) throws java.io.IOException
Create an instance.- Parameters:
xmlSchema
- The XML Schema to use for validation- Throws:
java.io.IOException
- When the schema could not be found
-
XmlSchemaValidator
public XmlSchemaValidator(java.io.InputStream xmlSchema)
Create an instance.- Parameters:
xmlSchema
- The XML Schema to use for validation
-
-