gov.nist.javax.sdp.fields
Class SDPObjectList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<gov.nist.core.GenericObject>
gov.nist.core.GenericObjectList
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
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 |
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)
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
A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.