com.thaiopensource.validate.nrl
Class SchemaImpl

java.lang.Object
  extended by com.thaiopensource.validate.AbstractSchema
      extended by com.thaiopensource.validate.nrl.SchemaImpl
All Implemented Interfaces:
Schema

 class SchemaImpl
extends AbstractSchema


Nested Class Summary
private  class SchemaImpl.Handler
           
private static class SchemaImpl.MustSupportOption
           
private static class SchemaImpl.WrappedIOException
           
 
Field Summary
private  boolean attributesSchema
           
private  Mode defaultBaseMode
           
private static String IMPLICIT_MODE_NAME
           
private  Hashtable modeMap
           
(package private) static String NRL_URI
           
private  Mode startMode
           
private static String WRAPPER_MODE_NAME
           
 
Constructor Summary
SchemaImpl(PropertyMap properties)
           
 
Method Summary
 Validator createValidator(PropertyMap properties)
          Creates a new Validator that can be used to validate XML documents with respect to this schema.
private  Mode getModeAttribute(Attributes attributes, String localName)
           
(package private)  SchemaFuture installHandlers(XMLReader in, SchemaReceiverImpl sr)
           
private  Mode lookupCreateMode(String name)
           
private  Mode makeBuiltinMode(String name, Class cls)
           
 
Methods inherited from class com.thaiopensource.validate.AbstractSchema
filterProperties, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPLICIT_MODE_NAME

private static final String IMPLICIT_MODE_NAME
See Also:
Constant Field Values

WRAPPER_MODE_NAME

private static final String WRAPPER_MODE_NAME
See Also:
Constant Field Values

NRL_URI

static final String NRL_URI
See Also:
Constant Field Values

modeMap

private final Hashtable modeMap

startMode

private Mode startMode

defaultBaseMode

private final Mode defaultBaseMode

attributesSchema

private final boolean attributesSchema
Constructor Detail

SchemaImpl

SchemaImpl(PropertyMap properties)
Method Detail

makeBuiltinMode

private Mode makeBuiltinMode(String name,
                             Class cls)

installHandlers

SchemaFuture installHandlers(XMLReader in,
                             SchemaReceiverImpl sr)

createValidator

public Validator createValidator(PropertyMap properties)
Description copied from interface: Schema
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

getModeAttribute

private Mode getModeAttribute(Attributes attributes,
                              String localName)

lookupCreateMode

private Mode lookupCreateMode(String name)