org.objectweb.jonas.security.realm.lib
Class XML

java.lang.Object
  extended by org.objectweb.jonas.security.realm.lib.XML

public class XML
extends java.lang.Object

Useful class. Make xml representation for some objects used for the security

Author:
Florent Benoit

Method Summary
static void appendVectorToBuffer(java.lang.String name, java.lang.StringBuffer buffer, java.util.Vector vector)
          Append to the given buffer the hashtable elements with comma separated list
static void xmlHashtable(java.lang.StringBuffer buffer, java.util.Hashtable hashtable)
          Append to the given buffer the hashtable elements.
static void xmlHashtable(java.lang.StringBuffer buffer, java.util.Hashtable hashtable, java.lang.String indent)
          Append to the given buffer the hashtable elements.
static void xmlVector(java.lang.StringBuffer buffer, java.util.Vector vector)
          Append to the given buffer the hashtable elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

appendVectorToBuffer

public static void appendVectorToBuffer(java.lang.String name,
                                        java.lang.StringBuffer buffer,
                                        java.util.Vector vector)
Append to the given buffer the hashtable elements with comma separated list

Parameters:
name - name of the element
buffer - the buffer on which append the Hashtable
vector - the vector where are the elements

xmlVector

public static void xmlVector(java.lang.StringBuffer buffer,
                             java.util.Vector vector)
Append to the given buffer the hashtable elements.

Parameters:
buffer - the buffer on which append the Hashtable
vector - the vector where are the elements

xmlHashtable

public static void xmlHashtable(java.lang.StringBuffer buffer,
                                java.util.Hashtable hashtable)
Append to the given buffer the hashtable elements.

Parameters:
buffer - the buffer on which append the Hashtable
hashtable - the hashtable where are the elements

xmlHashtable

public static void xmlHashtable(java.lang.StringBuffer buffer,
                                java.util.Hashtable hashtable,
                                java.lang.String indent)
Append to the given buffer the hashtable elements.

Parameters:
buffer - the buffer on which append the Hashtable
hashtable - the hashtable where are the elements
indent - the indent to put before the lines