|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.apache.xerces.parsers.XMLGrammarPreparser
public class XMLGrammarPreparser
This class provides an easy way for a user to preparse grammars of various types. By default, it knows how to preparse external DTD's and schemas; it provides an easy way for user applications to register classes that know how to parse additional grammar types. By default, it does no grammar caching; but it provides ways for user applications to do so.
Field Summary | |
---|---|
protected static String |
ENTITY_RESOLVER
Deprecated. Property identifier: entity resolver. |
protected static String |
ERROR_HANDLER
Deprecated. Property identifier: error handler. |
protected static String |
ERROR_REPORTER
Deprecated. Property identifier: error reporter. |
protected XMLEntityResolver |
fEntityResolver
Deprecated. |
protected XMLErrorReporter |
fErrorReporter
Deprecated. |
protected XMLGrammarPool |
fGrammarPool
Deprecated. |
protected Locale |
fLocale
Deprecated. |
protected SymbolTable |
fSymbolTable
Deprecated. |
protected static String |
GRAMMAR_POOL
Deprecated. Property identifier: grammar pool . |
protected static String |
SYMBOL_TABLE
Deprecated. Property identifier: symbol table. |
Constructor Summary | |
---|---|
XMLGrammarPreparser()
Deprecated. Default constructor. |
|
XMLGrammarPreparser(SymbolTable symbolTable)
Deprecated. Constructs a preparser using the specified symbol table. |
Method Summary | |
---|---|
XMLEntityResolver |
getEntityResolver()
Deprecated. Returns the registered entity resolver. |
XMLErrorHandler |
getErrorHandler()
Deprecated. Returns the registered error handler. |
boolean |
getFeature(String type,
String featureId)
Deprecated. |
XMLGrammarPool |
getGrammarPool()
Deprecated. Returns the registered grammar pool. |
XMLGrammarLoader |
getLoader(String type)
Deprecated. |
Locale |
getLocale()
Deprecated. Return the Locale the XMLGrammarLoader is using. |
Object |
getProperty(String type,
String propertyId)
Deprecated. |
Grammar |
preparseGrammar(String type,
XMLInputSource is)
Deprecated. Parse a grammar from a location identified by an XMLInputSource. |
boolean |
registerPreparser(String grammarType,
XMLGrammarLoader loader)
Deprecated. |
void |
setEntityResolver(XMLEntityResolver entityResolver)
Deprecated. Sets the entity resolver. |
void |
setErrorHandler(XMLErrorHandler errorHandler)
Deprecated. Sets the error handler. |
void |
setFeature(String featureId,
boolean value)
Deprecated. |
void |
setGrammarPool(XMLGrammarPool grammarPool)
Deprecated. Sets the grammar pool. |
void |
setLocale(Locale locale)
Deprecated. Set the locale to use for messages. |
void |
setProperty(String propId,
Object value)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String SYMBOL_TABLE
protected static final String ERROR_REPORTER
protected static final String ERROR_HANDLER
protected static final String ENTITY_RESOLVER
protected static final String GRAMMAR_POOL
protected SymbolTable fSymbolTable
protected XMLErrorReporter fErrorReporter
protected XMLEntityResolver fEntityResolver
protected XMLGrammarPool fGrammarPool
protected Locale fLocale
Constructor Detail |
---|
public XMLGrammarPreparser()
public XMLGrammarPreparser(SymbolTable symbolTable)
symbolTable
- The symbol table to use.Method Detail |
---|
public boolean registerPreparser(String grammarType, XMLGrammarLoader loader)
public Grammar preparseGrammar(String type, XMLInputSource is) throws XNIException, IOException
type
- The type of the grammar to be constructedsource
- The XMLInputSource containing this grammar's
information
If a URI is included in the systemId field, the parser will not expand this URI or make it
available to the EntityResolver
Grammar
.
XNIException
- thrown on an error in grammar
construction
IOException
- thrown if an error is encountered
in reading the filepublic void setLocale(Locale locale)
locale
- The locale object to use for localization of messages.
XNIException
- Thrown if the parser does not support the
specified locale.public Locale getLocale()
public void setErrorHandler(XMLErrorHandler errorHandler)
errorHandler
- The error handler.public XMLErrorHandler getErrorHandler()
public void setEntityResolver(XMLEntityResolver entityResolver)
entityResolver
- The new entity resolver.public XMLEntityResolver getEntityResolver()
public void setGrammarPool(XMLGrammarPool grammarPool)
grammarPool
- The new grammar pool.public XMLGrammarPool getGrammarPool()
public XMLGrammarLoader getLoader(String type)
public void setFeature(String featureId, boolean value)
public void setProperty(String propId, Object value)
public boolean getFeature(String type, String featureId)
public Object getProperty(String type, String propertyId)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |