FileDocCategorySizeDatePackage
SDPObjectList.javaAPI DocphoneME MR2 API (J2ME)2412Wed May 02 18:00:42 BST 2007gov.nist.javax.sdp.fields

SDPObjectList

public class SDPObjectList extends Vector
Base list interface for SDP objects.

Fields Summary
Constructors Summary
public SDPObjectList()
Gets the input text of the sdp object (from which the object was generated).

	super();
    
Methods Summary
public voidadd(java.lang.Object s)
Adds an sdp object to this list.

param
s new object for the list

 
	this.addElement(s);
    
public java.lang.Objectclone()
Copies the current instance.

return
the copy of this object

	SDPObjectList retval = new SDPObjectList();
	for (int i = 0; i < this.size(); i++) {
	    Object obj = 
		((SDPObject) this.elementAt(i)).clone();
	    retval.addElement(obj);
	}
	return retval;
    
public java.lang.Stringencode()
Encodes list a single text string.

return
encoded string of object contents

	StringBuffer retval = new StringBuffer();
	SDPObject sdpObject;
	for (int i = 0; i < this.size(); i++) {
	    sdpObject = (SDPObject) this.elementAt(i);
	    retval.append(sdpObject.encode());
	}
	return retval.toString();
    
public java.lang.StringtoString()
Encodes list as single text string.

return
encode string of object contents

	return this.encode();