|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.jbo.server.JboPrecisionScaleValidator
public class JboPrecisionScaleValidator
Implements precision and scale validation for numeric attributes and length validation for string and character attributes. The framework applies this validator to Entity Object attributes whose definitions inlcude XML metadata precision or scale values.
This validator is invoked by an Entity Objects's validate() method when an attribute with defined precision or scale is modified.
| Field Summary | |
|---|---|
static int |
DEFAULT_SCALE
|
| Constructor Summary | |
|---|---|
JboPrecisionScaleValidator()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Gets the text description of this validator. |
int |
getPrecision()
|
int |
getScale()
|
void |
setDescription(java.lang.String description)
Sets the text description of this validator. |
void |
setPrecision(int value)
|
void |
setScale(int value)
|
java.lang.String |
toString()
|
boolean |
validateValue(java.lang.Object value)
Tests the validity of an attribute value. |
void |
vetoableChange(PropertyChangeEvent p0)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SCALE
| Constructor Detail |
|---|
public JboPrecisionScaleValidator()
| Method Detail |
|---|
public int getPrecision()
public void setPrecision(int value)
public int getScale()
public void setScale(int value)
public java.lang.String getDescription()
JbiValidator
getDescription in interface JbiValidatorpublic void setDescription(java.lang.String description)
JbiValidator
setDescription in interface JbiValidatordescription - a textual description.public boolean validateValue(java.lang.Object value)
JbiValidator
validateValue in interface JbiValidatorvalue - a value.
true if the value is valid.
public void vetoableChange(PropertyChangeEvent p0)
throws AdfNmcException
vetoableChange in interface VetoableChangeListenerAdfNmcExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||