Drools Workbench - Common Model 6.0.0.CR4

org.drools.workbench.models.commons.shared.rule
Class CompositeFieldConstraint

java.lang.Object
  extended by org.drools.workbench.models.commons.shared.rule.CompositeFieldConstraint
All Implemented Interfaces:
FieldConstraint, HasConstraints

public class CompositeFieldConstraint
extends Object
implements FieldConstraint, HasConstraints

This is a field constraint that may span multiple fields.


Field Summary
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 Summary
CompositeFieldConstraint()
           
 
Method Summary
 void addConstraint(FieldConstraint constraint)
           
 String getCompositeJunctionType()
           
 FieldConstraint getConstraint(int index)
           
 FieldConstraint[] getConstraints()
           
 int getNumberOfConstraints()
           
 void removeConstraint(int idx)
           
 void setCompositeJunctionType(String compositeJunctionType)
           
 void setConstraints(FieldConstraint[] constraints)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPOSITE_TYPE_OR

public static final String COMPOSITE_TYPE_OR
Means that any of the children can resolve to be true.

See Also:
Constant Field Values

COMPOSITE_TYPE_AND

public static final String COMPOSITE_TYPE_AND
Means that ALL of the children constraints must resolve to be true.

See Also:
Constant Field Values
Constructor Detail

CompositeFieldConstraint

public CompositeFieldConstraint()
Method Detail

addConstraint

public void addConstraint(FieldConstraint constraint)
Specified by:
addConstraint in interface HasConstraints

removeConstraint

public void removeConstraint(int idx)
Specified by:
removeConstraint in interface HasConstraints

getConstraint

public FieldConstraint getConstraint(int index)
Specified by:
getConstraint in interface HasConstraints

getNumberOfConstraints

public int getNumberOfConstraints()
Specified by:
getNumberOfConstraints in interface HasConstraints

getConstraints

public FieldConstraint[] getConstraints()

setConstraints

public void setConstraints(FieldConstraint[] constraints)

getCompositeJunctionType

public String getCompositeJunctionType()

setCompositeJunctionType

public void setCompositeJunctionType(String compositeJunctionType)

Drools Workbench - Common Model 6.0.0.CR4

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.