|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.in.TextAppender
Collects all the text for a TargetPath.
/foo returns all text in foo, including text in sub elements, and concatenates it/foo/text() returns all text in foo, excluding sub elements, and concatenates it/foo/text()[x] returns text node at position x in foo/foo/text()[last()] works because last() always returns truerb:xml(/foo) recreates the XML of the foo element
| Constructor Summary | |
TextAppender(TextInfo pTextInfo,
PartContext pPartContext,
com.ricebridge.xmlman.tp.Context pContext)
Create a new TextAppender object, with specified text collection type in TextInfo. |
|
| Method Summary | |
void |
append(String pText,
DocContext pDocContext)
Append the specified text. |
void |
appendEnd(NameInfo pNameInfo)
Append end element XML. |
boolean |
appendsAll()
Appends all text received by SaxHandler. |
void |
appendStart(NameInfo pNameInfo,
Map pAttrMap)
Append start element XML. |
void |
finish()
Finish appending. |
int |
getInstanceNum()
Get the instance number of this object, for debugging. |
String |
getText()
Get the text collected so far. |
String |
toString()
Debugging description. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TextAppender(TextInfo pTextInfo,
PartContext pPartContext,
com.ricebridge.xmlman.tp.Context pContext)
TextAppender object, with specified text collection type in TextInfo.
| Method Detail |
public boolean appendsAll()
SaxHandler.
public void append(String pText,
DocContext pDocContext)
public void appendStart(NameInfo pNameInfo,
Map pAttrMap)
public void appendEnd(NameInfo pNameInfo)
public void finish()
public String getText()
public String toString()
public int getInstanceNum()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||