org.openxava.calculators
Class UUIDCalculator

java.lang.Object
  extended by org.openxava.calculators.UUIDCalculator
All Implemented Interfaces:
java.io.Serializable, ICalculator, IModelCalculator

public class UUIDCalculator
extends java.lang.Object
implements IModelCalculator

It generate a Universal Unic IDentifier of 32 alphanumeric characters.

Author:
Javier Paniza
See Also:
Serialized Form

Constructor Summary
UUIDCalculator()
           
 
Method Summary
 java.lang.Object calculate()
           
 java.lang.String hexFormat(byte[] number)
           
 java.lang.String hexFormat(long n)
           
 boolean isLowerCase()
           
 void setLowerCase(boolean b)
           
 void setModel(java.lang.Object object)
          The model object that contains the member that uses the calculator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUIDCalculator

public UUIDCalculator()
Method Detail

calculate

public java.lang.Object calculate()
                           throws java.lang.Exception
Specified by:
calculate in interface ICalculator
Throws:
java.lang.Exception

hexFormat

public java.lang.String hexFormat(long n)

hexFormat

public java.lang.String hexFormat(byte[] number)

setModel

public void setModel(java.lang.Object object)
Description copied from interface: IModelCalculator
The model object that contains the member that uses the calculator.

Specified by:
setModel in interface IModelCalculator

isLowerCase

public boolean isLowerCase()

setLowerCase

public void setLowerCase(boolean b)