Uses of Class
org.jdom2.Content
Packages that use Content
Package
Description
Classes representing the components of an XML document.
Classes to both filter and generically type-cast nodes of a document
based on type, name, value, or other aspects, and to boolean
AND/OR/NEGATE these rules.
Classes to build JDOM documents from various sources.
Extended JDOM Content Classes that contain location coordinates.
Classes to output JDOM documents to various destinations.
Classes used to implement output functionality that are not part of the
actual Output API, but rather part of the implementation.
Classes to help with transformations, based on the JAXP TrAX classes.
-
Uses of Content in org.jdom2
Modifier and TypeClassDescriptionclassAn XML CDATA section.classAn XML comment.classAn XML DOCTYPE declaration.classAn XML element.classAn XML entity reference.classAn XML processing instruction.classAn XML character sequence.Modifier and TypeMethodDescriptionDocument.getContent(Filter<F> filter) Return a filtered view of thisDocument's content.Element.getContent(Filter<E> filter) Return a filter view of thisElement's content.Parent.getContent(Filter<E> filter) Returns as aListthe content of this parent that matches the supplied filter.<F extends Content>
IteratorIterable<F> Document.getDescendants(Filter<F> filter) Returns an iterator that walks over all descendants in document order applying the Filter to return only elements that match the filter rule.<F extends Content>
IteratorIterable<F> Element.getDescendants(Filter<F> filter) Returns an iterator that walks over all descendants in document order applying the Filter to return only content that match the filter rule.<E extends Content>
IteratorIterable<E> Parent.getDescendants(Filter<E> filter) Returns anIteratorthat walks over all descendants in document order applying the Filter to return only content that match the filter rule.Document.removeContent(Filter<F> filter) Remove all child content from this parent matching the supplied filter.Element.removeContent(Filter<F> filter) Remove all child content from this parent matching the supplied filter.Parent.removeContent(Filter<E> filter) Removes from this parent all child content matching the given filter and returns a list of the detached children.<E extends Content>
voidElement.sortContent(Filter<E> filter, Comparator<? super E> comparator) Sort the child content of this Element that matches the Filter, using a mechanism that is safe for JDOM content.Modifier and TypeMethodDescriptionContent.clone()Content.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 ContentSets the parent of this Content.Modifier and TypeMethodDescriptionDocument.cloneContent()Element.cloneContent()Parent.cloneContent()Returns a list containing detached clones of this parent's content list.Document.getContent()This will return all content for theDocument.Element.getContent()This returns the full content of the element as a List which may contain objects of typeText,Element,Comment,ProcessingInstruction,CDATA, andEntityRef.Parent.getContent()Document.getDescendants()Returns an iterator that walks over all descendants in document order.Element.getDescendants()Returns an iterator that walks over all descendants in document order.Parent.getDescendants()Returns anIteratorthat walks over all descendants in document order.Document.removeContent()Removes all child content from this parent.Element.removeContent()Removes all child content from this parent.Parent.removeContent()Removes all content from this parent and returns the detached children.Modifier and TypeMethodDescriptionvoidDefaultJDOMFactory.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.voidJDOMFactory.addContent(Parent parent, Content content) This will add the specified content to the specified parent instanceParent.addContent(int index, Content child) Inserts the child into the content list at the given index.Parent.addContent(Content child) Appends the child to the end of the content list.voidUncheckedJDOMFactory.addContent(Parent parent, Content child) voidDocument.canContainContent(Content child, int index, boolean replace) voidElement.canContainContent(Content child, int index, boolean replace) voidParent.canContainContent(Content content, int index, boolean replace) Test whether this Parent instance can contain the specified content at the specified position.intintintReturns the index of the supplied child in the content list, or -1 if not a child of this parent.booleanDocument.removeContent(Content child) booleanElement.removeContent(Content child) booleanParent.removeContent(Content child) Removes a single child node from the content list.Document.setContent(int index, Content child) Replace the current child the given index with the supplied 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.Modifier and TypeMethodDescriptionDocument.addContent(int index, Collection<? extends Content> c) Inserts the content in a collection into the content list at the given index.Document.addContent(Collection<? extends Content> c) Appends all children in the given collection to the end of the content list.Element.addContent(int index, Collection<? extends Content> newContent) Inserts the content in a collection into the content list at the given index.Element.addContent(Collection<? extends Content> newContent) Appends all children in the given collection to the end of the content list.Parent.addContent(int index, Collection<? extends Content> c) Inserts the content in a collection into the content list at the given index.Parent.addContent(Collection<? extends Content> c) Appends all children in the given collection to the end of the content list.Document.setContent(int index, Collection<? extends Content> collection) Replace the child at the given index with the supplied collection.Document.setContent(Collection<? extends Content> newContent) This sets the content of theDocument.Element.setContent(int index, Collection<? extends Content> newContent) Replace the child at the given index with the supplied collection.Element.setContent(Collection<? extends Content> newContent) This sets the content of the element.voidElement.sortContent(Comparator<? super Content> comparator) Sort the contents of this Element using a mechanism that is safe for JDOM content. -
Uses of Content in org.jdom2.filter
Methods in org.jdom2.filter that return ContentModifier and TypeMethodDescriptionCheck to see if the object matches according to the filter mask.Methods in org.jdom2.filter that return types with arguments of type Content -
Uses of Content in org.jdom2.input
Methods in org.jdom2.input that return ContentModifier and TypeMethodDescriptionStAXStreamBuilder.fragment(XMLStreamReader reader) Read the current XML Fragment from the XMLStreamReader.Methods in org.jdom2.input that return types with arguments of type ContentModifier and TypeMethodDescriptionStAXStreamBuilder.buildFragments(XMLStreamReader reader, StAXFilter filter) Read the entire XMLStreamReader and from it build a list of Content that conforms to the rules in the supplied StAXFilter. -
Uses of Content in org.jdom2.located
Subclasses of Content in org.jdom2.locatedModifier and TypeClassDescriptionclassAn XML CDATA section.classAn XML comment.classAn XML DOCTYPE declaration.classThis Element specialization contains the location information as parsed.classAn XML entity reference.classAn XML processing instruction.classAn XML character sequence. -
Uses of Content in org.jdom2.output
Methods in org.jdom2.output with parameters of type ContentModifier and TypeMethodDescriptionvoidSAXOutputter.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.Method parameters in org.jdom2.output with type arguments of type ContentModifier and TypeMethodDescriptionThis converts the JDOMAttributeparameter to a DOM Attr Node, returning the DOM version.This converts the list of JDOMContentin to a list of DOM Nodes, returning the DOM version.voidThis will output a list of JDOM nodes as a document, firing off the SAX events that have been registered.final voidStAXEventOutputter.output(List<? extends Content> list, XMLEventConsumer out) This will handle printing out a list of nodes.final voidStAXStreamOutputter.output(List<? extends Content> list, XMLStreamWriter out) This will handle printing out a list of nodes.final voidXMLOutputter.output(List<? extends Content> list, OutputStream out) This will handle printing out a list of nodes.final voidThis will handle printing out a list of nodes.voidSAXOutputter.outputFragment(List<? extends Content> nodes) This will output a list of JDOM nodes as a fragment of an XML document, firing off the SAX events that have been registered.final StringXMLOutputter.outputString(List<? extends Content> list) Return a string representing a List ofContentnodes. -
Uses of Content in org.jdom2.output.support
Methods in org.jdom2.output.support that return ContentModifier and TypeMethodDescriptionprotected final ContentAbstractFormattedWalker.get(int index) Get the content at a position in the input content.final ContentAbstractFormattedWalker.next()Walker.next()Similar to an Iterator, but null return values need special treatment.WalkerPRESERVE.next()Methods in org.jdom2.output.support with parameters of type ContentModifier and TypeMethodDescriptionvoidAdd some JDOM Content (typically an EntityRef) that will be treated as part of the Text-like sequence.protected NodeAbstractDOMOutputProcessor.helperContentDispatcher(FormatStack fstack, NamespaceStack nstack, Document basedoc, Content content) This method contains code which is reused in a number of places.Method parameters in org.jdom2.output.support with type arguments of type ContentModifier and TypeMethodDescriptionprotected WalkerAbstractOutputProcessor.buildWalker(FormatStack fstack, List<? extends Content> content, boolean escape) Create a walker to process Content List values.voidvoidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, List<? extends Content> list) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, List<? extends Content> list) voidThis will convert the list of JDOMusing the given DOM Document to create the resulting list of DOM Nodes.ContentvoidThis will handle printing out a list of nodes.voidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, List<? extends Content> list) This will handle printing out a list of nodes.voidStAXStreamProcessor.process(XMLStreamWriter out, Format format, List<? extends Content> list) This will handle printing out a list of nodes.voidThis will handle printing out a list of nodes.voidAbstractSAXOutputProcessor.processAsDocument(SAXTarget out, Format format, List<? extends Content> nodes) voidSAXOutputProcessor.processAsDocument(SAXTarget out, Format format, List<? extends Content> list) This will handle printing out a list of nodes that is encapsulated in start/end Document SAX events.Constructor parameters in org.jdom2.output.support with type arguments of type ContentModifierConstructorDescriptionAbstractFormattedWalker(List<? extends Content> xx, FormatStack fstack, boolean doescape) Create a Walker that preserves all content in its raw state.WalkerNORMALIZE(List<? extends Content> content, FormatStack fstack, boolean escape) Create the Trimmed walker instance.WalkerPRESERVE(List<? extends Content> content) Create a Walker that preserves all content in its raw state.WalkerTRIM(List<? extends Content> content, FormatStack fstack, boolean escape) Create the Trimmed walker instance.WalkerTRIM_FULL_WHITE(List<? extends Content> content, FormatStack fstack, boolean escape) Create the Trimmed walker instance. -
Uses of Content in org.jdom2.transform
Methods in org.jdom2.transform that return types with arguments of type ContentModifier and TypeMethodDescriptionJDOMSource.getNodes()Returns the source node list used by this TrAX source.JDOMResult.getResult()Returns the result of an XSL Transformation as a list of JDOM nodes.Transforms the given input nodes to a list of output nodes.Method parameters in org.jdom2.transform with type arguments of type ContentModifier and TypeMethodDescriptionvoidSets the source node list used by this TrAX source.voidSets the object(s) produced as result of an XSL Transformation.Transforms the given input nodes to a list of output nodes.Constructor parameters in org.jdom2.transform with type arguments of type ContentModifierConstructorDescriptionJDOMSource(List<? extends Content> source) Creates a JDOM TrAX source wrapping a list of JDOM nodes.