|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.util.ParserConfigurationSettings
org.apache.xerces.parsers.BasicParserConfiguration
org.apache.xerces.impl.xs.opti.SchemaParsingConfig
public class SchemaParsingConfig
| Constructor Summary | |
|---|---|
SchemaParsingConfig()
Default constructor. |
|
SchemaParsingConfig(SymbolTable symbolTable)
Constructs a parser configuration using the specified symbol table. |
|
SchemaParsingConfig(SymbolTable symbolTable,
XMLGrammarPool grammarPool)
Constructs a parser configuration using the specified symbol table and grammar pool. |
|
SchemaParsingConfig(SymbolTable symbolTable,
XMLGrammarPool grammarPool,
XMLComponentManager parentSettings)
Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings. |
|
| Method Summary | |
|---|---|
void |
cleanup()
If the application decides to terminate parsing before the xml document is fully parsed, the application should call this method to free any resource allocated during parsing. |
Document |
getDocument()
Returns the Document object. |
boolean |
getFeature(java.lang.String featureId)
Returns the state of a feature. |
boolean |
parse(boolean complete)
Parses the document in a pull parsing fashion. |
void |
parse(XMLInputSource source)
Parses the specified input source. |
void |
reset()
Reset all components before parsing. |
void |
resetNodePool()
|
void |
setFeature(java.lang.String featureId,
boolean state)
Set the state of a feature. |
void |
setInputSource(XMLInputSource inputSource)
Sets the input source for the document to parse. |
void |
setLocale(java.util.Locale locale)
Set the locale to use for messages. |
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
setProperty |
| Methods inherited from class org.apache.xerces.parsers.BasicParserConfiguration |
|---|
getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLocale, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler |
| Methods inherited from class org.apache.xerces.util.ParserConfigurationSettings |
|---|
addRecognizedFeatures, addRecognizedProperties, getProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xerces.xni.parser.XMLParserConfiguration |
|---|
addRecognizedFeatures, addRecognizedProperties, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLocale, getProperty, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler |
| Constructor Detail |
|---|
public SchemaParsingConfig()
public SchemaParsingConfig(SymbolTable symbolTable)
symbolTable - The symbol table to use.
public SchemaParsingConfig(SymbolTable symbolTable,
XMLGrammarPool grammarPool)
REVISIT: Grammar pool will be updated when the new validation engine is implemented.
symbolTable - The symbol table to use.grammarPool - The grammar pool to use.
public SchemaParsingConfig(SymbolTable symbolTable,
XMLGrammarPool grammarPool,
XMLComponentManager parentSettings)
REVISIT: Grammar pool will be updated when the new validation engine is implemented.
symbolTable - The symbol table to use.grammarPool - The grammar pool to use.parentSettings - The parent settings.| Method Detail |
|---|
public boolean getFeature(java.lang.String featureId)
throws XMLConfigurationException
getFeature in interface XMLComponentManagergetFeature in interface XMLParserConfigurationgetFeature in class ParserConfigurationSettingsfeatureId - The feature identifier.
XMLConfigurationException - Thrown for configuration error.
In general, components should
only throw this exception if
it is really
a critical error.
public void setFeature(java.lang.String featureId,
boolean state)
throws XMLConfigurationException
setFeature in interface XMLParserConfigurationsetFeature in class BasicParserConfigurationfeatureId - The unique identifier (URI) of the feature.state - The requested state of the feature (true or false).
XMLConfigurationException - If the
requested feature is not known.
public void setProperty(java.lang.String propertyId,
java.lang.Object value)
throws XMLConfigurationException
setProperty in interface XMLParserConfigurationsetProperty in class BasicParserConfigurationpropertyId - value -
XMLConfigurationException - Thrown if there is a configuration
error.
public void setLocale(java.util.Locale locale)
throws XNIException
setLocale in interface XMLParserConfigurationsetLocale in class BasicParserConfigurationlocale - The locale object to use for localization of messages.
XNIException - Thrown if the parser does not support the
specified locale.
public void setInputSource(XMLInputSource inputSource)
throws XMLConfigurationException,
java.io.IOException
setInputSource in interface XMLPullParserConfigurationinputSource - The document's input source.
XMLConfigurationException - Thrown if there is a
configuration error when initializing the
parser.
java.io.IOException - Thrown on I/O error.parse(boolean)
public boolean parse(boolean complete)
throws XNIException,
java.io.IOException
parse in interface XMLPullParserConfigurationcomplete - True if the pull parser should parse the
remaining document completely.
XNIException - Any XNI exception, possibly wrapping
another exception.
java.io.IOException - An IO exception from the parser, possibly
from a byte stream or character stream
supplied by the parser.setInputSource(org.apache.xerces.xni.parser.XMLInputSource)public void cleanup()
cleanup in interface XMLPullParserConfiguration
public void parse(XMLInputSource source)
throws XNIException,
java.io.IOException
parse in interface XMLParserConfigurationparse in class BasicParserConfigurationsource - The input source.
XNIException - Throws exception on XNI error.
java.io.IOException - Throws exception on i/o error.
public void reset()
throws XNIException
XNIException - Thrown if an error occurs during initialization.public Document getDocument()
public void resetNodePool()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||