org.apache.xerces.dom
public class DOMConfigurationImpl extends ParserConfigurationSettings implements XMLParserConfiguration, DOMConfiguration
Version: $Id: DOMConfigurationImpl.java,v 1.36 2005/07/25 04:24:21 mrglavas Exp $
UNKNOWN:
Field Summary | |
---|---|
protected static short | CDATA |
protected static short | COMMENTS |
protected static String | DTD_VALIDATOR_FACTORY_PROPERTY |
protected static short | DTNORMALIZATION |
protected static String | DYNAMIC_VALIDATION |
protected static short | ENTITIES |
protected static String | ENTITY_MANAGER Property identifier: entity manager. |
protected static String | ENTITY_RESOLVER Property identifier: entity resolver. |
protected static String | ERROR_HANDLER Property identifier: error handler. |
protected static String | ERROR_REPORTER Property identifier: error reporter. |
protected ArrayList | fComponents Components. |
protected short | features Normalization features |
protected DOMErrorHandlerWrapper | fErrorHandlerWrapper |
protected XMLErrorReporter | fErrorReporter Error reporter |
protected Locale | fLocale Locale. |
protected SymbolTable | fSymbolTable Symbol table. |
protected ValidationManager | fValidationManager |
protected static String | GRAMMAR_POOL Property id: Grammar pool |
protected static short | INFOSET_FALSE_PARAMS |
protected static short | INFOSET_MASK |
protected static short | INFOSET_TRUE_PARAMS |
protected static String | JAXP_SCHEMA_LANGUAGE Property identifier: JAXP schema language / DOM schema-type. |
protected static String | JAXP_SCHEMA_SOURCE Property identifier: JAXP schema source/ DOM schema-location. |
protected static short | NAMESPACES |
protected static String | NORMALIZE_DATA |
protected static short | NSDECL |
protected static short | PSVI |
protected static String | SCHEMA |
protected static String | SCHEMA_FULL_CHECKING |
protected static String | SEND_PSVI sending psvi in the pipeline |
protected static short | SPLITCDATA |
protected static String | SYMBOL_TABLE Property identifier: symbol table. |
protected static short | VALIDATE |
protected static String | VALIDATION_MANAGER |
protected static short | WELLFORMED |
protected static String | XERCES_NAMESPACES Feature identifier: namespaces. |
protected static String | XERCES_VALIDATION Feature identifier: validation. |
protected static String | XML_STRING Property identifier: xml string. |
Constructor Summary | |
---|---|
protected | DOMConfigurationImpl() Default Constructor. |
protected | DOMConfigurationImpl(SymbolTable symbolTable)
Constructs a parser configuration using the specified symbol table.
|
protected | DOMConfigurationImpl(SymbolTable symbolTable, XMLComponentManager parentSettings)
Constructs a parser configuration using the specified symbol table
and parent settings.
|
Method Summary | |
---|---|
protected void | addComponent(XMLComponent component) |
boolean | canSetParameter(String name, Object value)
DOM Level 3 WD - Experimental.
|
protected void | checkProperty(String propertyId)
Check a property. |
protected ValidationManager | createValidationManager() |
XMLDocumentHandler | getDocumentHandler() Returns the registered document handler. |
XMLDTDContentModelHandler | getDTDContentModelHandler() Returns the registered DTD content model handler. |
XMLDTDHandler | getDTDHandler() Returns the registered DTD handler. |
XMLEntityResolver | getEntityResolver()
Return the current entity resolver.
|
XMLErrorHandler | getErrorHandler()
Return the current error handler.
|
Locale | getLocale() Returns the locale. |
Object | getParameter(String name)
DOM Level 3 WD - Experimental.
getParameter |
DOMStringList | getParameterNames()
DOM Level 3 CR - Experimental.
|
void | parse(XMLInputSource inputSource)
Parse an XML document.
|
protected void | reset()
reset all components before parsing |
void | setDocumentHandler(XMLDocumentHandler documentHandler)
Sets the document handler on the last component in the pipeline
to receive information about the document.
|
void | setDTDContentModelHandler(XMLDTDContentModelHandler handler)
Sets the DTD content model handler.
|
void | setDTDHandler(XMLDTDHandler dtdHandler)
Sets the DTD handler.
|
void | setEntityResolver(XMLEntityResolver resolver)
Sets the resolver used to resolve external entities. |
void | setErrorHandler(XMLErrorHandler errorHandler)
Allow an application to register an error event handler.
|
void | setFeature(String featureId, boolean state)
Set the state of a feature.
|
void | setLocale(Locale locale)
Set the locale to use for messages.
|
void | setParameter(String name, Object value)
DOM Level 3 WD - Experimental.
setParameter |
void | setProperty(String propertyId, Object value)
setProperty
|
Parameters: symbolTable The symbol table to use.
Parameters: symbolTable The symbol table to use. parentSettings The parent settings.
Parameters: name The name of the parameter to check. value An object. if null, the returned value is true.
Returns: true if the parameter could be successfully set to the specified value, or false if the parameter is not recognized or the requested value is not supported. This does not change the current value of the parameter itself.
Parameters: propertyId The unique identifier (URI) of the property being set.
Throws: org.apache.xerces.xni.parser.XMLConfigurationException If the requested feature is not known or supported.
Returns: The current entity resolver, or null if none has been registered.
See Also: DOMConfigurationImpl
Returns: The current error handler, or null if none has been registered.
See Also: DOMConfigurationImpl
DOMConfiguration
object and for which at least one value
can be set by the application. Note that this list can also contain
parameter names defined outside this specification.The parser can use this method to instruct this configuration to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).
Parsers may not invoke this method while a parse is in progress. Once a parse is complete, the parser may then parse another XML document.
This method is synchronous: it will not return until parsing has ended. If a client application wants to terminate parsing early, it should throw an exception.
Parameters: source The input source for the top-level of the XML document.
Throws: XNIException Any XNI exception, possibly wrapping another exception. IOException An IO exception from the parser, possibly from a byte stream or character stream supplied by the parser.
Parameters: documentHandler The document handler.
Parameters: handler The DTD content model handler.
Parameters: dtdHandler The DTD handler.
Parameters: resolver The new entity resolver. Passing a null value will uninstall the currently installed resolver.
If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.
Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
Parameters: errorHandler The error handler.
Throws: java.lang.NullPointerException If the handler argument is null.
See Also: DOMConfigurationImpl
Parameters: featureId The unique identifier (URI) of the feature. state The requested state of the feature (true or false).
Throws: org.apache.xerces.xni.parser.XMLConfigurationException If the requested feature is not known.
Parameters: locale The locale object to use for localization of messages.
Throws: XNIException Thrown if the parser does not support the specified locale.
Parameters: propertyId value