Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


oracle.stellent.wcm.common.xml
Class XMLStringBuilder

java.lang.Object
  extended by oracle.stellent.wcm.common.xml.XMLStringBuilder


public class XMLStringBuilder
extends java.lang.Object

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

XMLStringBuilder

public XMLStringBuilder()

Method Detail

openCDataSection

public static void openCDataSection(java.lang.StringBuffer sb)
Open the CDATA section
Parameters:
sb - the XML buffer

closeCDataSection

public static void closeCDataSection(java.lang.StringBuffer sb)
Close the CDATA section
Parameters:
sb - the XML Buffer

addCDataSection

public static void addCDataSection(java.lang.String cdata,
                                   java.lang.StringBuffer sb)
Add a CDATA section with the given content
Parameters:
cdata - the CDATA content
sb - the XML Buffer

addTextNode

public 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
Parameters:
name - the name of the node
text - the text for the node
isCData - if true, the text is wrapped in a CDATA section
sb - the XML buffer

addAttribute

public static void addAttribute(java.lang.String name,
                                java.lang.String value,
                                java.lang.StringBuffer sb,
                                boolean finishTag)
Add an XML node attribute
Parameters:
name - the attribute name
value - the attribute value
sb - the XML buffer
finishTag - if true the tag is closed, false to leave open

openCloseTag

public static void openCloseTag(java.lang.String name,
                                java.lang.StringBuffer sb)
Draw an empty tag
Parameters:
name - the tag name
sb - the XML buffer

openTag

public static void openTag(java.lang.String name,
                           java.lang.StringBuffer sb,
                           boolean keepOpenForAttrs)
Draw an element tag
Parameters:
name - the element name
sb - the XML buffer
keepOpenForAttrs - if true, the element will be left open for attributes

closeTag

public static void closeTag(java.lang.String name,
                            java.lang.StringBuffer sb)
Close an element tag
Parameters:
name - the element name
sb - the XML buffer

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.