public class CompositeFieldConstraint extends Object implements FieldConstraint, HasConstraints
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPOSITE_TYPE_AND
Means that ALL of the children constraints must resolve to be true.
|
static String |
COMPOSITE_TYPE_OR
Means that any of the children can resolve to be true.
|
| Constructor and Description |
|---|
CompositeFieldConstraint() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraint(FieldConstraint constraint) |
boolean |
equals(Object o) |
String |
getCompositeJunctionType() |
FieldConstraint |
getConstraint(int index) |
FieldConstraint[] |
getConstraints() |
int |
getNumberOfConstraints() |
int |
hashCode() |
void |
removeConstraint(int idx) |
void |
setCompositeJunctionType(String compositeJunctionType) |
void |
setConstraints(FieldConstraint[] constraints) |
public static final String COMPOSITE_TYPE_OR
public static final String COMPOSITE_TYPE_AND
public void addConstraint(FieldConstraint constraint)
addConstraint in interface HasConstraintspublic void removeConstraint(int idx)
removeConstraint in interface HasConstraintspublic FieldConstraint getConstraint(int index)
getConstraint in interface HasConstraintspublic int getNumberOfConstraints()
getNumberOfConstraints in interface HasConstraintspublic FieldConstraint[] getConstraints()
public void setConstraints(FieldConstraint[] constraints)
public String getCompositeJunctionType()
public void setCompositeJunctionType(String compositeJunctionType)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.