Method Summary |
|
public void | addRecognizer(XMLDeclRecognizer recognizer) Adds a recognizer. |
protected boolean | getAllowJavaEncodings() Returns true if Java encoding names are allowed in the XML document. |
protected boolean | getContinueAfterFatalError() Returns true if the parser continues after a fatal error. |
public EntityResolver | getEntityResolver() Return the current entity resolver. |
public ErrorHandler | getErrorHandler() Return the current error handler. |
protected boolean | getExternalGeneralEntities() Note: This feature is always true.
Returns true if external general entities are expanded. |
protected boolean | getExternalParameterEntities() Note: This feature is always true.
Returns true if external parameter entities are expanded. |
public boolean | getFeature(String featureId) Query the state of a feature.
Query the current state of any feature in a SAX2 parser. |
public String[] | getFeaturesRecognized() Returns a list of features that this parser recognizes. |
protected boolean | getLoadDTDGrammar() Returns true if load DTD grammar is turned on in the XMLValiator. |
protected boolean | getLoadExternalDTD() Returns true if loading of the external DTD is on. |
final public Locator | getLocator() |
protected boolean | getNamespaces() Returns true if the parser preprocesses namespaces. |
protected boolean | getNormalizeContents() |
public String[] | getPropertiesRecognized() Returns a list of properties that this parser recognizes. |
public Object | getProperty(String propertyId) Query the value of a property.
Return the current value of a property in a SAX2 parser.
The parser might not recognize the property.
Parameters: propertyId - The unique identifier (URI) of the propertybeing set. |
protected boolean | getValidation() Returns true if validation is turned on. |
protected boolean | getValidationDynamic() Returns true if validation is based on whether a document
contains a grammar. |
protected boolean | getValidationSchema() Returns true if Schema support is turned on. |
protected boolean | getValidationSchemaFullChecking() Returns true if Schema support is turned on. |
protected boolean | getValidationWarnOnDuplicateAttdef() Returns true if an error is emitted when an attribute is redefined
in the grammar. |
protected boolean | getValidationWarnOnUndeclaredElemdef() Returns true if the parser emits an error when an undeclared
element is referenced in the grammar. |
protected String | getXMLString() |
final public Locale | getfLocale() |
final public XMLMessageProvider | getfgDatatypeMessages() |
final public XMLMessageProvider | getfgImplementationMessages() |
final public XMLMessageProvider | getfgSchemaMessages() |
final public XMLMessageProvider | getfgXMLMessages() |
protected void | initHandlers(boolean sendCharDataAsCharArray, XMLDocumentHandler docHandler, XMLDocumentHandler.DTDHandler dtdHandler) Set char data processing preference and handlers. |
public boolean | isFeatureRecognized(String featureId) Returns true if the specified feature is recognized. |
public boolean | isPropertyRecognized(String propertyId) Returns true if the specified property is recognized. |
public void | parse(InputSource source) Parses the specified input source. |
public void | parse(String systemId) Parses the input source specified by the given system identifier. |
public boolean | parseSome() Application-driven parsing. |
public boolean | parseSomeSetup(InputSource source) Setup for application-driven parsing. |
public void | reportError(Locator locator, String errorDomain, int majorCode, int minorCode, Object args, int errorType) Report an error. |
public void | reset() Reset parser instance so that it can be reused. |
protected void | resetOrCopy() |
protected void | setAllowJavaEncodings(boolean allow) Allows the use of Java encoding names in the XMLDecl and TextDecl
lines in an XML document. |
protected void | setContinueAfterFatalError(boolean continueAfterFatalError) Allows the parser to continue after a fatal error. |
public void | setEntityResolver(EntityResolver resolver) Sets the resolver used to resolve external entities. |
public void | setErrorHandler(ErrorHandler handler) Sets the error handler. |
protected void | setExternalGeneralEntities(boolean expand) Note: Currently, this parser always expands external general
entities. Setting this feature to false will throw a
SAXNotSupportedException. |
protected void | setExternalNoNamespaceSchemaLocation(Object value) Allows the user to set external XML Schema with no target Namespace. |
protected void | setExternalParameterEntities(boolean expand) Note: Currently, this parser always expands external parameter
entities. Setting this feature to false will throw a
SAXNotSupportedException. |
protected void | setExternalSchemaLocation(Object value) Allows the user to set a list of external XML Schemas (ex."http://example.com schema.xsd")
to be used by the parser. |
public void | setFeature(String featureId, boolean state) Set the state of a feature.
Set the state of any feature in a SAX2 parser. |
protected void | setLoadDTDGrammar(boolean loadDTDGrammar) Allows the parser to have the choice to load DTD grammar when
validation is off. |
protected void | setLoadExternalDTD(boolean loadExternalDTD) Allows the parser to have the choice to load the external DTD when
validation is off. |
public void | setLocale(Locale locale) Set the locale to use for messages. |
protected void | setNamespaces(boolean process) Sets whether the parser preprocesses namespaces. |
protected void | setNormalizeAttributeValues(boolean normalize) |
protected void | setNormalizeContents(boolean normalize) Normalization of element content is controlled by this feature. |
public void | setProperty(String propertyId, Object value) Set the value of a property.
Set the value of any property in a SAX2 parser. |
public void | setReaderFactory(XMLEntityReaderFactory readerFactory) Set the reader factory. |
protected void | setValidation(boolean validate) Sets whether the parser validates. |
protected void | setValidationDynamic(boolean dynamic) Allows the parser to validate a document only when it contains a
grammar. |
protected void | setValidationSchema(boolean schema) Allows the user to turn Schema support on/off. |
protected void | setValidationSchemaFullChecking(boolean schemaFullChecking) Allows the user to turn full Schema constraint checking on/off. |
protected void | setValidationWarnOnDuplicateAttdef(boolean warn) Sets whether an error is emitted when an attribute is redefined
in the grammar. |
protected void | setValidationWarnOnUndeclaredElemdef(boolean warn) Sets whether the parser emits an error when an element's content
model references an element by name that is not declared in the
grammar. |