| java.lang.Object org.jdom.Content
All known Subclasses: org.jdom.EntityRef, org.jdom.Comment, org.jdom.Text, org.jdom.DocType, org.jdom.Element, org.jdom.ProcessingInstruction,
Constructor Summary | |
protected | Content() |
Method Summary | |
public Object | clone() Returns a deep, unattached copy of this child and its descendants
detached from any parent or document. | public Content | detach() Detaches this child from its parent or does nothing if the child
has no parent. | final public boolean | equals(Object ob) 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). | public Document | getDocument() Return this child's owning document or null if the branch containing
this child is currently not attached to a document. | public Parent | getParent() Return this child's parent, or null if this child is currently
not attached. | 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. | abstract public String | getValue() Returns the XPath 1.0 string value of this child. | final public int | hashCode() This returns the hash code for this Content item. | protected Content | setParent(Parent parent) Sets the parent of this Content. |
Content | protected Content()(Code) | | |
clone | public Object clone()(Code) | | Returns a deep, unattached copy of this child and its descendants
detached from any parent or document.
a detached deep copy of this child and descendants |
detach | public Content detach()(Code) | | Detaches this child from its parent or does nothing if the child
has no parent.
this child detached |
equals | final public boolean equals(Object ob)(Code) | | 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.
Parameters: ob - Object to compare to. boolean - whether the Content isequal to the supplied Object . |
getDocument | public Document getDocument()(Code) | | Return this child's owning document or null if the branch containing
this child is currently not attached to a document.
this child's owning document or null if none |
getParent | public Parent getParent()(Code) | | Return this child's parent, or null if this child is currently
not attached. The parent can be either an
Element or a
Document .
this child's parent or null if none |
getParentElement | public Element getParentElement()(Code) | | 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.
the containing Element or null if unattached or a root element |
getValue | abstract public String getValue()(Code) | | Returns the XPath 1.0 string value of this child.
xpath string value of this child. |
hashCode | final public int hashCode()(Code) | | This returns the hash code for this Content item.
int - hash code. |
setParent | protected Content setParent(Parent parent)(Code) | | Sets the parent of this Content. The caller is responsible for removing
any pre-existing parentage.
Parameters: parent - new parent element the target element |
|
|