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 newValidatorthat can be used to validate XML documents with respect to this schema.
-
Method Details
-
createValidator
Creates a newValidatorthat can be used to validate XML documents with respect to this schema. ThePropertyMapshould contain aValidateProperty.ERROR_HANDLERproperty, which will be used to report errors. If it does not, then anErrorHandlerwill 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- aPropertyMapspecifying the properties of theValidatorto be created- Returns:
- a new
Validatorthat can be used to validate an XML document with respect to this schema; nevernull - See Also:
-
getProperties
PropertyMap getProperties()
-