|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RunnableRuleBasedFilter
A RunnableRuleBasedFilter can apply rules and forward nodes to the next step by itself.
| Method Summary | |
|---|---|
void |
applyFilter(Object node)
Apply the filter on a node : test if a rule is appliable. |
void |
applyRules(Object node,
DataSet dataSet)
Run the <xcl:apply-rules> element. |
void |
forward(QName[] names,
Executable action,
DataSet dataSet)
Run a <xcl:forward> element. |
void |
ignore(Object node)
Ignore the current node : the node must not be part of the result, its children must be ignored too. |
| Methods inherited from interface org.inria.ns.reflex.xml.filter.RuleBasedFilter |
|---|
getFilterContextFactory, getRules, normalize |
| Method Detail |
|---|
void applyFilter(Object node)
throws PatternEvaluationException,
ExecutionException
*** The candidate rules are the rules held by this filter + the default rules. If no user-specific rule is appliable, the default rule is applied.
node - The candidate node.
ExecutionException
PatternEvaluationExceptionRule,
Rule.DEFAULT_RULES,
Node,
SAXNode
void applyRules(Object node,
DataSet dataSet)
throws ExecutionException
Apply the rules on the current node :
applyFilter(Object) for its children.A concrete implementation depends on the nature of the input (DOM or SAX).
node - The node to propagate.channels - The list of channels to forward to,
or null if the main channel have to be used.
ExecutionException - Propagation from applyFilter(Object).Node,
SAXNode
void forward(QName[] names,
Executable action,
DataSet dataSet)
throws ExecutionException
A concrete implementation depends on the nature of the input (DOM or SAX).
names - The name of the channels to forward to, or null
to forward to the main channel. In the list of channel names,
the main channel can be named with "#main".action - The action to perform before : may build some XML content to forward.dataSet - The set of datas used.
ExecutionException - If the action can't be performed.
void ignore(Object node)
throws ExecutionException
This method is invoked automatically if no <xcl:apply-rules> element has been encountered.
A concrete implementation depends on the nature of the input (DOM or SAX).
node - The node to ignore.
ExecutionException - Propagation from applyFilter(Object).Node,
SAXNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||