|
XML for Java 2.0.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.framework.XMLParser | +--com.ibm.xml.parsers.NonValidatingTXDOMParser
Field Summary | |
static boolean |
DEBUG
|
protected Node |
fCurrentNode
|
protected Node |
fCurrentParent
|
protected com.ibm.xml.parser.TXDocument |
fDocument
|
protected java.lang.String |
fDocumentClass
|
protected com.ibm.xml.parser.DTD |
fDocumentType
|
protected com.ibm.xml.parser.EntityPool |
fEntityPool
|
protected boolean |
fExpandEntityReferences
|
protected java.util.Stack |
fNodeStack
|
protected boolean |
fNormalizeTextNodes
|
protected int |
fRootElementName
|
protected boolean |
fWithinElement
|
Fields inherited from class com.ibm.xml.framework.XMLParser |
fLocale,
fNeedReset,
fParseInProgress,
fResourceBundle,
fScanner |
Constructor Summary | |
NonValidatingTXDOMParser()
|
Method Summary | |
void |
attlistDecl(int elementIndex,
int attDefIndex)
This function builds a TX-style AttList and AttDef and add as child to the DTD. |
protected com.ibm.xml.parser.CMNode |
buildCMNode(int elementIndex,
int contentSpecIndex)
This function builds the TX-style CMNodes for an ElementDecl and returns the top level com.ibm.xml.parser.CMNode. |
void |
characters(char[] ch,
int start,
int length,
boolean cdataSection)
Not called. |
void |
characters(int dataIndex,
boolean cdataSection)
|
protected void |
checkHandlers()
|
void |
comment(int dataIndex)
|
void |
doctypeDecl(int rootElementNameIndex)
This function will be called when a <!DOCTYPE...> declaration is encountered. |
void |
elementDecl(int elementIndex)
Build the TX-style CMNodes and ElementDecl and attatch to the fDocumentType (DTD) |
void |
endDocument()
|
void |
endElement(int elementNameIndex)
|
void |
endEntityReference(int entityIndex)
|
void |
endExternalSubset()
This function will be called at the end of the "external subset" of a doctype declaration. |
void |
endInternalSubset()
This function will be called at the end of the "internal subset" of a doctype declaration. |
void |
externalEntityDecl(int entityIndex)
Append an external EntityDecl as a Child to the DTD. |
Document |
getDocument()
|
boolean |
getExpandEntityReferences()
Return a boolean which says whether EntityReference Nodes are expanded (replaced) by this parser. |
void |
ignorableWhitespace(char[] ch,
int start,
int length,
boolean cdataSection)
Not called. |
void |
ignorableWhitespace(int dataIndex,
boolean cdataSection)
|
protected void |
init()
|
void |
internalEntityDecl(int entityIndex)
Append an internal EntityDecl as a Child to the DTD. |
void |
notationDecl(int notationIndex)
Append an TXNotation as a Child to the DTD. |
void |
parameterEntityDecl(int entityIndex)
workaround for TX: getParameterEntityEnumeration() |
void |
processingInstruction(int targetIndex,
int dataIndex)
|
void |
reset()
|
protected void |
resetOrCopy()
|
void |
setDocumentClass(java.lang.String documentClass)
|
void |
setExpandEntityReferences(boolean expand)
Sets whether EntityReference Nodes are expanded (replaced) by this parser. |
void |
setNormalizeTextNodes(boolean normalize)
|
void |
startDocument(int versionIndex,
int encodingIndex,
int standAloneIndex)
|
void |
startElement(int elementNameIndex,
int attrListIndex)
|
void |
startEntityReference(int entityIndex)
|
void |
startExternalSubset(int publicIdStringIndex,
int systemIdStringIndex)
This function will be called at the start of the "external subset" of a doctype declaration. |
void |
startInternalSubset()
This function will be called at the start of the "internal subset" of a doctype declaration. |
void |
unparsedEntityDecl(int entityIndex)
Append an unparsed external EntityDecl as a Child to the DTD. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final boolean DEBUG
protected java.lang.String fDocumentClass
protected int fRootElementName
protected com.ibm.xml.parser.TXDocument fDocument
protected com.ibm.xml.parser.DTD fDocumentType
protected com.ibm.xml.parser.EntityPool fEntityPool
protected Node fCurrentParent
protected Node fCurrentNode
protected java.util.Stack fNodeStack
protected boolean fWithinElement
protected boolean fNormalizeTextNodes
protected boolean fExpandEntityReferences
Constructor Detail |
public NonValidatingTXDOMParser()
Method Detail |
public void reset()
protected void resetOrCopy()
protected void init()
protected void checkHandlers() throws java.lang.Exception
public void setNormalizeTextNodes(boolean normalize)
public void setExpandEntityReferences(boolean expand)
The default value is false, EntityReference Nodes are kept.
keep
- =true
means expanding entity references;
=false
means maintain entity references.EntityReference
,
GeneralReference
public boolean getExpandEntityReferences()
The default value is false, EntityReference Nodes are kept.
keep
- =true
means expanding entity references;
=false
means maintain entity references.EntityReference
,
GeneralReference
public void doctypeDecl(int rootElementNameIndex) throws java.lang.Exception
public void startInternalSubset() throws java.lang.Exception
public void endInternalSubset() throws java.lang.Exception
public void startExternalSubset(int publicIdStringIndex, int systemIdStringIndex) throws java.lang.Exception
public void endExternalSubset() throws java.lang.Exception
public void elementDecl(int elementIndex) throws java.lang.Exception
protected com.ibm.xml.parser.CMNode buildCMNode(int elementIndex, int contentSpecIndex)
public void attlistDecl(int elementIndex, int attDefIndex) throws java.lang.Exception
public void internalEntityDecl(int entityIndex) throws java.lang.Exception
public void externalEntityDecl(int entityIndex) throws java.lang.Exception
public void unparsedEntityDecl(int entityIndex) throws java.lang.Exception
public void parameterEntityDecl(int entityIndex)
public void notationDecl(int notationIndex) throws java.lang.Exception
public void setDocumentClass(java.lang.String documentClass)
public Document getDocument()
public void startDocument(int versionIndex, int encodingIndex, int standAloneIndex) throws java.lang.Exception
public void endDocument() throws java.lang.Exception
public void startElement(int elementNameIndex, int attrListIndex) throws java.lang.Exception
public void endElement(int elementNameIndex) throws java.lang.Exception
public void startEntityReference(int entityIndex) throws java.lang.Exception
public void endEntityReference(int entityIndex) throws java.lang.Exception
public void characters(int dataIndex, boolean cdataSection) throws java.lang.Exception
public void ignorableWhitespace(int dataIndex, boolean cdataSection) throws java.lang.Exception
public void processingInstruction(int targetIndex, int dataIndex) throws java.lang.Exception
public void comment(int dataIndex) throws java.lang.Exception
public void characters(char[] ch, int start, int length, boolean cdataSection) throws java.lang.Exception
public void ignorableWhitespace(char[] ch, int start, int length, boolean cdataSection) throws java.lang.Exception
|
XML for Java 2.0.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |