|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.vmguys.vmtools.utils.JdomPatcher
This class takes a set of patch instructions that are in a JDOM tree or a List and applies them to a JDOM tree.
| Constructor Summary | |
JdomPatcher()
Constructs a JdomPatcher using the namespace of NO_NAMESPACE. |
|
JdomPatcher(org.jdom.Namespace namespace)
Constructs a JdomPatcher with the specified namespace. |
|
JdomPatcher(org.jdom.Namespace namespace,
boolean discardWhitespace)
Constructs a JdomPatcher with the specified namespace and setting for discardWhitespace. |
|
JdomPatcher(org.jdom.Namespace namespace,
boolean discardWhitespace,
boolean addComments)
Constructs a JdomPatcher with the specified namespace, setting for discardWhitespace, and setting for addComments. |
|
| Method Summary | |
boolean |
isDiscardWhitespace()
Getter for property discardWhitespace. |
org.jdom.Element |
patch(org.jdom.Element originalTree,
org.jdom.Element patchTree)
Applies patches to a JDOM tree and returns the modified tree. |
org.jdom.Element |
patch(org.jdom.Element originalTree,
java.util.List patchList)
Applies patches to a JDOM tree and returns the modified tree. |
void |
setDiscardWhitespace(boolean discardWhitespace)
Setter for property discardWhitespace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JdomPatcher()
public JdomPatcher(org.jdom.Namespace namespace)
public JdomPatcher(org.jdom.Namespace namespace,
boolean discardWhitespace)
public JdomPatcher(org.jdom.Namespace namespace,
boolean discardWhitespace,
boolean addComments)
| Method Detail |
public org.jdom.Element patch(org.jdom.Element originalTree,
org.jdom.Element patchTree)
throws org.jdom.JDOMException
public org.jdom.Element patch(org.jdom.Element originalTree,
java.util.List patchList)
throws org.jdom.JDOMException
public boolean isDiscardWhitespace()
public void setDiscardWhitespace(boolean discardWhitespace)
discardWhitespace - New value of property discardWhitespace.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||