| pnuts.xml.RuleSet
All known Subclasses: pnuts.xml.DefaultRuleSet, pnuts.xml.SimpleRuleSet,
RuleSet | interface RuleSet (Code) | | |
add | public void add(String pattern, DigestAction action, String keyword)(Code) | | Add a rule to this rule set
Parameters: pattern - a path pattern Parameters: target - the corresponding structure that consists of the action and the keyword. |
scan | public void scan(String path, List paths, TargetHandler handler) throws Exception(Code) | | Searches paths that match the registed patterns and executes the action with the key.
Parameters: path - the path to search Parameters: paths - a List of path elements. Parameters: handler - an object that defines how to handle the matched rule. |
|
|