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

InformationField

public class InformationField extends SDPField
Information field implementation
version
JSR141-PUBLIC-REVIEW (subject to change)

Fields Summary
protected String
information
Additional textual description.
Constructors Summary
public InformationField()
Default constructor.

	super(INFORMATION_FIELD);
    
Methods Summary
public java.lang.Objectclone()
Copies the current instance.

return
the copy of this object

	InformationField retval = new InformationField();
	retval.information = this.information;
	return retval;
    
public java.lang.Stringencode()
Gets the string encoded version of this object.

return
the encode string of object contents
since
v1.0

	return INFORMATION_FIELD + information + Separators.NEWLINE;
    
public java.lang.StringgetInformation()
Gets the information field.

return
the information member

	return information;
    
public java.lang.StringgetValue()
Returns the information value.

throws
SdpParseException if a parsing error occurs
return
the value

	return information;
    
public voidsetInformation(java.lang.String info)
Sets the extra descriptive information.

param
info the new descriptive text

	information = info;
    
public voidsetValue(java.lang.String value)
Sets the value.

param
value to set
throws
SdpException if the value is null

	if (value == null)
	    throw new SdpException("The value is null");
	else {
	    setInformation(value);
	}