Class CompositeFactPattern
- java.lang.Object
-
- org.drools.workbench.models.datamodel.rule.CompositeFactPattern
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPOSITE_TYPE_EXISTSstatic StringCOMPOSITE_TYPE_NOTstatic StringCOMPOSITE_TYPE_OR
-
Constructor Summary
Constructors Constructor Description CompositeFactPattern()CompositeFactPattern(String type)This type should be from the contants in this class of course.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFactPattern(IFactPattern pat)voidaddFactPatterns(IFactPattern[] patterns)voidclearFactPatterns()booleanequals(Object o)IFactPattern[]getPatterns()StringgetType()inthashCode()booleanremoveFactPattern(int index)Remove a FactPattern at the provided index.voidsetType(String type)
-
-
-
Field Detail
-
COMPOSITE_TYPE_NOT
public static final String COMPOSITE_TYPE_NOT
- See Also:
- Constant Field Values
-
COMPOSITE_TYPE_EXISTS
public static final String COMPOSITE_TYPE_EXISTS
- See Also:
- Constant Field Values
-
COMPOSITE_TYPE_OR
public static final String COMPOSITE_TYPE_OR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CompositeFactPattern
public CompositeFactPattern(String type)
This type should be from the contants in this class of course.
-
CompositeFactPattern
public CompositeFactPattern()
-
-
Method Detail
-
clearFactPatterns
public void clearFactPatterns()
-
addFactPatterns
public void addFactPatterns(IFactPattern[] patterns)
-
addFactPattern
public void addFactPattern(IFactPattern pat)
-
getPatterns
public IFactPattern[] getPatterns()
-
removeFactPattern
public boolean removeFactPattern(int index)
Remove a FactPattern at the provided index. If index is less than zero or greater than or equal to the number of patterns the effect of this method is "no operation".- Parameters:
index-- Returns:
- true if the deletion was successful, i.e. within range
-
getType
public String getType()
-
setType
public void setType(String type)
-
-