NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.address
Class NetObjectList

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<gov.nist.core.GenericObject>
                  extended by gov.nist.core.GenericObjectList
                      extended by gov.nist.javax.sip.address.NetObjectList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<gov.nist.core.GenericObject>, Collection<gov.nist.core.GenericObject>, Deque<gov.nist.core.GenericObject>, List<gov.nist.core.GenericObject>, Queue<gov.nist.core.GenericObject>

public class NetObjectList
extends gov.nist.core.GenericObjectList

Root class for all the collection objects in this list: a wrapper class on the GenericObjectList class for lists of objects that can appear in NetObjects. IMPORTANT NOTE: NetObjectList cannot derive from NetObject as this will screw up the way in which we attach objects to headers.

Version:
1.2 $Revision: 1.8 $ $Date: 2009/07/17 18:57:22 $
Author:
M. Ranganathan
See Also:
Serialized Form

Constructor Summary
NetObjectList()
          Construct an empty NetObjectList.
NetObjectList(String lname)
          Construct a NetObject List given a list name.
NetObjectList(String lname, Class<?> cname)
          Construct a NetObject List given a list name and a class for the objects that go into the list.
 
Method Summary
 void add(NetObject obj)
          Add a new object to the list.
 void concatenate(NetObjectList net_obj_list)
          concatenate the two Lists
 String debugDump(int indent)
          Convert to a string given an indentation(for pretty printing).
 gov.nist.core.GenericObject first()
          returns the first element
 gov.nist.core.GenericObject next()
          returns the next element
 gov.nist.core.GenericObject next(ListIterator li)
          returns the next element
 void setMyClass(Class cl)
          set the class
 String toString()
          Encode this to a string.
 
Methods inherited from class gov.nist.core.GenericObjectList
addFirst, clone, debugDump, encode, equals, isMySubclass, match, mergeObjects, setSeparator
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addLast, clear, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
hashCode, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

NetObjectList

public NetObjectList(String lname)
Construct a NetObject List given a list name.

Parameters:
lname - String to set

NetObjectList

public NetObjectList(String lname,
                     Class<?> cname)
Construct a NetObject List given a list name and a class for the objects that go into the list.

Parameters:
lname - String to set
cname - Class to set

NetObjectList

public NetObjectList()
Construct an empty NetObjectList.

Method Detail

add

public void add(NetObject obj)
Add a new object to the list.

Parameters:
obj - NetObject to set

concatenate

public void concatenate(NetObjectList net_obj_list)
concatenate the two Lists

Parameters:
net_obj_list - NetObjectList to set

first

public gov.nist.core.GenericObject first()
returns the first element

Overrides:
first in class gov.nist.core.GenericObjectList
Returns:
GenericObject

next

public gov.nist.core.GenericObject next()
returns the next element

Overrides:
next in class gov.nist.core.GenericObjectList
Returns:
GenericObject

next

public gov.nist.core.GenericObject next(ListIterator li)
returns the next element

Overrides:
next in class gov.nist.core.GenericObjectList
Parameters:
li - ListIterator to set
Returns:
GenericObject

setMyClass

public void setMyClass(Class cl)
set the class

Overrides:
setMyClass in class gov.nist.core.GenericObjectList
Parameters:
cl - Class to set

debugDump

public String debugDump(int indent)
Convert to a string given an indentation(for pretty printing).

Overrides:
debugDump in class gov.nist.core.GenericObjectList
Parameters:
indent - int to set
Returns:
String

toString

public String toString()
Encode this to a string.

Overrides:
toString in class gov.nist.core.GenericObjectList
Returns:
a string representation for this object.

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.