Stylesheet implements an XSLT stylesheet such that rules can
be added to the stylesheet and the stylesheet can be applied to a source
document or node.
| Modifier and Type | Field and Description |
|---|---|
| private String | modeName
Holds value of property mode. |
| private RuleManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | applyTemplates(Object
the input object input, XPath the xpath expression xpath)Processes the result of the xpath expression. |
| public void | applyTemplates(Object
the input object input, XPath the xpath expression xpath, String the mode mode)Processes the result of the xpath expression in the given mode. |
| public void | applyTemplates(Node
the input object node)If input is a |
| public void | applyTemplates(Element
the input object element)If input is a |
| public void | applyTemplates(Document
the input object document)If input is a |
| public void | applyTemplates(List<Node>
the input object list)If input is a |
| public void | applyTemplates(Node
the input object node, String the mode mode)Processes the input object in the given mode. |
| public void | applyTemplates(Element
the input object element, String the mode mode)Processes the input object in the given mode. |
| public void | applyTemplates(Document
the input object document, String the mode mode)Processes the input object in the given mode. |
| public void | applyTemplates(List<? extends Node>
list of Elements or Documents list, String the mode mode)Processes the input object in the given mode. |
| public void | |
| public String | |
| public Action | Returns: the default value-of action which is used in the default rules for the pattern "text()|@"DOCUMENT ME! |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setModeName(String
DOCUMENT ME! modeName)Sets the name of the mode that the stylesheet uses by default. |
| public void | setValueOfAction(Action
DOCUMENT ME! valueOfAction)Sets the default value-of action which is used in the default rules for the pattern "text()|@" |
| modeName | back to summary |
|---|---|
| private String modeName Holds value of property mode. | |
| ruleManager | back to summary |
|---|---|
| private RuleManager ruleManager | |
| Stylesheet | back to summary |
|---|---|
| public Stylesheet() Creates a new empty stylesheet. | |
| addRule | back to summary |
|---|---|
| public void addRule(Rule rule) Add a rule to this stylesheet.
| |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Object input, XPath xpath) throws Exception Processes the result of the xpath expression. The xpath expression is evaluated against the provided input object. | |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Object input, XPath xpath, String mode) throws Exception Processes the result of the xpath expression in the given mode. The xpath expression is evaluated against the provided input object. | |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Node node) throws Exception If input is a | |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Element element) throws Exception If input is a | |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Document document) throws Exception If input is a | |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(List<Node> list) throws Exception If input is a | |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Node node, String mode) throws Exception Processes the input object in the given mode. If input is a
| |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Element element, String mode) throws Exception Processes the input object in the given mode. If input is a
| |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Document document, String mode) throws Exception Processes the input object in the given mode. If input is a
| |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(List<? extends Node> list, String mode) throws Exception Processes the input object in the given mode. If input is a
| |
| clear | back to summary |
|---|---|
| public void clear() | |
| getModeName | back to summary |
|---|---|
| public String getModeName() DOCUMENT ME!
| |
| getValueOfAction | back to summary |
|---|---|
| public Action getValueOfAction() DOCUMENT ME!
| |
| removeRule | back to summary |
|---|---|
| public void removeRule(Rule rule) Removes the specified rule from this stylesheet.
| |
| run | back to summary |
|---|---|
| public void run(List<Node> list) throws Exception | |
| run | back to summary |
|---|---|
| public void run(List<Node> list, String mode) throws Exception | |
| run | back to summary |
|---|---|
| public void run(Node node) throws Exception | |
| run | back to summary |
|---|---|
| public void run(Node node, String mode) throws Exception | |
| setModeName | back to summary |
|---|---|
| public void setModeName(String modeName) Sets the name of the mode that the stylesheet uses by default.
| |
| setValueOfAction | back to summary |
|---|---|
| public void setValueOfAction(Action valueOfAction) Sets the default value-of action which is used in the default rules for the pattern "text()|@"
| |