com.thaiopensource.validate.nrl
Class SchemaReceiverImpl

java.lang.Object
  extended by com.thaiopensource.validate.nrl.SchemaReceiverImpl
All Implemented Interfaces:
SchemaReceiver

 class SchemaReceiverImpl
extends Object
implements SchemaReceiver


Field Summary
private  boolean attributesSchema
           
private  SchemaReader autoSchemaReader
           
private static String NRL_SCHEMA
           
private  Schema nrlSchema
           
private  PropertyMap properties
           
private static String RNC_MEDIA_TYPE
           
private static PropertyId[] subSchemaProperties
           
 
Constructor Summary
SchemaReceiverImpl(PropertyMap properties)
           
 
Method Summary
(package private)  Schema createChildSchema(InputSource inputSource, String schemaType, PropertyMap options, boolean isAttributesSchema)
           
(package private)  Schema getNrlSchema()
           
(package private)  Option getOption(String uri)
           
(package private)  PropertyMap getProperties()
           
private static URL getResource(String resourceName)
           
 SchemaFuture installHandlers(XMLReader xr)
           
private static boolean isRnc(String schemaType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NRL_SCHEMA

private static final String NRL_SCHEMA
See Also:
Constant Field Values

RNC_MEDIA_TYPE

private static final String RNC_MEDIA_TYPE
See Also:
Constant Field Values

properties

private final PropertyMap properties

attributesSchema

private final boolean attributesSchema

autoSchemaReader

private final SchemaReader autoSchemaReader

nrlSchema

private Schema nrlSchema

subSchemaProperties

private static final PropertyId[] subSchemaProperties
Constructor Detail

SchemaReceiverImpl

public SchemaReceiverImpl(PropertyMap properties)
Method Detail

installHandlers

public SchemaFuture installHandlers(XMLReader xr)
Specified by:
installHandlers in interface SchemaReceiver

getNrlSchema

Schema getNrlSchema()
              throws IOException,
                     IncorrectSchemaException,
                     SAXException
Throws:
IOException
IncorrectSchemaException
SAXException

getResource

private static URL getResource(String resourceName)

getProperties

PropertyMap getProperties()

createChildSchema

Schema createChildSchema(InputSource inputSource,
                         String schemaType,
                         PropertyMap options,
                         boolean isAttributesSchema)
                   throws IOException,
                          IncorrectSchemaException,
                          SAXException
Throws:
IOException
IncorrectSchemaException
SAXException

getOption

Option getOption(String uri)

isRnc

private static boolean isRnc(String schemaType)