|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jdom.Element
|
+--org.vmguys.vmtools.utils.DiffElement
This class adds properties to Element that are needed by the algorithm used.
Thanks to Richard Titze (richard.titze@tin.it) for the idea and the original implementation.
| Fields inherited from class org.jdom.Element |
additionalNamespaces, attributes, content, name, namespace, parent |
| Constructor Summary | |
DiffElement(java.lang.String name)
|
|
DiffElement(java.lang.String name,
org.jdom.Namespace namespace)
|
|
DiffElement(java.lang.String name,
java.lang.String uri)
|
|
DiffElement(java.lang.String name,
java.lang.String prefix,
java.lang.String uri)
|
|
| Method Summary | |
org.jdom.Attribute[] |
getAttributesAsArray()
Gets an array of the node's attributes. |
int |
getChildNumber()
Returns the number of this child. |
java.util.List |
getChildren()
Overrides Element.getChildren(). |
java.lang.Object[] |
getContentAsArray()
Gets an array of the node's content that excludes the children. |
int |
getContentsize()
Returns the content size of the subtree rooted at this node. |
DiffElement |
getDiffParent()
Similar to Element.getParent(). |
int |
getLeftmostLeafNum()
Returns the number of the leftmost leaf. |
int |
getNodeNumber()
Returns the number of this node within the tree. |
DiffElement |
getRoot()
Returns the root element of the tree containing this node. |
int |
getTreesize()
Returns the size of (the number of nodes in) the subtree rooted at this node. |
java.lang.String |
getXpath()
Returns a String containing the XPath of this node. |
boolean |
hasLeftSibling()
Indicates whether this node has a sibling to its left. |
java.lang.String |
toString()
Returns a String containing information about this node. |
| Methods inherited from class org.jdom.Element |
addAttribute, addAttribute, addContent, addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, detach, equals, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildText, getChildText, getChildTextTrim, getChildTextTrim, getContent, getCopy, getCopy, getDocument, getMixedContent, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getParent, getQualifiedName, getSerializedForm, getText, getTextNormalize, getTextTrim, hasChildren, hashCode, hasMixedContent, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setChildren, setContent, setDocument, setMixedContent, setName, setNamespace, setParent, setText |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DiffElement(java.lang.String name)
public DiffElement(java.lang.String name,
org.jdom.Namespace namespace)
public DiffElement(java.lang.String name,
java.lang.String uri)
public DiffElement(java.lang.String name,
java.lang.String prefix,
java.lang.String uri)
| Method Detail |
public int getTreesize()
public int getContentsize()
public int getChildNumber()
public int getNodeNumber()
public boolean hasLeftSibling()
public int getLeftmostLeafNum()
public DiffElement getDiffParent()
public java.util.List getChildren()
getChildren in class org.jdom.Elementpublic java.lang.Object[] getContentAsArray()
public org.jdom.Attribute[] getAttributesAsArray()
public java.lang.String getXpath()
throws org.jdom.JDOMException
public java.lang.String toString()
toString in class org.jdom.Elementpublic DiffElement getRoot()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||