程序包 | 说明 |
---|---|
org.jdom2 | |
org.jdom2.located |
限定符和类型 | 类和说明 |
---|---|
class |
Document
An XML document.
|
class |
Element
An XML element.
|
限定符和类型 | 方法和说明 |
---|---|
Parent |
Parent.addContent(java.util.Collection<? extends Content> c)
Appends all children in the given collection to the end of
the content list.
|
Parent |
Parent.addContent(Content child)
Appends the child to the end of the content list.
|
Parent |
Parent.addContent(int index,
java.util.Collection<? extends Content> c)
Inserts the content in a collection into the content list
at the given index.
|
Parent |
Parent.addContent(int index,
Content child)
Inserts the child into the content list at the given index.
|
Parent |
Parent.getParent()
Return this parent's parent, or null if this parent is currently
not attached to another parent.
|
Parent |
Document.getParent()
Always returns null, Document cannot have a parent.
|
Parent |
Content.getParent()
Return this child's parent, or null if this child is currently
not attached.
|
Parent |
Element.setContent(int index,
java.util.Collection<? extends Content> newContent)
Replace the child at the given index whith the supplied
collection.
|
限定符和类型 | 方法和说明 |
---|---|
void |
UncheckedJDOMFactory.addContent(Parent parent,
Content child) |
void |
JDOMFactory.addContent(Parent parent,
Content content)
This will add the specified content to the specified parent instance
|
void |
DefaultJDOMFactory.addContent(Parent parent,
Content child) |
限定符和类型 | 类和说明 |
---|---|
class |
LocatedElement
This Element specialization contains the location information as parsed.
|