|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.framework.XMLParser | +--weblogic.apache.xerces.parsers.SAXParser
SAXParser provides a parser which implements the SAX1 and SAX2 parser APIs.
Fields inherited from class weblogic.apache.xerces.framework.XMLParser |
fEntityHandler,
fErrorReporter,
fGrammarResolver,
fParseInProgress,
fScanner,
fStringPool,
fValidator,
SAX2_FEATURES_PREFIX,
SAX2_PROPERTIES_PREFIX,
XERCES_FEATURES_PREFIX,
XERCES_PROPERTIES_PREFIX |
Constructor Summary | |
|
SAXParser()
Default constructor. |
protected |
SAXParser(StringPool stringPool)
|
Method Summary | |
void |
attlistDecl(QName elementDecl,
QName attributeDecl,
int attType,
boolean attList,
java.lang.String enumString,
int attDefaultType,
int attDefaultValue)
Report an attribute type declaration. |
void |
characters(char[] ch,
int start,
int length)
Characters. |
void |
characters(int dataIndex)
Not called. |
void |
comment(int dataIndex)
Comment. |
void |
elementDecl(QName elementDecl,
int contentSpecType,
int contentSpecIndex,
XMLContentSpec.Provider contentSpecProvider)
Report an element type declaration. |
void |
endCDATA()
End CDATA section. |
void |
endDocument()
End document. |
void |
endDTD()
This function will be called at the end of the DTD. |
void |
endElement(QName element)
End element. |
void |
endEntityReference(int entityName,
int entityType,
int entityContext)
End entity reference. |
void |
endNamespaceDeclScope(int prefix)
Report the end of the scope of a namespace declaration. |
void |
externalEntityDecl(int entityName,
int publicId,
int systemId)
Report a parsed external general entity declaration. |
void |
externalPEDecl(int entityName,
int publicId,
int systemId)
Report a parsed external parameter entity declaration. |
org.xml.sax.ContentHandler |
getContentHandler()
Return the current content handler. |
protected org.xml.sax.ext.DeclHandler |
getDeclHandler()
Returns the DTD declaration event handler. |
org.xml.sax.DTDHandler |
getDTDHandler()
Return the current DTD handler. |
boolean |
getFeature(java.lang.String featureId)
Query the state of a feature. |
java.lang.String[] |
getFeaturesRecognized()
Returns a list of features that this parser recognizes. |
protected org.xml.sax.ext.LexicalHandler |
getLexicalHandler()
Returns the lexical handler. |
protected boolean |
getNamespacePrefixes()
Returns the http://xml.org/features/namespace-prefixes value. |
java.lang.String[] |
getPropertiesRecognized()
Returns a list of properties that this parser recognizes. |
java.lang.Object |
getProperty(java.lang.String propertyId)
Query the value of a property. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Ignorable whitespace. |
void |
ignorableWhitespace(int dataIndex)
Not called. |
void |
internalEntityDecl(int entityName,
int entityValue)
Report an internal general entity declaration. |
void |
internalPEDecl(int entityName,
int entityValue)
Report an internal parameter entity declaration. |
void |
internalSubset(int internalSubset)
New callback from DOM Level 2. |
void |
notationDecl(int notationName,
int publicId,
int systemId)
Receive notification of a notation declaration event. |
void |
processingInstruction(int piTarget,
int piData)
Processing instruction. |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Allow an application to register a content event handler. |
protected void |
setDeclHandler(org.xml.sax.ext.DeclHandler handler)
Set the DTD declaration event handler. |
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets the document handler. |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
Allow an application to register a DTD event handler. |
void |
setFeature(java.lang.String featureId,
boolean state)
Set the state of any feature in a SAX2 parser. |
protected void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
Set the lexical event handler. |
protected void |
setNamespacePrefixes(boolean process)
Sets how the parser reports raw prefixed names, and whether xmlns attributes are reported. |
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
Set the value of any property in a SAX2 parser. |
void |
startCDATA()
Start CDATA section. |
void |
startDocument()
Start document. |
void |
startDTD(QName rootElement,
int publicId,
int systemId)
This function will be called when a <!DOCTYPE...> declaration is encountered. |
void |
startElement(QName element,
XMLAttrList attrList,
int attrListIndex)
Start element |
void |
startEntityReference(int entityName,
int entityType,
int entityContext)
Start entity reference. |
void |
startNamespaceDeclScope(int prefix,
int uri)
Report the start of the scope of a namespace declaration. |
void |
textDecl(int versionIndex,
int encodingIndex)
Text declaration. |
void |
unparsedEntityDecl(int entityName,
int publicId,
int systemId,
int notationName)
Receive notification of an unparsed entity declaration event. |
void |
xmlDecl(int versionIndex,
int encodingIndex,
int standaloneIndex)
XML declaration. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SAXParser()
protected SAXParser(StringPool stringPool)
Method Detail |
public java.lang.String[] getFeaturesRecognized()
XMLParser.isFeatureRecognized(java.lang.String)
,
setFeature(java.lang.String, boolean)
,
getFeature(java.lang.String)
public java.lang.String[] getPropertiesRecognized()
XMLParser.isPropertyRecognized(java.lang.String)
,
setProperty(java.lang.String, java.lang.Object)
,
getProperty(java.lang.String)
protected void setDeclHandler(org.xml.sax.ext.DeclHandler handler) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
This method is the equivalent to the property:
http://xml.org/sax/properties/declaration-handler
handler
- The new handler.getDeclHandler()
,
setProperty(java.lang.String, java.lang.Object)
protected org.xml.sax.ext.DeclHandler getDeclHandler() throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setDeclHandler(org.xml.sax.ext.DeclHandler)
protected void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
This method is the equivalent to the property:
http://xml.org/sax/properties/lexical-handler
handler
- lexical event handlergetLexicalHandler()
,
setProperty(java.lang.String, java.lang.Object)
protected org.xml.sax.ext.LexicalHandler getLexicalHandler() throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setLexicalHandler(org.xml.sax.ext.LexicalHandler)
public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
public void setDTDHandler(org.xml.sax.DTDHandler handler)
If the application does not register a DTD handler, all DTD events reported by the SAX parser will be silently ignored.
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.
handler
- The DTD handler.getDTDHandler()
public org.xml.sax.DTDHandler getDTDHandler()
setDTDHandler(org.xml.sax.DTDHandler)
protected void setNamespacePrefixes(boolean process) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
This method is the equivalent to the feature:
http://xml.org/sax/features/namespaces-prefixes
process
- True to process namespaces; false to not process.XMLParser.getNamespaces()
,
setFeature(java.lang.String, boolean)
protected boolean getNamespacePrefixes() throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setNamespacePrefixes(boolean)
public void setFeature(java.lang.String featureId, boolean state) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
featureId
- The unique identifier (URI) of the feature.state
- The requested state of the feature (true or false).public boolean getFeature(java.lang.String featureId) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
featureId
- The unique identifier (URI) of the feature
being set.public void setProperty(java.lang.String propertyId, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
propertyId
- The unique identifier (URI) of the property
being set.Object
- The value to which the property is being set.public java.lang.Object getProperty(java.lang.String propertyId) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
propertyId
- The unique identifier (URI) of the property
being set.public void setContentHandler(org.xml.sax.ContentHandler handler)
If the application does not register a content handler, all content events reported by the SAX parser will be silently ignored.
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.
handler
- The content handler.getContentHandler()
public org.xml.sax.ContentHandler getContentHandler()
setContentHandler(org.xml.sax.ContentHandler)
public void startDTD(QName rootElement, int publicId, int systemId) throws java.lang.Exception
public void endDTD() throws java.lang.Exception
public void elementDecl(QName elementDecl, int contentSpecType, int contentSpecIndex, XMLContentSpec.Provider contentSpecProvider) throws java.lang.Exception
name
- The element type name.model
- The content model as a normalized string.public void attlistDecl(QName elementDecl, QName attributeDecl, int attType, boolean attList, java.lang.String enumString, int attDefaultType, int attDefaultValue) throws java.lang.Exception
eName
- The name of the associated element.aName
- The name of the attribute.type
- A string representing the attribute type.valueDefault
- A string representing the attribute default
("#IMPLIED", "#REQUIRED", or "#FIXED") or null if
none of these applies.value
- A string representing the attribute's default value,
or null if there is none.public void internalPEDecl(int entityName, int entityValue) throws java.lang.Exception
public void externalPEDecl(int entityName, int publicId, int systemId) throws java.lang.Exception
public void internalEntityDecl(int entityName, int entityValue) throws java.lang.Exception
public void externalEntityDecl(int entityName, int publicId, int systemId) throws java.lang.Exception
public void unparsedEntityDecl(int entityName, int publicId, int systemId, int notationName) throws java.lang.Exception
public void notationDecl(int notationName, int publicId, int systemId) throws java.lang.Exception
public void startDocument() throws java.lang.Exception
public void endDocument() throws java.lang.Exception
public void xmlDecl(int versionIndex, int encodingIndex, int standaloneIndex) throws java.lang.Exception
public void textDecl(int versionIndex, int encodingIndex) throws java.lang.Exception
public void startNamespaceDeclScope(int prefix, int uri) throws java.lang.Exception
public void endNamespaceDeclScope(int prefix) throws java.lang.Exception
public void internalSubset(int internalSubset)
public void startElement(QName element, XMLAttrList attrList, int attrListIndex) throws java.lang.Exception
public void endElement(QName element) throws java.lang.Exception
public void startEntityReference(int entityName, int entityType, int entityContext) throws java.lang.Exception
public void endEntityReference(int entityName, int entityType, int entityContext) throws java.lang.Exception
public void startCDATA() throws java.lang.Exception
public void endCDATA() throws java.lang.Exception
public void characters(int dataIndex) throws java.lang.Exception
public void ignorableWhitespace(int dataIndex) throws java.lang.Exception
public void processingInstruction(int piTarget, int piData) throws java.lang.Exception
public void comment(int dataIndex) throws java.lang.Exception
public void characters(char[] ch, int start, int length) throws java.lang.Exception
public void ignorableWhitespace(char[] ch, int start, int length) throws java.lang.Exception
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |