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

TypedTime

public class TypedTime extends SDPObject
Typed time.

Fields Summary
protected String
unit
Units of time.
protected int
time
Value of time.
Constructors Summary
Methods Summary
public java.lang.Objectclone()
Copies the current instance.

return
the copy of this object

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

return
encoded string of object contents
since
v1.0

	String retval = "";
	retval += new Integer(time).toString();
	if (unit != null) retval += unit;
	return retval;
    
public intgetTime()
Gets the value of time.

return
the time value

	return time;
    
public java.lang.StringgetUnit()
Gets the units of time.

return
the lable for time units

	return unit;
    
public voidsetTime(int t)
Sets the time value.

param
t the new time value.

	time = t;
    
public voidsetUnit(java.lang.String u)
Sets the unit of time label.

param
u the new units label

	unit = u;