|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.wcm.common.xml.XMLStringBuilder
public class XMLStringBuilder
Helper class for building XML documents from string buffer objects
Constructor Summary | |
---|---|
XMLStringBuilder() |
Method Summary | |
---|---|
static void |
addAttribute(java.lang.String name, java.lang.String value, java.lang.StringBuffer sb, boolean finishTag) Add an XML node attribute |
static void |
addCDataSection(java.lang.String cdata, java.lang.StringBuffer sb) Add a CDATA section with the given content |
static void |
addTextNode(java.lang.String name, java.lang.String text, boolean isCData, java.lang.StringBuffer sb) Add a text node with the given text value |
static void |
closeCDataSection(java.lang.StringBuffer sb) Close the CDATA section |
static void |
closeTag(java.lang.String name, java.lang.StringBuffer sb) Close an element tag |
static void |
openCDataSection(java.lang.StringBuffer sb) Open the CDATA section |
static void |
openCloseTag(java.lang.String name, java.lang.StringBuffer sb) Draw an empty tag |
static void |
openTag(java.lang.String name, java.lang.StringBuffer sb, boolean keepOpenForAttrs) Draw an element tag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLStringBuilder()
Method Detail |
---|
public static void openCDataSection(java.lang.StringBuffer sb)
sb
- the XML bufferpublic static void closeCDataSection(java.lang.StringBuffer sb)
sb
- the XML Bufferpublic static void addCDataSection(java.lang.String cdata, java.lang.StringBuffer sb)
cdata
- the CDATA contentsb
- the XML Bufferpublic static void addTextNode(java.lang.String name, java.lang.String text, boolean isCData, java.lang.StringBuffer sb)
name
- the name of the nodetext
- the text for the nodeisCData
- if true, the text is wrapped in a CDATA sectionsb
- the XML bufferpublic static void addAttribute(java.lang.String name, java.lang.String value, java.lang.StringBuffer sb, boolean finishTag)
name
- the attribute namevalue
- the attribute valuesb
- the XML bufferfinishTag
- if true the tag is closed, false to leave openpublic static void openCloseTag(java.lang.String name, java.lang.StringBuffer sb)
name
- the tag namesb
- the XML bufferpublic static void openTag(java.lang.String name, java.lang.StringBuffer sb, boolean keepOpenForAttrs)
name
- the element namesb
- the XML bufferkeepOpenForAttrs
- if true, the element will be left open for attributespublic static void closeTag(java.lang.String name, java.lang.StringBuffer sb)
name
- the element namesb
- the XML buffer
|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |