org.objectweb.jonas_lib.deployment.xml
Class JLinkedList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList
                  extended by org.objectweb.jonas_lib.deployment.xml.JLinkedList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.Queue

public class JLinkedList
extends java.util.LinkedList

This class defines a linked list with the ability to display its content in XML.

Author:
Florent Benoit
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
JLinkedList(java.lang.String tag)
          Constructor with a specified tag
 
Method Summary
 java.lang.String toString()
          Return the representation of this element.
 java.lang.String toXML()
          Represents this element by it's XML description.
 java.lang.String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

JLinkedList

public JLinkedList(java.lang.String tag)
Constructor with a specified tag

Parameters:
tag - of the root element (use for xml representation)
Method Detail

toXML

public java.lang.String toXML()
Represents this element by it's XML description. Use a default indent set to 0.

Returns:
the XML description of this object.

toString

public java.lang.String toString()
Return the representation of this element. Use the XML representation of the object for the toString() method.

Overrides:
toString in class java.util.AbstractCollection
Returns:
the XML description of this object.

toXML

public java.lang.String toXML(int indent)
Represents this element by it's XML description.

Parameters:
indent - use this indent for prexifing XML representation.
Returns:
the XML description of this object.