org.vmguys.vmtools.utils
Class ContentDeleteOperation
java.lang.Object
|
+--org.vmguys.vmtools.utils.AbstractOperation
|
+--org.vmguys.vmtools.utils.ContentDeleteOperation
- public class ContentDeleteOperation
- extends AbstractOperation
This class represents a deletion of some of the content of an Element.
The content being deleted might be a Comment, a CDATA, a String,
an EntityRef, or a ProcessingInstruction.
|
Method Summary |
org.jdom.Element |
asElement(org.jdom.Namespace namespace)
Converts the operation to a JDOM Element, possibly with children, that
represents the operation. |
int |
cost()
Returns a cost associated with this operation. |
int |
getOperationNodeNumber()
Returns the number of the node this operation is being applied to. |
java.lang.String |
getOperationXpath()
Returns the xpath of the node this operation is being applied to. |
java.lang.String |
toString()
Returns a String with information about the operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContentDeleteOperation
public ContentDeleteOperation(DiffElement node,
java.lang.Object content)
- Constructs an operation that will delete content from the given node.
The old content is given.
ContentDeleteOperation
public ContentDeleteOperation(DiffElement node,
java.lang.Object content,
java.lang.String comment)
- Constructs an operation that will delete content from the given node.
The old content is given.
The operation will include the specified comment. The comment may be null if it is not needed.
cost
public int cost()
- Returns a cost associated with this operation.
- Overrides:
cost in class AbstractOperation
asElement
public org.jdom.Element asElement(org.jdom.Namespace namespace)
- Converts the operation to a JDOM Element, possibly with children, that
represents the operation.
- Overrides:
asElement in class AbstractOperation
toString
public java.lang.String toString()
- Returns a String with information about the operation.
- Overrides:
toString in class AbstractOperation
getOperationXpath
public java.lang.String getOperationXpath()
throws org.jdom.JDOMException
- Returns the xpath of the node this operation is being applied to.
In this case it's the xpath of the content.
- Overrides:
getOperationXpath in class AbstractOperation
getOperationNodeNumber
public int getOperationNodeNumber()
- Returns the number of the node this operation is being applied to.
- Overrides:
getOperationNodeNumber in class AbstractOperation
Copyright © 2001 VM Systems, Inc. All Rights Reserved.