wt.rule.init
Class InitRuleMerger
java.lang.Object
wt.rule.init.InitRuleMerger
- All Implemented Interfaces:
- RuleMerger
- public class InitRuleMerger
- extends Object
- implements RuleMerger
A rule merger for INIT
rules.
This merger merges rules from left to right. The first rule is merged
into the second then the result of this is merged into the third, etc.
Information specified in rules at the beginning of the list takes precedence
over information specified in rules towards the end of the list. Therefore,
when a rule is merged into another rule, it overwites the attribute
values specified by the rule it is merging into. One exception to this
rule is if the attribute in the rule being merged into is specified as
being final
, then that attribute is not overwritten.
Supported API: false
Extendable: false
Method Summary |
Rule |
mergeRules(Rule[] rules)
Merge the provided rules into a composite rule. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
InitRuleMerger
public InitRuleMerger()
mergeRules
public Rule mergeRules(Rule[] rules)
throws WTException,
WTPropertyVetoException
- Merge the provided rules into a composite rule.
Supported API: false
- Specified by:
mergeRules
in interface RuleMerger
- Parameters:
rules
- the rules to be merged
- Returns:
- Rule
- Throws:
WTException
WTPropertyVetoException