org.jdom
public abstract class Content extends Object implements Cloneable, Serializable
Version: $Revision: 1.5 $, $Date: 2004/09/07 06:37:20 $
See Also: Comment DocType Element EntityRef Parent ProcessingInstruction
| Field Summary | |
|---|---|
| protected Parent | parent |
| Constructor Summary | |
|---|---|
| protected | Content() |
| Method Summary | |
|---|---|
| Object | clone()
Returns a deep, unattached copy of this child and its descendants
detached from any parent or document.
|
| Content | detach()
Detaches this child from its parent or does nothing if the child
has no parent.
|
| boolean | equals(Object ob)
This tests for equality of this Content object to the supplied object.
|
| Document | getDocument()
Return this child's owning document or null if the branch containing
this child is currently not attached to a document.
|
| Parent | getParent()
Return this child's parent, or null if this child is currently
not attached. |
| 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. |
| abstract String | getValue()
Returns the XPath 1.0 string value of this child.
|
| int | hashCode()
This returns the hash code for this Content item.
|
| protected Content | setParent(Parent parent)
Sets the parent of this Content. |
Returns: a detached deep copy of this child and descendants
Returns: this child detached
Parameters: ob Object to compare to.
Returns: boolean - whether the Content is
equal to the supplied Object.
Returns: this child's owning document or null if none
Returns: this child's parent or null if none
Returns: the containing Element or null if unattached or a root element
Returns: xpath string value of this child.
Content item.
Returns: int - hash code.
Parameters: parent new parent element
Returns: the target element