|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.web.validation.Word | +--com.bea.web.validation.DoubleWord
Determines if a value is a valid Java Double between a specified range. By default, any Java Double is valid.
Constructor Summary | |
DoubleWord()
|
Method Summary | |
protected IValidationResult |
checkAdditional(java.lang.Double value,
java.util.ResourceBundle bundle)
This method is called by the validate method after the lower
and upper bounds have been validated. |
protected IValidationResult |
checkLowerBound(java.lang.Double value,
java.util.ResourceBundle bundle)
Checks value against the lower bound,
minInclusive or minExclusive. |
protected IValidationResult |
checkUpperBound(java.lang.Double value,
java.util.ResourceBundle bundle)
Checks value against the upper bound,
maxInclusive or maxExclusive. |
java.lang.String |
getMaxExclusive()
|
java.lang.String |
getMaxInclusive()
|
java.lang.String |
getMinExclusive()
|
java.lang.String |
getMinInclusive()
|
void |
setMaxExclusive(java.lang.String strMaxExclusive)
Sets the value for the maximum exclusive constraining facet. |
void |
setMaxInclusive(java.lang.String strMaxInclusive)
Sets the value for the maximum inclusive constraining facet. |
void |
setMinExclusive(java.lang.String strMinExclusive)
Sets the value for the minimum exclusive constraining facet. |
void |
setMinInclusive(java.lang.String strMinInclusive)
Sets the value for the minimum inclusive constraining facet. |
IValidationResult |
validate(java.lang.String strValue,
java.util.ResourceBundle bundle)
|
Methods inherited from class com.bea.web.validation.Word |
formatMessage,
formatMessage,
getKey,
getPattern,
getResource,
isRequired,
matchesPattern,
setKey,
setPattern,
setRequired,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DoubleWord()
Method Detail |
public IValidationResult validate(java.lang.String strValue, java.util.ResourceBundle bundle)
protected IValidationResult checkLowerBound(java.lang.Double value, java.util.ResourceBundle bundle)
value
against the lower bound,
minInclusive or minExclusive.
value
- - the Double value to compare against the lower boundvalue
satifies the lower
bound. If return value is not null, then value
does not
satisfy the lower bound.protected IValidationResult checkUpperBound(java.lang.Double value, java.util.ResourceBundle bundle)
value
against the upper bound,
maxInclusive or maxExclusive.
value
- - the Double value to compare against the upper boundvalue
satifies the upper
bound. If return value is not null, then value
does not
satisfy the upper bound.protected IValidationResult checkAdditional(java.lang.Double value, java.util.ResourceBundle bundle)
validate
method after the lower
and upper bounds have been validated. This method returns null. Sub-classes
can override this method to supply additional validation on the Double
value and still benefit from the parse and lower/upper bounds checking
provided by the current implementation of validate
method.
public final void setMinInclusive(java.lang.String strMinInclusive) throws java.lang.NumberFormatException
strMinInclusive
. It is an error for both minInclusive
and minExclusive to be specified on the same object.
strMinInclusive
- - the inclusive lower bound, must be
able to be parsed into a Java Double.strMinInclusive
cannot be parsed into a Java Double.public final java.lang.String getMinInclusive()
public final void setMaxInclusive(java.lang.String strMaxInclusive) throws java.lang.NumberFormatException
strMaxInclusive
. It is an error for both maxInclusive
and maxExclusive to be specified on the same object.
strMaxInclusive
- - the inclusive upper bound, must be
able to be parsed into a Java Double.strMaxInclusive
cannot be parsed into a Java Double.public final java.lang.String getMaxInclusive()
public final void setMinExclusive(java.lang.String strMinExclusive) throws java.lang.NumberFormatException
strMinExclusive
. It is an error for both minInclusive
and minExclusive to be specified on the same object.
strMinExclusive
- - the exclusive lower bound, must be
able to be parsed into a Java Double.strMinExclusive
cannot be parsed into a Java Double.public final java.lang.String getMinExclusive()
public final void setMaxExclusive(java.lang.String strMaxExclusive) throws java.lang.NumberFormatException
strMaxExclusive
. It is an error for both maxInclusive
and maxExclusive to be specified on the same object.
strMaxExclusive
- - the exclusive upper bound, must be
able to be parsed into a Java Double.strMaxExclusive
cannot be parsed into a Java Double.public final java.lang.String getMaxExclusive()
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |