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

gov.nist.javax.sdp.fields
Class SDPObjectList

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.sdp.fields.SDPObjectList
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 SDPObjectList
extends gov.nist.core.GenericObjectList

See Also:
Serialized Form

Constructor Summary
SDPObjectList()
           
SDPObjectList(String lname)
           
SDPObjectList(String lname, String classname)
          Get the input text of the sdp object (from which the object was generated).
 
Method Summary
 void add(SDPObject s)
          Add an sdp object to this list.
 String encode()
          Encode the list in semicolon separated form.
 gov.nist.core.GenericObject first()
          This is the default list iterator.This will not handle nested list traversal.
 void mergeObjects(gov.nist.core.GenericObjectList mergeList)
          Do a merge of the GenericObjects contained in this list with the GenericObjects in the mergeList.
 gov.nist.core.GenericObject next()
          Fetch the next object from the list based on the default list iterator
 String toString()
          Alias for the encode function above.
 
Methods inherited from class gov.nist.core.GenericObjectList
addFirst, clone, debugDump, debugDump, equals, isMySubclass, match, setMyClass, 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

SDPObjectList

public SDPObjectList(String lname,
                     String classname)
Get the input text of the sdp object (from which the object was generated).


SDPObjectList

public SDPObjectList()

SDPObjectList

public SDPObjectList(String lname)
Method Detail

mergeObjects

public void mergeObjects(gov.nist.core.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.

Overrides:
mergeObjects in class gov.nist.core.GenericObjectList
Parameters:
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.

add

public void add(SDPObject s)
Add an sdp object to this list.


first

public gov.nist.core.GenericObject first()
Description copied from class: gov.nist.core.GenericObjectList
This is the default list iterator.This will not handle nested list traversal.

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

next

public gov.nist.core.GenericObject next()
Description copied from class: gov.nist.core.GenericObjectList
Fetch the next object from the list based on the default list iterator

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

encode

public String encode()
Description copied from class: gov.nist.core.GenericObjectList
Encode the list in semicolon separated form.

Overrides:
encode in class gov.nist.core.GenericObjectList
Returns:
an encoded string containing the objects in this list.

toString

public String toString()
Description copied from class: gov.nist.core.GenericObjectList
Alias for the encode function above.

Overrides:
toString in class gov.nist.core.GenericObjectList

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.