net.sf.xtvdclient.xtvd.datatypes
Class Duration

java.lang.Object
  extended by net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
      extended by net.sf.xtvdclient.xtvd.datatypes.Duration
All Implemented Interfaces:
java.lang.Comparable

public class Duration
extends AbstractDataType

A class that represents a duration datatype.


Field Summary
 
Fields inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
END_OF_LINE
 
Constructor Summary
Duration(java.lang.String duration)
          Construct a new instance of the class with the specified duration value.
 
Method Summary
 java.lang.String getHours()
          Returns hours.
 java.lang.String getMinutes()
          Returns minutes.
 int hashCode()
          Returns a hash code value for this class.
 void setHours(java.lang.String hours)
          Set hours.
 void setMinutes(java.lang.String minutes)
          Set minutes.
 java.lang.String toString()
          Over-ridden implementation.
 
Methods inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
compareTo, equals, replaceSpecialCharacters, replaceSpecialCharacters
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Duration

public Duration(java.lang.String duration)
Construct a new instance of the class with the specified duration value.

Parameters:
duration - The duration datatype representation.
Method Detail

toString

public java.lang.String toString()
Over-ridden implementation. Return the original duration datatype representation.

Overrides:
toString in class java.lang.Object
Returns:
String - The datatype representation of the value.

hashCode

public int hashCode()
Returns a hash code value for this class. Return a summation of the hash code values for the hours and minutes fields.

Overrides:
hashCode in class java.lang.Object
Returns:
int - A hash code value for the object.
Since:
ddclient version 1.3

getHours

public final java.lang.String getHours()
Returns hours.

Returns:
The value/reference of/to hours.

setHours

public final void setHours(java.lang.String hours)
Set hours.

Parameters:
hours - The value to set.

getMinutes

public final java.lang.String getMinutes()
Returns minutes.

Returns:
The value/reference of/to minutes.

setMinutes

public final void setMinutes(java.lang.String minutes)
Set minutes.

Parameters:
minutes - The value to set.