|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.AbstractSequentialList
java.util.LinkedList
gov.nist.core.GenericObjectList
gov.nist.javax.sip.address.NetObjectList
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.
| 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. |
Object |
clone()
Make a clone of this header list and return it. |
void |
concatenate(NetObjectList net_obj_list)
concatenate the two Lists |
String |
debugDump(int indent)
Convert to a string given an indentation(for pretty printing). |
GenericObject |
first()
returns the first element |
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(ListIterator li)
returns the next element |
void |
replace(String objectText,
GenericObject replacementObject,
boolean matchSubstring)
Do a recursive find and replace of objects. |
void |
replace(String objectText,
GenericObjectList replacementObject,
boolean matchSubstring)
Do a recursive find and replace of objects in this list. |
void |
setMyClass(Class cl)
set the class |
String |
toString()
Encode this to a string. |
| Methods inherited from class gov.nist.core.GenericObjectList |
add, addFirst, debugDump, encode, equals, getIterator, isMySubclass, match, replace, replace, setSeparator |
| Methods inherited from class java.util.LinkedList |
add, addAll, addAll, 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 |
containsAll, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
public NetObjectList(String lname)
lname - String to set
public NetObjectList(String lname,
Class cname)
lname - String to setcname - Class to set
public NetObjectList(String lname,
String cname)
lname - String to setcname - String to setpublic NetObjectList()
| Method Detail |
public void add(NetObject obj)
obj - NetObject to setpublic void concatenate(NetObjectList net_obj_list)
net_obj_list - NetObjectList to setpublic Object clone()
clone in class GenericObjectListpublic void mergeObjects(GenericObjectList mergeList)
mergeObjects in class GenericObjectListmergeList - 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.public GenericObject first()
public Class getMyClass()
getMyClass in class GenericObjectListpublic GenericObject next()
public GenericObject next(ListIterator li)
li - ListIterator to set
public void replace(String objectText,
GenericObject replacementObject,
boolean matchSubstring)
throws IllegalArgumentException
replace in class GenericObjectListobjectText - 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.
IllegalArgumentException - on null args and if replacementObject
does not derive from GenericObject or GenericObjectList
public void replace(String objectText,
GenericObjectList replacementObject,
boolean matchSubstring)
throws IllegalArgumentException
replace in class GenericObjectListobjectText - 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.
IllegalArgumentException - on null args and if replacementObject
does not derive from GenericObject or GenericObjectListpublic void setMyClass(Class cl)
setMyClass in class GenericObjectListcl - Class to setpublic String debugDump(int indent)
debugDump in class GenericObjectListindent - int to set
public String toString()
toString in class GenericObjectList
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||