|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.rules.AbstractCriterion
public abstract class AbstractCriterion
Base implementation for a ICriterion
ICriterion
,
TypeCriterion
,
PropertyCriterion
,
CompoundCriterion
Field Summary | |
---|---|
protected Map<String,String> |
attributes
|
protected ICriterion |
parent
|
protected List<ICriterion> |
parts
|
protected IRuleSet |
ruleSet
|
Constructor Summary | |
---|---|
AbstractCriterion()
|
Method Summary | |
---|---|
void |
addPart(ICriterion criterion)
adds a criterion(or rule) to the list of criterion(rule parts or nested rules) that are executed when this Criterion(rule) is evaluated. |
boolean |
equals(Object other)
|
String |
getAttribute(String name)
retrieves the attribute with the given name for this rule |
ICriterion |
getParent()
return the parent rule of this rule. |
ICriterion[] |
getParts()
returns the criterion(rule) parts or nested criteria(rules) for the criterion/rule |
IRuleSet |
getRuleSet()
return the IRuleSet containing this IRule. |
int |
hashCode()
|
void |
setAttribute(String name,
String value)
set an arbitrary attribute for this rule |
void |
setParent(ICriterion parent)
set the parent rule of this rule. |
void |
setParts(ICriterion[] criterion)
set the criterion(rule) parts or nested criterion(rules) for this criterion(rule). |
void |
setRuleSet(IRuleSet ruleSet)
Set the containing IRuleSet for this rule. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.actf.validation.rules.ICriterion |
---|
apply, initialize |
Field Detail |
---|
protected List<ICriterion> parts
protected Map<String,String> attributes
protected ICriterion parent
protected IRuleSet ruleSet
Constructor Detail |
---|
public AbstractCriterion()
Method Detail |
---|
public void addPart(ICriterion criterion)
ICriterion
addPart
in interface ICriterion
criterion
- - criterion which encapsulates rulepublic ICriterion[] getParts()
ICriterion
getParts
in interface ICriterion
public void setParts(ICriterion[] criterion)
ICriterion
setParts
in interface ICriterion
criterion
- - list of encapsulated rules(Criterion)public String getAttribute(String name)
ICriterion
getAttribute
in interface ICriterion
name
- name of attribute
null
public void setAttribute(String name, String value)
ICriterion
setAttribute
in interface ICriterion
name
- name of attributevalue
- value of attributepublic ICriterion getParent()
ICriterion
getParent
in interface ICriterion
public void setParent(ICriterion parent)
ICriterion
setParent
in interface ICriterion
parent
- rulepublic IRuleSet getRuleSet()
ICriterion
getRuleSet
in interface ICriterion
public void setRuleSet(IRuleSet ruleSet)
ICriterion
setRuleSet
in interface ICriterion
ruleSet
- parent rulepublic int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |