Overview | Package | Class | Tree | Deprecated | Index | Help
| oNVDL-20070517 API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.thaiopensource.validate
Interface Schema

All Known Implementing Classes:
  AbstractSchema

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.

See Also:
  `SchemaReader`, `Validator`

Method Summary
`Validator` | `createValidator(PropertyMap properties)` Creates a new `Validator` that can be used to validate XML documents with respect to this schema.
`PropertyMap` | `getProperties()`

Method Detail

### createValidator

    public Validator createValidator(PropertyMap properties)

  Creates a new `Validator` that can be used to validate XML documents with respect to this schema. The `PropertyMap` should contain a `ValidateProperty.ERROR_HANDLER` property, which will be used to report errors. If it does not, then an `ErrorHandler` will be used that ignores warnings and throws its argument on errors and fatal errors. Common properties are defined in `ValidateProperty`. Implementations may support additional properties.

  Parameters:
    `properties` - a `PropertyMap` specifying the properties of the `Validator` to be created
  Returns:
    a new `Validator` that can be used to validate an XML document with respect to this schema; never `null`
  See Also:
    `ValidateProperty.ERROR_HANDLER`

### getProperties

    public PropertyMap getProperties()

Overview | Package | Class | Tree | Deprecated | Index | Help
| oNVDL-20070517 API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

© Copyright SyncRO Soft SRL 2006-2007.