fi.hut.tml.xsmiles.mlfc.xforms.instance.XercesPSVI
Class XercesSchemaPoolImpl

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.instance.XercesPSVI.XercesSchemaPoolImpl
All Implemented Interfaces:
SchemaPool, org.apache.xerces.xni.parser.XMLErrorHandler

public class XercesSchemaPoolImpl
extends java.lang.Object
implements SchemaPool, org.apache.xerces.xni.parser.XMLErrorHandler

the class implementation for pooling or pre-reading schemas

Author:
Mikko Honkala, Ronald Tschal?r (Patches)

Nested Class Summary
 class XercesSchemaPoolImpl.SchemaParseException
           
 
Field Summary
static int BIG_PRIME
           
protected  int errorCount
           
protected  org.apache.xerces.impl.xs.XSDDescription fXSDDescription
           
static java.lang.String GRAMMAR_POOL
          Property identifier: grammar pool.
protected  org.apache.xerces.util.XMLGrammarPoolImpl grammarPool
          the internal xerces schema pool object
protected static java.lang.String NAMESPACES_FEATURE_ID
          Namespaces feature id (http://xml.org/sax/features/namespaces).
protected  org.apache.xerces.parsers.XMLGrammarPreparser preparser
           
protected static java.lang.String SCHEMA_FULL_CHECKING_FEATURE_ID
          Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).
protected static java.lang.String SCHEMA_VALIDATION_FEATURE_ID
          Schema validation feature id (http://apache.org/xml/features/validation/schema).
protected  boolean schemaFullChecking
           
static java.lang.String SYMBOL_TABLE
          Property identifier: symbol table.
protected  org.apache.xerces.util.SymbolTable symbolTable
           
protected static java.lang.String VALIDATION_FEATURE_ID
          Validation feature id (http://xml.org/sax/features/validation).
 
Constructor Summary
XercesSchemaPoolImpl()
           
 
Method Summary
 void addSchema(java.io.Reader schemaReader, java.lang.String schemaURL)
          add schema from reader
 void addSchema(java.lang.String schemaURL)
          add schema from URL
 void error(java.lang.String str, java.lang.String str1, org.apache.xerces.xni.parser.XMLParseException xMLParseException)
           
 void fatalError(java.lang.String str, java.lang.String str1, org.apache.xerces.xni.parser.XMLParseException xMLParseException)
           
 org.apache.xerces.impl.xs.SchemaGrammar getGrammar(java.lang.String namespace)
           
 org.apache.xerces.util.SymbolTable getSymbolTable()
           
 org.apache.xerces.util.XMLGrammarPoolImpl getXMLGrammarPoolImpl()
           
protected  void initPool()
           
 void reset()
          reset pool
 void warning(java.lang.String str, java.lang.String str1, org.apache.xerces.xni.parser.XMLParseException xMLParseException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYMBOL_TABLE

public static final java.lang.String SYMBOL_TABLE
Property identifier: symbol table.

See Also:
Constant Field Values

GRAMMAR_POOL

public static final java.lang.String GRAMMAR_POOL
Property identifier: grammar pool.

See Also:
Constant Field Values

NAMESPACES_FEATURE_ID

protected static final java.lang.String NAMESPACES_FEATURE_ID
Namespaces feature id (http://xml.org/sax/features/namespaces).

See Also:
Constant Field Values

VALIDATION_FEATURE_ID

protected static final java.lang.String VALIDATION_FEATURE_ID
Validation feature id (http://xml.org/sax/features/validation).

See Also:
Constant Field Values

SCHEMA_VALIDATION_FEATURE_ID

protected static final java.lang.String SCHEMA_VALIDATION_FEATURE_ID
Schema validation feature id (http://apache.org/xml/features/validation/schema).

See Also:
Constant Field Values

SCHEMA_FULL_CHECKING_FEATURE_ID

protected static final java.lang.String SCHEMA_FULL_CHECKING_FEATURE_ID
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).

See Also:
Constant Field Values

BIG_PRIME

public static final int BIG_PRIME
See Also:
Constant Field Values

grammarPool

protected org.apache.xerces.util.XMLGrammarPoolImpl grammarPool
the internal xerces schema pool object


preparser

protected org.apache.xerces.parsers.XMLGrammarPreparser preparser

schemaFullChecking

protected boolean schemaFullChecking

symbolTable

protected org.apache.xerces.util.SymbolTable symbolTable

errorCount

protected int errorCount

fXSDDescription

protected org.apache.xerces.impl.xs.XSDDescription fXSDDescription
Constructor Detail

XercesSchemaPoolImpl

public XercesSchemaPoolImpl()
Method Detail

initPool

protected void initPool()

addSchema

public void addSchema(java.lang.String schemaURL)
               throws XFormsLinkException
add schema from URL

Specified by:
addSchema in interface SchemaPool
Throws:
XFormsLinkException

addSchema

public void addSchema(java.io.Reader schemaReader,
                      java.lang.String schemaURL)
               throws XFormsLinkException
add schema from reader

Specified by:
addSchema in interface SchemaPool
Throws:
XFormsLinkException

reset

public void reset()
reset pool

Specified by:
reset in interface SchemaPool

getXMLGrammarPoolImpl

public org.apache.xerces.util.XMLGrammarPoolImpl getXMLGrammarPoolImpl()

getSymbolTable

public org.apache.xerces.util.SymbolTable getSymbolTable()

getGrammar

public org.apache.xerces.impl.xs.SchemaGrammar getGrammar(java.lang.String namespace)

error

public void error(java.lang.String str,
                  java.lang.String str1,
                  org.apache.xerces.xni.parser.XMLParseException xMLParseException)
           throws org.apache.xerces.xni.XNIException
Specified by:
error in interface org.apache.xerces.xni.parser.XMLErrorHandler
Throws:
org.apache.xerces.xni.XNIException

fatalError

public void fatalError(java.lang.String str,
                       java.lang.String str1,
                       org.apache.xerces.xni.parser.XMLParseException xMLParseException)
                throws org.apache.xerces.xni.XNIException
Specified by:
fatalError in interface org.apache.xerces.xni.parser.XMLErrorHandler
Throws:
org.apache.xerces.xni.XNIException

warning

public void warning(java.lang.String str,
                    java.lang.String str1,
                    org.apache.xerces.xni.parser.XMLParseException xMLParseException)
             throws org.apache.xerces.xni.XNIException
Specified by:
warning in interface org.apache.xerces.xni.parser.XMLErrorHandler
Throws:
org.apache.xerces.xni.XNIException


X-Smiles 1.2