1.0.0

org.eclipse.soda.dk.units
Class Units

java.lang.Object
  extended by org.eclipse.soda.dk.units.Units
All Implemented Interfaces:
UnitsService

public class Units
extends java.lang.Object
implements UnitsService

The Units class implements the UnitsService interface.

Version:
1.0.0
See Also:
String, UnitsService

Constructor Summary
Units(java.lang.String key)
          Constructs an Units object using the input parameter(s).
 
Method Summary
 java.lang.String getKey()
          Gets the String key property value.
 java.lang.String getValueText(java.lang.Object value)
          Perform the getValueText method and return the String result.
protected  void setKey(java.lang.String key)
          Sets the key property.
 java.lang.String toString()
          Perform the toString method and return the String result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Units

public Units(java.lang.String key)
Constructs an Units object using the input parameter(s).

Parameters:
key - java.lang.String
Method Detail

getKey

public java.lang.String getKey()
Gets the String key property value.

Specified by:
getKey in interface UnitsService
Returns:
Results of the get key (String) value.
See Also:
UnitsService.getKey(), setKey(String)

getValueText

public java.lang.String getValueText(java.lang.Object value)
Perform the getValueText method and return the String result.

Specified by:
getValueText in interface UnitsService
Parameters:
value - java.lang.Object
Returns:
Results of the get value text (String) value.
See Also:
UnitsService.getValueText(Object)

setKey

protected void setKey(java.lang.String key)
Sets the key property.

Parameters:
key - The new property value (java.lang.String).
See Also:
getKey()

toString

public java.lang.String toString()
Perform the toString method and return the String result.

Overrides:
toString in class java.lang.Object
Returns:
Results of the to string (String) value.

1.0.0

Copyright (c) 1999, 2007 IBM