Package com.thaiopensource.validate
Interface Schema
- All Known Implementing Classes:
AbstractSchema
,CombineSchema
public interface Schema
A schema that can be used to validate an XML document. A single
Schema
object
is safe for concurrent access by multiple threads.- Author:
- James Clark
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateValidator
(PropertyMap properties) Creates a newValidator
that can be used to validate XML documents with respect to this schema.
-
Method Details
-
createValidator
Creates a newValidator
that can be used to validate XML documents with respect to this schema. ThePropertyMap
should contain aValidateProperty.ERROR_HANDLER
property, which will be used to report errors. If it does not, then anErrorHandler
will be used that ignores warnings and throws its argument on errors and fatal errors. Common properties are defined inValidateProperty
. Implementations may support additional properties.- Parameters:
properties
- aPropertyMap
specifying the properties of theValidator
to be created- Returns:
- a new
Validator
that can be used to validate an XML document with respect to this schema; nevernull
- See Also:
-
getProperties
PropertyMap getProperties()
-