org.jdom.Parent nodes.
org.jdom.Comment , org.jdom.DocType , org.jdom.Element , org.jdom.EntityRef , org.jdom.Parent , org.jdom.ProcessingInstruction , org.jdom.Text
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: a detached deep copy of this child and descendantsOverrides java. |
| public Content | Returns: this child detachedDetaches this child from its parent or does nothing if the child has no parent. |
| public final boolean | Returns: boolean - whether the Content is
equal to the supplied Object.Object to compare to.Overrides java. |
| public Document | Returns: this child's owning document or null if noneReturn this child's owning document or null if the branch containing this child is currently not attached to a document. |
| public Parent | Returns: this child's parent or null if noneReturn this child's parent, or null if this child is currently not attached. |
| public Element | Returns: the containing Element or null if unattached or a root elementA convenience method that returns any parent element for this element, or null if the element is unattached or is a root element. |
| public abstract String | Returns: xpath string value of this child.Returns the XPath 1.0 string value of this child. |
| public final int | Returns: int - hash code.Overrides java. Content item.
|
| protected Content |
| parent | back to summary |
|---|---|
| protected Parent parent | |
| Content | back to summary |
|---|---|
| protected Content() | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Returns a deep, unattached copy of this child and its descendants detached from any parent or document.
| |
| detach | back to summary |
|---|---|
| public Content detach() Detaches this child from its parent or does nothing if the child has no parent.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object ob) Overrides java. This tests for equality of this Content object to the supplied object. Content items are considered equal only if they are referentially equal (i.e. the same object). User code may choose to compare objects based on their properties instead.
| |
| getDocument | back to summary |
|---|---|
| public Document getDocument() Return this child's owning document or null if the branch containing this child is currently not attached to a document.
| |
| getParent | back to summary |
|---|---|
| public Parent getParent() Return this child's parent, or null if this child is currently
not attached. The parent can be either an
| |
| getParentElement | back to summary |
|---|---|
| public Element getParentElement() A convenience method that returns any parent element for this element, or null if the element is unattached or is a root element. This was the original behavior of getParent() in JDOM Beta 9 which began returning Parent in Beta 10. This method provides a convenient upgrade path for JDOM Beta 10 and 1.0 users.
| |
| getValue | back to summary |
|---|---|
| public abstract String getValue() Returns the XPath 1.0 string value of this child.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. This returns the hash code for this
| |
| setParent | back to summary |
|---|---|
| protected Content setParent(Parent parent) Sets the parent of this Content. The caller is responsible for removing any pre-existing parentage. | |