public class Rule extends RulebaseElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CNAME |
Constructor and Description |
---|
Rule(DataSource ds,
Test[] tests)
Constructs a Rule object
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a copy of this object
|
boolean |
equals(java.lang.Object obj)
Tests two Rule objects for equality
|
DataSource |
getDataSource()
Returns the rule's data source.
|
int |
getOverRuling()
Returns the rule's precedence level used in overruling.
|
Test[] |
getTests()
Returns the array of Test objects used by this rule.
|
boolean |
isConverted() |
void |
setDataSource(DataSource ds)
Sets the rule's data source.
|
void |
setOverRuling(int precedence)
Sets the rule's precedence level used in overruling.
|
void |
setTests(Test[] tests)
Sets the array of Test objects used by this rule.
|
java.lang.String |
toString()
Returns string representation of this rule.
|
getName, getSchedule, setName, setSchedule
public Rule(DataSource ds, Test[] tests) throws java.lang.IllegalArgumentException
ds
- the rule's data sourcetests
- an array of Test objects, all tests
must have unique names.java.lang.IllegalArgumentException
- if either argument is nulljava.lang.IllegalArgumentException
- if any of the test names are not uniquepublic boolean isConverted()
public java.lang.String toString()
toString
in class java.lang.Object
public void setOverRuling(int precedence)
public int getOverRuling()
public DataSource getDataSource()
public void setDataSource(DataSource ds)
ds
- the data source, may not be nulljava.lang.IllegalArgumentException
- if ds is nullpublic void setTests(Test[] tests) throws java.lang.IllegalArgumentException
tests
- the array of tests, may not be null, all names must be uniquejava.lang.IllegalArgumentException
- if tests is nulljava.lang.IllegalArgumentException
- if the test names are not uniquepublic Test[] getTests()
public boolean equals(java.lang.Object obj)
equals
in class RulebaseElement
public java.lang.Object clone()
clone
in class RulebaseElement
Copyright © 2000-2019 TIBCO Inc. All Rights Reserved.