|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproject35.soa.validation.AbstractEditFieldValidationService
project35.soa.validation.NumericValidator
project35.soa.validation.FloatValidator
project35.soa.validation.BoundedFloatValidator
public class BoundedFloatValidator
Determines whether a float field value is within minimum and maximum bounds boundaries are inclusive. The validator accepts four types of domain expression. Examples include:
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
| Field Summary |
|---|
| Fields inherited from class project35.soa.validation.AbstractEditFieldValidationService |
|---|
collator |
| Constructor Summary | |
|---|---|
BoundedFloatValidator()
constructor |
|
| Method Summary | |
|---|---|
String |
getConstraintsDescription()
|
void |
setBounds(double lowerBound,
boolean lowerBoundIsInclusive,
double upperBound,
boolean upperBoundIsInclusive)
sets lower bounds, but accepts double values |
void |
setBounds(float lowerBound,
boolean lowerBoundIsInclusive,
float upperBound,
boolean upperBoundIsInclusive)
sets lower and upper bounds |
void |
setLowerBound(double lowerBound,
boolean lowerBoundIsInclusive)
sets lower bounds but takes double values |
void |
setLowerBound(float lowerBound,
boolean lowerBoundIsInclusive)
sets lower bounds |
void |
setUpperBound(double upperBound,
boolean upperBoundIsInclusive)
sets upper bounds but takes double values |
void |
setUpperBound(float upperBound,
boolean upperBoundIsInclusive)
sets upper bounds |
ArrayList |
validate(Project35FormContext project35FormContext,
String value)
validates the field value and returns any error messages |
| Methods inherited from class project35.soa.validation.AbstractEditFieldValidationService |
|---|
getFieldName, getInitialisationParameters, initialiseService, isEmpty, isFieldRequired, setFieldName, setRequiredField, validateRequiredField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoundedFloatValidator()
| Method Detail |
|---|
public String getConstraintsDescription()
getConstraintsDescription in interface ConstraintDescription
public void setBounds(float lowerBound,
boolean lowerBoundIsInclusive,
float upperBound,
boolean upperBoundIsInclusive)
lowerBound - the lower bound valuelowerBoundIsInclusive - whether lower bound is inclusive or exlusiveupperBound - the upper bound valueupperBoundIsInclusive - whether upper bound is inclusive or exlusive
public void setBounds(double lowerBound,
boolean lowerBoundIsInclusive,
double upperBound,
boolean upperBoundIsInclusive)
lowerBound - the lower bound valuelowerBoundIsInclusive - whether lower bound is inclusive or exlusive
public void setLowerBound(float lowerBound,
boolean lowerBoundIsInclusive)
lowerBound - the lower bound valuelowerBoundIsInclusive - whether lower bound is inclusive or exlusive
public void setLowerBound(double lowerBound,
boolean lowerBoundIsInclusive)
lowerBound - the lower bound valuelowerBoundIsInclusive - whether lower bound is inclusive or exlusive
public void setUpperBound(float upperBound,
boolean upperBoundIsInclusive)
upperBound - the upper bound valueupperBoundIsInclusive - whether upper bound is inclusive or exlusive
public void setUpperBound(double upperBound,
boolean upperBoundIsInclusive)
upperBound - the upper bound valueupperBoundIsInclusive - whether upper bound is inclusive or exlusive
public ArrayList validate(Project35FormContext project35FormContext,
String value)
EditFieldValidationService
validate in interface EditFieldValidationServicevalidate in class FloatValidatorvalue - the value of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||