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

ZoneAdjustment

public class ZoneAdjustment extends SDPObject
Zone adjustment class.
version
JAIN-SIP-1.1 This code is in the public domain.

Fields Summary
protected long
time
The time value.
protected String
sign
The sign of the time zone offset.
protected TypedTime
offset
The value of the time zone offset.
Constructors Summary
Methods Summary
public java.lang.Objectclone()
Copies the current instance.

return
the copy of this object

	ZoneAdjustment retval = new ZoneAdjustment();
	retval.sign = this.sign;
	retval.offset = (TypedTime) this.offset.clone();
	retval.time = this.time;
	return retval;
    
public java.lang.Stringencode()
Encodes this structure into canonical form.

return
encoded form of the header.

	String retval = new Long(time).toString();
	retval += Separators.SP;
	if (sign != null) retval += sign;
	retval += offset.encode();
	return retval;
    
public TypedTimegetOffset()
Gets the offset.

return
the time offset

	return offset;
    
public longgetTime()
Gets the time.

return
the time value

	return time;
    
public voidsetOffset(TypedTime off)
Sets the offset.

param
off typed time offset to set.

	offset = off;
    
public voidsetSign(java.lang.String s)
Sets the sign.

param
s sign for the offset.

	sign = s;
    
public voidsetTime(long t)
Sets the time.

param
t time to set.

	time = t;