public class StripSpaceRules
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
StripSpaceRules()
Default constructor - creates a StripSpaceRules containing no rules
|
Modifier and Type | Method and Description |
---|---|
void |
addRule(NodeTest test,
RuleBasedStripper.StripRuleTarget action,
StylesheetModule module,
int lineNumber)
Add a rule
|
Rule |
getRule(int fingerprint)
Get the rule corresponding to a given element node, by finding the best pattern match.
|
public StripSpaceRules()
public void addRule(NodeTest test, RuleBasedStripper.StripRuleTarget action, StylesheetModule module, int lineNumber)
test
- a NodeTest (*, *:local, prefix:*, or QName)action
- StripRuleTarget.STRIP or StripRuleTarget.PRESERVEmodule
- the stylesheet module containing the rulepublic Rule getRule(int fingerprint)
fingerprint
- the name of the element node to be matched