Compiere 3.1

org.compiere.framework
Class FieldvalueValidator

java.lang.Object
  extended by org.compiere.framework.FieldvalueValidator

public class FieldvalueValidator
extends Object

Field Value Validator

Version:
$Id$
Author:
Jorg Janke

Constructor Summary
FieldvalueValidator(POInfoColumn info)
           
FieldvalueValidator(UIField field)
           
 
Method Summary
 BigDecimal validate(BigDecimal newValue)
           
 Integer validate(Integer newValue)
           
 Object validate(Object newValue)
           
 String validate(String newValue)
           
 Timestamp validate(Timestamp newValue)
           
 String validateAsString(String newValue)
          Validate new Value as String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldvalueValidator

public FieldvalueValidator(UIField field)

FieldvalueValidator

public FieldvalueValidator(POInfoColumn info)
Method Detail

validateAsString

public String validateAsString(String newValue)
                        throws CompiereValueException
Validate new Value as String

Parameters:
newValue - new value
Returns:
validated value or null
Throws:
CompiereValueException

validate

public Object validate(Object newValue)
                throws CompiereValueException
Throws:
CompiereValueException

validate

public String validate(String newValue)
                throws CompiereValueException
Throws:
CompiereValueException

validate

public Integer validate(Integer newValue)
                 throws CompiereValueException
Throws:
CompiereValueException

validate

public BigDecimal validate(BigDecimal newValue)
                    throws CompiereValueException
Throws:
CompiereValueException

validate

public Timestamp validate(Timestamp newValue)
                   throws CompiereValueException
Throws:
CompiereValueException

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.