Package com.thaiopensource.validate
Class CombineSchema
- java.lang.Object
-
- com.thaiopensource.validate.AbstractSchema
-
- com.thaiopensource.validate.CombineSchema
-
- All Implemented Interfaces:
Schema
public class CombineSchema extends AbstractSchema
-
-
Constructor Summary
Constructors Constructor Description CombineSchema(Schema schema1, Schema schema2, PropertyMap properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatorcreateValidator(PropertyMap properties)Creates a newValidatorthat can be used to validate XML documents with respect to this schema.-
Methods inherited from class com.thaiopensource.validate.AbstractSchema
filterProperties, getProperties
-
-
-
-
Constructor Detail
-
CombineSchema
public CombineSchema(Schema schema1, Schema schema2, PropertyMap properties)
-
-
Method Detail
-
createValidator
public Validator createValidator(PropertyMap properties)
Description copied from interface:SchemaCreates 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:
ValidateProperty.ERROR_HANDLER
-
-