|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.core.framework.parser.AbstractParseState
public abstract class AbstractParseState
Abstract parse state for the XMLParserHandler class. Derived
classes create parse states based on this class.
ParseState,
AnyElementState| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
AbstractParseState()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String context
protected java.lang.String elementName
protected java.lang.StringBuffer text
| Constructor Detail |
|---|
public AbstractParseState()
| Method Detail |
|---|
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 object
XMLParserException - 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 element
DefaultHandler.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 ending
public 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 parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||