Uses of Class
org.jdom.Content
Packages that use Content
Package
Description
Classes to represent the components of an XML document.
Classes to output JDOM documents to various destinations.
-
Uses of Content in org.jdom
Modifier and TypeClassDescriptionclass
An XML CDATA section.class
An XML comment.class
An XML DOCTYPE declaration.class
An XML element.class
An XML entity reference.class
An XML processing instruction.class
Character-based XML content.Modifier and TypeMethodDescriptionContent.detach()
Detaches this child from its parent or does nothing if the child has no parent.Document.getContent
(int index) Element.getContent
(int index) Parent.getContent
(int index) Returns the child at the given index.Document.removeContent
(int index) Element.removeContent
(int index) Parent.removeContent
(int index) Removes and returns the child at the given index, or returns null if there's no such child.protected Content
Sets the parent of this Content.Modifier and TypeMethodDescriptionvoid
DefaultJDOMFactory.addContent
(Parent parent, Content child) Document.addContent
(int index, Content child) Inserts the child into the content list at the given index.Document.addContent
(Content child) Appends the child to the end of the content list.Element.addContent
(int index, Content child) Inserts the child into the content list at the given index.Element.addContent
(Content child) Appends the child to the end of the element's content list.void
JDOMFactory.addContent
(Parent parent, Content content) void
UncheckedJDOMFactory.addContent
(Parent parent, Content child) int
int
int
Returns the index of the supplied child in the content list, or -1 if not a child of this parent.boolean
Document.removeContent
(Content child) boolean
Element.removeContent
(Content child) boolean
Parent.removeContent
(Content child) Removes a single child node from the content list.Document.setContent
(int index, Content child) Document.setContent
(Content child) Set this document's content to be the supplied child.Element.setContent
(int index, Content child) Replace the current child the given index with the supplied child.Element.setContent
(Content child) Set this element's content to be the supplied child. -
Uses of Content in org.jdom.output
Methods in org.jdom.output with parameters of type ContentModifier and TypeMethodDescriptionvoid
SAXOutputter.outputFragment
(Content node) This will output a single JDOM nodes as a fragment of an XML document, firing off the SAX events that have been registered.