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

gov.nist.javax.sip.address
Class NetObjectList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.AbstractSequentialList
              extended byjava.util.LinkedList
                  extended bygov.nist.core.GenericObjectList
                      extended bygov.nist.javax.sip.address.NetObjectList
All Implemented Interfaces:
Cloneable, Collection, List, Serializable

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.6 $ $Date: 2006/08/15 21:45:01 $
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.
NetObjectList(String lname, String 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
 Class getMyClass()
          Get the class for all objects in my list.
 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, addFirst, addLast, clear, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, 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
add, add, addAll, addAll, clear, contains, containsAll, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

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(String lname,
                     String 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 - String 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

Returns:
GenericObject

getMyClass

public Class getMyClass()
Get the class for all objects in my list.

Returns:
Class

next

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

Returns:
GenericObject

next

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

Parameters:
li - ListIterator to set
Returns:
GenericObject

setMyClass

public void setMyClass(Class cl)
set the class

Parameters:
cl - Class to set

debugDump

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

Parameters:
indent - int to set
Returns:
String

toString

public String toString()
Encode this to a string.

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.