gov.nist.javax.sip.address
クラス NetObjectList

java.lang.Object
  上位を拡張 java.util.AbstractCollection
      上位を拡張 java.util.AbstractList
          上位を拡張 java.util.AbstractSequentialList
              上位を拡張 java.util.LinkedList
                  上位を拡張 gov.nist.core.GenericObjectList
                      上位を拡張 gov.nist.javax.sip.address.NetObjectList
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.Queue

public class NetObjectList
extends 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.

バージョン:
JAIN-SIP-1.1 $Revision: 1.2 $ $Date: 2004/01/22 13:26:28 $
作成者:
M. Ranganathan
This code is in the public domain.
関連項目:
直列化された形式

コンストラクタの概要
NetObjectList()
          Construct an empty NetObjectList.
NetObjectList(java.lang.String lname)
          Construct a NetObject List given a list name.
NetObjectList(java.lang.String lname, java.lang.Class cname)
          Construct a NetObject List given a list name and a class for the objects that go into the list.
NetObjectList(java.lang.String lname, java.lang.String cname)
          Construct a NetObject List given a list name and a class for the objects that go into the list.
 
メソッドの概要
 void add(NetObject obj)
          Add a new object to the list.
 java.lang.Object clone()
          Make a clone of this header list and return it.
 void concatenate(NetObjectList net_obj_list)
          concatenate the two Lists
 java.lang.String debugDump(int indent)
          Convert to a string given an indentation(for pretty printing).
 GenericObject first()
          returns the first element
 java.lang.Class getMyClass()
          Get the class for all objects in my list.
 void mergeObjects(GenericObjectList mergeList)
          Do a merge of the GenericObjects contained in this list with the GenericObjects in the mergeList.
 GenericObject next()
          returns the next element
 GenericObject next(java.util.ListIterator li)
          returns the next element
 void replace(java.lang.String objectText, GenericObject replacementObject, boolean matchSubstring)
          Do a recursive find and replace of objects.
 void replace(java.lang.String objectText, GenericObjectList replacementObject, boolean matchSubstring)
          Do a recursive find and replace of objects in this list.
 void setMyClass(java.lang.Class cl)
          set the class
 java.lang.String toString()
          Encode this to a string.
 
クラス gov.nist.core.GenericObjectList から継承されたメソッド
add, addFirst, debugDump, encode, equals, getIterator, isMySubclass, match, replace, replace, setSeparator
 
クラス java.util.LinkedList から継承されたメソッド
add, addAll, addAll, addLast, clear, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
クラス java.util.AbstractSequentialList から継承されたメソッド
iterator
 
クラス java.util.AbstractList から継承されたメソッド
hashCode, listIterator, subList
 
クラス java.util.AbstractCollection から継承されたメソッド
containsAll, isEmpty, removeAll, retainAll
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 
インタフェース java.util.List から継承されたメソッド
containsAll, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

コンストラクタの詳細

NetObjectList

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

パラメータ:
lname - String to set

NetObjectList

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

パラメータ:
lname - String to set
cname - Class to set

NetObjectList

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

パラメータ:
lname - String to set
cname - String to set

NetObjectList

public NetObjectList()
Construct an empty NetObjectList.

メソッドの詳細

add

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

パラメータ:
obj - NetObject to set

concatenate

public void concatenate(NetObjectList net_obj_list)
concatenate the two Lists

パラメータ:
net_obj_list - NetObjectList to set

clone

public java.lang.Object clone()
Make a clone of this header list and return it. For any object in the list (like SIPHeaders) that inherits from GenericObject or GenericObjectList, clone the object and add it to the returned List. For objects that do not, this just copies the reference over. WARNING.. NO CIRCULAR REFERENCES that are accessible are tolerated (will throw this method into an infinite loop). However, we dont (shouldnt) have such worries because the parser generates tree sturctures.

オーバーライド:
クラス GenericObjectList 内の clone
戻り値:
Object
導入されたバージョン:
1.0

mergeObjects

public void mergeObjects(GenericObjectList mergeList)
Do a merge of the GenericObjects contained in this list with the GenericObjects in the mergeList. Note that this does an inplace modification of the given list. This does an object by object merge of the given objects.

オーバーライド:
クラス GenericObjectList 内の mergeObjects
パラメータ:
mergeList - is the list of Generic objects that we want to do an object by object merge with. Note that no new objects are added to this list.

first

public GenericObject first()
returns the first element

戻り値:
GenericObject

getMyClass

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

オーバーライド:
クラス GenericObjectList 内の getMyClass
戻り値:
Class

next

public GenericObject next()
returns the next element

戻り値:
GenericObject

next

public GenericObject next(java.util.ListIterator li)
returns the next element

パラメータ:
li - ListIterator to set
戻り値:
GenericObject

replace

public void replace(java.lang.String objectText,
                    GenericObject replacementObject,
                    boolean matchSubstring)
             throws java.lang.IllegalArgumentException
Do a recursive find and replace of objects.

オーバーライド:
クラス GenericObjectList 内の replace
パラメータ:
objectText - text of the object to find.
replacementObject - object to replace the target with ( in case a target is found).
matchSubstring - boolean that indicates whether to flag a match when objectText is a substring of a candidate object's encoded text.
例外:
java.lang.IllegalArgumentException - on null args and if replacementObject does not derive from GenericObject or GenericObjectList

replace

public void replace(java.lang.String objectText,
                    GenericObjectList replacementObject,
                    boolean matchSubstring)
             throws java.lang.IllegalArgumentException
Do a recursive find and replace of objects in this list.

オーバーライド:
クラス GenericObjectList 内の replace
パラメータ:
objectText - text of the object to find.
replacementObject - object to replace the target with (in case a target is found).
matchSubstring - boolean that indicates whether to flag a match when objectText is a substring of a candidate object's encoded text.
例外:
java.lang.IllegalArgumentException - on null args and if replacementObject does not derive from GenericObject or GenericObjectList
導入されたバージョン:
v1.0

setMyClass

public void setMyClass(java.lang.Class cl)
set the class

オーバーライド:
クラス GenericObjectList 内の setMyClass
パラメータ:
cl - Class to set

debugDump

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

オーバーライド:
クラス GenericObjectList 内の debugDump
パラメータ:
indent - int to set
戻り値:
String

toString

public java.lang.String toString()
Encode this to a string.

オーバーライド:
クラス GenericObjectList 内の toString
戻り値:
a string representation for this object.