|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.rules.AbstractRule
org.eclipse.actf.validation.rules.ScriptRule
public class ScriptRule
Field Summary |
---|
Fields inherited from class org.eclipse.actf.validation.rules.AbstractRule |
---|
SEVERITY_MAP |
Constructor Summary | |
---|---|
ScriptRule()
|
Method Summary | |
---|---|
boolean |
apply(IValidationContext context,
Object target)
insures that either the target is not null or that,
if the target is null , null targets can be ignored |
void |
initialize(Object content)
initialize this rule with any content that might be necessary for its application to a target during the invocation of the apply method. |
Methods inherited from class org.eclipse.actf.validation.rules.AbstractRule |
---|
addRulePart, findComponentCategory, findMessage, findRuleId, getAliasValue, getAttribute, getComponentCategory, getId, getIgnoreIfNull, getIterator, getLongDescription, getMessage, getName, getParent, getRepairHint, getRuleFactory, getRuleParts, getRuleSet, getSeverity, getTextTrim, isEnabled, isIgnoringNullTarget, processActfAttributes, report, setAttribute, setComponentCategory, setEnabled, setId, setIgnoreIfNull, setIteratorName, setLongDescription, setMessage, setName, setParent, setRepairHint, setRuleParts, setRuleSet, setSeverity, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptRule()
Method Detail |
---|
public void initialize(Object content) throws Exception
IRule
apply
method.
The specified content may take any form. It may be an XML element, a
.properties file, a string, etc. This method may be invoked anytime prior to calling
apply
.
content
- - initialization content for the rule
Exception
IRule.apply(IValidationContext, Object)
public boolean apply(IValidationContext context, Object target) throws Exception
AbstractRule
null
or that,
if the target is null
, null targets can be ignored
apply
in interface IRule
apply
in class AbstractRule
context
- context under which rule is being evaluated (supplied by engine)target
- object to which rule is to be applied
Exception
IRule.initialize(Object)
,
IValidationContext
,
ValidationContextConstants
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |