org.testng.reporters
Class XMLUtils

java.lang.Object  extended by org.testng.reporters.XMLUtils

public final class XMLUtils
extends Object

Static helpers for XML.

Author:
Cedric Beust Jul 21, 2003


Method Summary
static voidappendAttributes(StringBuffer result, Properties attributes)
          Appends the attributes to result.
static Stringescape(String input)
           
static StringextractComment(String tag, Properties properties)
           
static Stringxml(String indent, String elementName, String content, Properties attributes)
           
static voidxmlClose(StringBuffer result, String indent, String tag, String comment)
           
static voidxmlOpen(StringBuffer result, String indent, String tag, Properties attributes)
           
static voidxmlOpen(StringBuffer result, String indent, String tag, Properties attributes, boolean noNewLine)
           
static voidxmlOptional(StringBuffer result, String sp, String elementName, Boolean value, Properties attributes)
           
static voidxmlOptional(StringBuffer result, String sp, String elementName, String value, Properties attributes)
           
static voidxmlRequired(StringBuffer result, String sp, String elementName, String value, Properties attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

xml

public static String xml(String indent,                         String elementName,                         String content,                         Properties attributes)

extractComment

public static String extractComment(String tag,                                    Properties properties)

xmlOptional

public static void xmlOptional(StringBuffer result,                               String sp,                               String elementName,                               Boolean value,                               Properties attributes)

xmlOptional

public static void xmlOptional(StringBuffer result,                               String sp,                               String elementName,                               String value,                               Properties attributes)

xmlRequired

public static void xmlRequired(StringBuffer result,                               String sp,                               String elementName,                               String value,                               Properties attributes)

xmlOpen

public static void xmlOpen(StringBuffer result,                           String indent,                           String tag,                           Properties attributes)

appendAttributes

public static void appendAttributes(StringBuffer result,                                    Properties attributes)
Appends the attributes to result. The attributes are added on a single line as: key1="value1" key2="value2" ... (a space is added before the first key)

Parameters:
result - the buffer to append attributes to.
attributes - the attributes to append (may be null).

xmlOpen

public static void xmlOpen(StringBuffer result,                           String indent,                           String tag,                           Properties attributes,                           boolean noNewLine)

xmlClose

public static void xmlClose(StringBuffer result,                            String indent,                            String tag,                            String comment)

escape

public static String escape(String input)


Copyright © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14