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

SDPField

public abstract class SDPField extends SDPObject
Placeholder root class for SDP headers.
version
JAIN-SIP-1.1 This code is in the public domain.

Fields Summary
protected String
fieldName
Session Description Protocol field.
Constructors Summary
protected SDPField(String hname)
Constructs a field with initial name.

param
hname the field hname

	fieldName = hname;
    
public SDPField()
Default constructor.

Methods Summary
public abstract java.lang.Stringencode()
Gets an encoded string representation of the instance.

return
encoded string of object contents

public java.lang.StringgetFieldName()
Gets the field name.

return
the field name

	return fieldName;
    
public chargetTypeChar()
Returns the type character for the field.

return
the type character for the field.

	if (fieldName == null)
	    return '\0";
	else return fieldName.charAt(0);
    
public java.lang.StringtoString()
Gets a user friendly textual represntation of the object contents.

return
encoded string of object contents.

 return this.encode();