Save This Page
Home » dom4j-1.6.1 » org.dom4j.rule » [javadoc | source]
org.dom4j.rule
public class: Stylesheet [javadoc | source]
java.lang.Object
   org.dom4j.rule.Stylesheet

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.

Constructor:
 public Stylesheet() 
Method from org.dom4j.rule.Stylesheet Summary:
addRule,   applyTemplates,   applyTemplates,   applyTemplates,   applyTemplates,   applyTemplates,   applyTemplates,   clear,   getModeName,   getValueOfAction,   removeRule,   run,   run,   run,   run,   run,   run,   setModeName,   setValueOfAction
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.rule.Stylesheet Detail:
 public  void addRule(Rule rule) 
    Add a rule to this stylesheet.
 public  void applyTemplates(Object input) throws Exception 
    If input is a Node, this will processes all of the children of that node. If input is a List of Nodess, these nodes will be iterated and all children of each node will be processed.
 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.
 public  void applyTemplates(Object input,
    XPath xpath) throws Exception 
Deprecated! Use - Stylesheet#applyTemplates(Object, XPath) instead.

    Processes the result of the xpath expression. The xpath expression is evaluated against the provided input object.
 public  void applyTemplates(Object input,
    String mode) throws Exception 
    Processes the input object in the given mode. If input is a Node, this will processes all of the children of that node. If input is a List of Nodess, these nodes will be iterated and all children of each node will be processed.
 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.
 public  void applyTemplates(Object input,
    XPath xpath,
    String mode) throws Exception 
Deprecated! Use - Stylesheet#applyTemplates(Object, XPath, String) instead.

    Processes the result of the xpath expression in the given mode. The xpath expression is evaluated against the provided input object.
 public  void clear() 
 public String getModeName() 
    DOCUMENT ME!
 public Action getValueOfAction() 
    DOCUMENT ME!
 public  void removeRule(Rule rule) 
    Removes the specified rule from this stylesheet.
 public  void run(Object input) throws Exception 
    Runs this stylesheet on the given input which should be either a Node or a List of Node objects.
 public  void run(List list) throws Exception 
 public  void run(Node node) throws Exception 
 public  void run(Object input,
    String mode) throws Exception 
 public  void run(List list,
    String mode) throws Exception 
 public  void run(Node node,
    String mode) throws Exception 
 public  void setModeName(String modeName) 
    Sets the name of the mode that the stylesheet uses by default.
 public  void setValueOfAction(Action valueOfAction) 
    Sets the default value-of action which is used in the default rules for the pattern "text()|@"