|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 Summary | |
Stylesheet()
|
Method Summary | |
void |
addRule(Rule rule)
|
void |
applyTemplates(java.lang.Object input)
|
void |
applyTemplates(java.lang.Object input,
XPath xpath)
|
void |
applyTemplates(java.lang.Object input,
org.jaxen.XPath xpath)
|
void |
clear()
|
protected Mode |
getMode()
|
java.lang.String |
getModeName()
|
Action |
getValueOfAction()
|
void |
removeRule(Rule rule)
|
void |
run(java.util.List list)
|
void |
run(Node node)
|
void |
run(java.lang.Object input)
Runs this stylesheet on the given input which should be either a Node or a List of Node objects. |
void |
setModeName(java.lang.String modeName)
Sets the name of the mode that the stylesheet uses by default. |
void |
setValueOfAction(Action valueOfAction)
Sets the default value-of action which is used in the default rules for the pattern "text()|@*" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Stylesheet()
Method Detail |
public void addRule(Rule rule)
public void removeRule(Rule rule)
public void run(java.lang.Object input) throws java.lang.Exception
java.lang.Exception
public void run(java.util.List list) throws java.lang.Exception
java.lang.Exception
public void run(Node node) throws java.lang.Exception
java.lang.Exception
public void applyTemplates(java.lang.Object input, XPath xpath) throws java.lang.Exception
java.lang.Exception
public void applyTemplates(java.lang.Object input, org.jaxen.XPath xpath) throws java.lang.Exception
java.lang.Exception
public void applyTemplates(java.lang.Object input) throws java.lang.Exception
java.lang.Exception
public void clear()
public java.lang.String getModeName()
public void setModeName(java.lang.String modeName)
public Action getValueOfAction()
public void setValueOfAction(Action valueOfAction)
protected Mode getMode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |