junitx.ddtunit.resources
Class SimplePrimitiveVO

java.lang.Object
  extended by junitx.ddtunit.resources.SimplePrimitiveVO

public class SimplePrimitiveVO
extends Object

Example test resource representing a set of value objects usually used as transport medium between different architectural system layers.

Author:
jg

Constructor Summary
SimplePrimitiveVO()
          Default constructor.
SimplePrimitiveVO(String text)
           
SimplePrimitiveVO(String text, int intValue, double doubleValue)
           
 
Method Summary
 boolean equals(Object object)
          overwrite default equals() method
 double getDoubleValue()
           
 int getIntegerValue()
           
 String getStringValue()
           
 int hashCode()
          Overwrite default hashCode()
 void setDoubleValue(double doubleValue)
           
 void setIntegerValue(int integerValue)
           
 void setStringValue(String stringValue)
           
 String toString()
          Overwrite toString() method with instance specific information
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePrimitiveVO

public SimplePrimitiveVO()
Default constructor.


SimplePrimitiveVO

public SimplePrimitiveVO(String text)
Parameters:
text -

SimplePrimitiveVO

public SimplePrimitiveVO(String text,
                         int intValue,
                         double doubleValue)
Parameters:
text -
intValue -
doubleValue -
Method Detail

toString

public String toString()
Overwrite toString() method with instance specific information

Overrides:
toString in class Object

equals

public boolean equals(Object object)
overwrite default equals() method

Overrides:
equals in class Object

hashCode

public int hashCode()
Overwrite default hashCode()

Overrides:
hashCode in class Object

getDoubleValue

public double getDoubleValue()
Returns:
Returns the doubleValue.

setDoubleValue

public void setDoubleValue(double doubleValue)
Parameters:
doubleValue - The doubleValue to set.

getIntegerValue

public int getIntegerValue()
Returns:
Returns the integerValue.

setIntegerValue

public void setIntegerValue(int integerValue)
Parameters:
integerValue - The integerValue to set.

getStringValue

public String getStringValue()
Returns:
Returns the stringValue.

setStringValue

public void setStringValue(String stringValue)
Parameters:
stringValue - The stringValue to set.


Copyright © 2004-2011. All Rights Reserved.