public class BooleanConstraints extends Object implements Constraints
Constructor and Description |
---|
BooleanConstraints()
Default constructor.
|
BooleanConstraints(String trueValue,
String falseValue)
Constructs a new boolean parameter constraint.
|
Modifier and Type | Method and Description |
---|---|
String |
getFalseValue()
Get the string image of boolean false value.
|
String |
getTrueValue()
Get the string image of boolean true value.
|
boolean |
isValid(Serializable object)
Determines whether or not the given object is valid in the context of
these constraints.
|
public boolean isValid(Serializable object)
Constraints
isValid
in interface Constraints
object
- object to be validated against the constraintsConstraints.isValid(java.io.Serializable)
public String getTrueValue()
public String getFalseValue()
Copyright © 2015. All Rights Reserved.