public abstract class AbstractParseState
extends java.lang.Object
XMLParserHandler class. Derived
classes create parse states based on this class.ParseState,
AnyElementState| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.String |
context
SAX context string.
|
protected java.lang.String |
elementName
The name of the element being parsed.
|
protected java.lang.StringBuffer |
text
Accumulates any text that appears within the element tags.
|
| 构造器和说明 |
|---|
AbstractParseState() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
end()
Called when the element for this state is ending.
|
void |
endElement(AbstractParseState state)
Called when a child element is ending.
|
protected java.lang.String |
getAttrib(org.xml.sax.Attributes attrs,
java.lang.String attrName)
Parse a string value.
|
abstract XMLParserHandler |
getHandler()
Returns the parser handler.
|
AbstractParseState |
jumpTo()
Jumps to the specified state that the current state needs to go.
|
void |
parseAttrs(org.xml.sax.Attributes attrs)
Called to parse attributes.
|
void |
setElementName(java.lang.String name)
Sets the element name.
|
AbstractParseState |
startElement(java.lang.String tagName)
Start a new tag.
|
protected java.lang.String context
protected java.lang.String elementName
protected java.lang.StringBuffer text
public void setElementName(java.lang.String name)
name - the name of the element.public AbstractParseState jumpTo()
public void parseAttrs(org.xml.sax.Attributes attrs)
throws XMLParserException
attrs - the SAX attributes objectXMLParserException - if any parse exceptionDefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)public AbstractParseState startElement(java.lang.String tagName)
tagName - the name of the starting elementDefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)public abstract XMLParserHandler getHandler()
public void endElement(AbstractParseState state)
state - the child state that is endingpublic void end()
throws org.xml.sax.SAXException
org.xml.sax.SAXException - if the SAX exception is encountered.DefaultHandler.endElement(java.lang.String, java.lang.String, java.lang.String)protected java.lang.String getAttrib(org.xml.sax.Attributes attrs,
java.lang.String attrName)
attrs - the SAX attributes objectattrName - the name of the attribute to parseCopyright © 2008 Actuate Corp. All rights reserved.