com.thaiopensource.validate.mns
Class SchemaReceiverImpl

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

 class SchemaReceiverImpl
extends Object
implements SchemaReceiver


Field Summary
private  PropertyMap attributeSchemaProperties
           
private  boolean attributesSchema
           
private  SchemaReader autoSchemaLanguage
           
private static String MNS_SCHEMA
           
private  Schema mnsSchema
           
private  PropertyMap properties
           
private static String RNC_MEDIA_TYPE
           
 
Constructor Summary
SchemaReceiverImpl(PropertyMap properties)
           
 
Method Summary
(package private)  Schema createChildSchema(InputSource inputSource, String schemaType, boolean isAttributesSchema)
           
(package private)  Schema getMnsSchema()
           
(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

MNS_SCHEMA

private static final String MNS_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

attributeSchemaProperties

private final PropertyMap attributeSchemaProperties

attributesSchema

private final boolean attributesSchema

autoSchemaLanguage

private final SchemaReader autoSchemaLanguage

mnsSchema

private Schema mnsSchema
Constructor Detail

SchemaReceiverImpl

public SchemaReceiverImpl(PropertyMap properties)
Method Detail

installHandlers

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

getMnsSchema

Schema getMnsSchema()
              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,
                         boolean isAttributesSchema)
                   throws IOException,
                          IncorrectSchemaException,
                          SAXException
Throws:
IOException
IncorrectSchemaException
SAXException

isRnc

private static boolean isRnc(String schemaType)