org.jboss.dtf.testframework.coordinator
Class OSProductCombination

java.lang.Object
  extended by org.jboss.dtf.testframework.coordinator.OSProductCombination

public class OSProductCombination
extends java.lang.Object

This class is used to store and Operating System/Product combination so that they can easily be passed between classes.


Constructor Summary
OSProductCombination(java.lang.String osName, java.lang.String productName)
          Create an OS/Product combination with the given os and product name
 
Method Summary
static long generateChecksum(java.lang.String text)
          Generate a checksum from the given text.
 java.lang.String getOSName()
          Retrieve the name of the OS from this combination
 java.lang.String getProductName()
          Retrieve the name of the Product from this combination
static java.lang.String padHexNumber(java.lang.String text, int places)
           
 java.lang.String toString()
          Convert this OS/Product combination into a 4 character hex code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSProductCombination

public OSProductCombination(java.lang.String osName,
                            java.lang.String productName)
Create an OS/Product combination with the given os and product name

Parameters:
osName - The name of the OS
productName - The name of the Product
Method Detail

getOSName

public final java.lang.String getOSName()
Retrieve the name of the OS from this combination

Returns:
The name of the OS from this combination

getProductName

public final java.lang.String getProductName()
Retrieve the name of the Product from this combination

Returns:
The name of the Product from this combination

padHexNumber

public static final java.lang.String padHexNumber(java.lang.String text,
                                                  int places)

toString

public final java.lang.String toString()
Convert this OS/Product combination into a 4 character hex code

Overrides:
toString in class java.lang.Object
Returns:
The permutation code for this OS/Product combination

generateChecksum

public static final long generateChecksum(java.lang.String text)
Generate a checksum from the given text.

Parameters:
text - The string to generate the checksum for.
Returns:
The checksum