public class SchemaDOMParser extends DefaultXMLDocumentHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_REPORTER
Property identifier: error reporter.
|
protected org.apache.xerces.xni.XMLLocator |
fLocator |
protected org.apache.xerces.xni.NamespaceContext |
fNamespaceContext |
static java.lang.String |
GENERATE_SYNTHETIC_ANNOTATION
Feature identifier: generate synthetic annotations.
|
Constructor and Description |
---|
SchemaDOMParser(org.apache.xerces.xni.parser.XMLParserConfiguration config)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
Character content.
|
void |
comment(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
A comment.
|
void |
emptyElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
An empty element.
|
void |
endCDATA(org.apache.xerces.xni.Augmentations augs)
The end of a CDATA section.
|
void |
endDocument(org.apache.xerces.xni.Augmentations augs)
The end of the document.
|
void |
endElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations augs)
The end of an element.
|
org.w3c.dom.Document |
getDocument()
Returns the DOM document object.
|
boolean |
getFeature(java.lang.String featureId)
Delegates to SchemaParsingConfig.getFeature
|
java.lang.Object |
getProperty(java.lang.String propertyId)
Delegates to SchemaParsingConfig.getProperty.
|
void |
ignorableWhitespace(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
Ignorable whitespace.
|
void |
parse(org.apache.xerces.xni.parser.XMLInputSource inputSource)
Delegates parsing to SchemaParsingConfig
|
void |
processingInstruction(java.lang.String target,
org.apache.xerces.xni.XMLString data,
org.apache.xerces.xni.Augmentations augs)
A processing instruction.
|
void |
reset()
Reset SchemaParsingConfig
|
void |
resetNodePool()
ResetNodePool on SchemaParsingConfig
|
void |
setEntityResolver(org.apache.xerces.xni.parser.XMLEntityResolver er)
Delegates to SchemaParsingConfig.setEntityResolver.
|
void |
setFeature(java.lang.String featureId,
boolean state)
Delegates to SchemaParsingConfig.setFeature
|
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
Delegates to SchemaParsingConfig.setProperty.
|
void |
startCDATA(org.apache.xerces.xni.Augmentations augs)
The start of a CDATA section.
|
void |
startDocument(org.apache.xerces.xni.XMLLocator locator,
java.lang.String encoding,
org.apache.xerces.xni.NamespaceContext namespaceContext,
org.apache.xerces.xni.Augmentations augs)
The start of the document.
|
void |
startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
The start of an element.
|
any, attributeDecl, doctypeDecl, element, elementDecl, empty, endAttlist, endConditional, endContentModel, endDTD, endExternalSubset, endGeneralEntity, endGroup, endParameterEntity, endPrefixMapping, externalEntityDecl, getDocumentSource, getDTDContentModelSource, getDTDSource, ignoredCharacters, internalEntityDecl, notationDecl, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startAttlist, startConditional, startContentModel, startDTD, startExternalSubset, startGeneralEntity, startGroup, startParameterEntity, startPrefixMapping, textDecl, unparsedEntityDecl, xmlDecl
public static final java.lang.String ERROR_REPORTER
public static final java.lang.String GENERATE_SYNTHETIC_ANNOTATION
protected org.apache.xerces.xni.XMLLocator fLocator
protected org.apache.xerces.xni.NamespaceContext fNamespaceContext
public SchemaDOMParser(org.apache.xerces.xni.parser.XMLParserConfiguration config)
public void startDocument(org.apache.xerces.xni.XMLLocator locator, java.lang.String encoding, org.apache.xerces.xni.NamespaceContext namespaceContext, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
DefaultXMLDocumentHandler
startDocument
in interface org.apache.xerces.xni.XMLDocumentHandler
startDocument
in class DefaultXMLDocumentHandler
locator
- The document locator, or null if the document
location cannot be reported during the parsing
of this document. However, it is strongly
recommended that a locator be supplied that can
at least report the system identifier of the
document.encoding
- The auto-detected IANA encoding name of the entity
stream. This value will be null in those situations
where the entity encoding is not auto-detected (e.g.
internal entities or a document entity that is
parsed from a java.io.Reader).namespaceContext
- The namespace context in effect at the
start of this document.
This object represents the current context.
Implementors of this class are responsible
for copying the namespace bindings from the
the current context (and its parent contexts)
if that information is important.augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void endDocument(org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
endDocument
in interface org.apache.xerces.xni.XMLDocumentHandler
endDocument
in class DefaultXMLDocumentHandler
augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void comment(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
comment
in interface org.apache.xerces.xni.XMLDocumentHandler
comment
in interface org.apache.xerces.xni.XMLDTDHandler
comment
in class DefaultXMLDocumentHandler
text
- The text in the comment.augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by application to signal an error.public void processingInstruction(java.lang.String target, org.apache.xerces.xni.XMLString data, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.
processingInstruction
in interface org.apache.xerces.xni.XMLDocumentHandler
processingInstruction
in interface org.apache.xerces.xni.XMLDTDHandler
processingInstruction
in class DefaultXMLDocumentHandler
target
- The target.data
- The data or null if none specified.augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void characters(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
characters
in interface org.apache.xerces.xni.XMLDocumentHandler
characters
in class DefaultXMLDocumentHandler
text
- The content.augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startElement
in interface org.apache.xerces.xni.XMLDocumentHandler
startElement
in class DefaultXMLDocumentHandler
element
- The name of the element.attributes
- The element attributes.augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void emptyElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
emptyElement
in interface org.apache.xerces.xni.XMLDocumentHandler
emptyElement
in class DefaultXMLDocumentHandler
element
- The name of the element.attributes
- The element attributes.augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void endElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
endElement
in interface org.apache.xerces.xni.XMLDocumentHandler
endElement
in class DefaultXMLDocumentHandler
element
- The name of the element.augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void ignorableWhitespace(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
ignorableWhitespace
in interface org.apache.xerces.xni.XMLDocumentHandler
ignorableWhitespace
in class DefaultXMLDocumentHandler
text
- The ignorable whitespace.augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void startCDATA(org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startCDATA
in interface org.apache.xerces.xni.XMLDocumentHandler
startCDATA
in class DefaultXMLDocumentHandler
augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void endCDATA(org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
endCDATA
in interface org.apache.xerces.xni.XMLDocumentHandler
endCDATA
in class DefaultXMLDocumentHandler
augs
- Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public org.w3c.dom.Document getDocument()
public void setFeature(java.lang.String featureId, boolean state)
featureId
- state
- public boolean getFeature(java.lang.String featureId)
featureId
- public void setProperty(java.lang.String propertyId, java.lang.Object value)
propertyId
- value
- public java.lang.Object getProperty(java.lang.String propertyId)
propertyId
- public void setEntityResolver(org.apache.xerces.xni.parser.XMLEntityResolver er)
er
- XMLEntityResolverpublic void parse(org.apache.xerces.xni.parser.XMLInputSource inputSource) throws java.io.IOException
inputSource
- java.io.IOException
public void reset()
public void resetNodePool()
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.