org.equanda.validation
Class UniqueConverterAdapter

java.lang.Object
  extended by org.equanda.validation.UniqueConverterAdapter
All Implemented Interfaces:
UniqueConverter

public class UniqueConverterAdapter
extends Object
implements UniqueConverter

Adapter class for Converted validation, extend and overwrite according to the correct type.

Author:
NetRom team

Constructor Summary
UniqueConverterAdapter()
           
 
Method Summary
 boolean getConvertedBoolean(boolean bool)
           
 Date getConvertedDate(Date date)
           
 double getConvertedDouble(double number)
           
 int getConvertedInt(int number)
           
 String getConvertedString(String string)
           
 Timestamp getConvertedTimestamp(Timestamp time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueConverterAdapter

public UniqueConverterAdapter()
Method Detail

getConvertedString

public String getConvertedString(String string)
                          throws EquandaConstraintViolation
Specified by:
getConvertedString in interface UniqueConverter
Throws:
EquandaConstraintViolation

getConvertedBoolean

public boolean getConvertedBoolean(boolean bool)
                            throws EquandaConstraintViolation
Specified by:
getConvertedBoolean in interface UniqueConverter
Throws:
EquandaConstraintViolation

getConvertedDate

public Date getConvertedDate(Date date)
                      throws EquandaConstraintViolation
Specified by:
getConvertedDate in interface UniqueConverter
Throws:
EquandaConstraintViolation

getConvertedTimestamp

public Timestamp getConvertedTimestamp(Timestamp time)
                                throws EquandaConstraintViolation
Specified by:
getConvertedTimestamp in interface UniqueConverter
Throws:
EquandaConstraintViolation

getConvertedInt

public int getConvertedInt(int number)
                    throws EquandaConstraintViolation
Specified by:
getConvertedInt in interface UniqueConverter
Throws:
EquandaConstraintViolation

getConvertedDouble

public double getConvertedDouble(double number)
                          throws EquandaConstraintViolation
Specified by:
getConvertedDouble in interface UniqueConverter
Throws:
EquandaConstraintViolation


Copyright © 2007-2009. All Rights Reserved.