Uses of Class
org.jdom2.Element
-
Packages that use Element Package Description org.jdom2 Classes representing the components of an XML document.org.jdom2.filter 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.org.jdom2.input Classes to build JDOM documents from various sources.org.jdom2.input.sax Support classes for building JDOM documents and content using SAX parsers.org.jdom2.located Extended JDOM Content Classes that contain location coordinates.org.jdom2.output Classes to output JDOM documents to various destinations.org.jdom2.output.support Classes used to implement output functionality that are not part of the actual Output API, but rather part of the implementation.org.jdom2.transform Classes to help with transformations, based on the JAXP TrAX classes.org.jdom2.util Classes that implement useful functionality, but are not easy to categorise. -
-
Uses of Element in org.jdom2
Fields in org.jdom2 declared as Element Modifier and Type Field Description protected ElementAttribute. parentThe parent to which this Attribute belongs.Methods in org.jdom2 that return Element Modifier and Type Method Description ElementElement. addContent(int index, java.util.Collection<? extends Content> newContent)Inserts the content in a collection into the content list at the given index.ElementElement. addContent(int index, Content child)Inserts the child into the content list at the given index.ElementElement. addContent(java.lang.String str)This adds text content to this element.ElementElement. addContent(java.util.Collection<? extends Content> newContent)Appends all children in the given collection to the end of the content list.ElementElement. addContent(Content child)Appends the child to the end of the element's content list.ElementElement. clone()This returns a deep clone of this element.ElementElement. detach()ElementDocument. detachRootElement()Detach the rootfrom this document.ElementElementDefaultJDOMFactory. element(int line, int col, java.lang.String name)ElementDefaultJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String uri)ElementDefaultJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String prefix, java.lang.String uri)ElementDefaultJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)ElementDefaultJDOMFactory. element(java.lang.String name)ElementDefaultJDOMFactory. element(java.lang.String name, java.lang.String uri)ElementDefaultJDOMFactory. element(java.lang.String name, java.lang.String prefix, java.lang.String uri)ElementDefaultJDOMFactory. element(java.lang.String name, Namespace namespace)ElementJDOMFactory. element(int line, int col, java.lang.String name)This will create anElementin no.NamespaceElementJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String uri)This will create a newElementwith the supplied (local) name, and specifies the URI of thetheNamespaceElementshould be in, resulting it being unprefixed (in the default namespace).ElementJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String prefix, java.lang.String uri)This will create a newElementwith the supplied (local) name, and specifies the prefix and URI of thetheNamespaceElementshould be in.ElementJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)This will create a newElementwith the supplied (local) name, and define theto be used.NamespaceElementJDOMFactory. element(java.lang.String name)This will create anElementin no.NamespaceElementJDOMFactory. element(java.lang.String name, java.lang.String uri)This will create a newElementwith the supplied (local) name, and specifies the URI of thetheNamespaceElementshould be in, resulting it being unprefixed (in the default namespace).ElementJDOMFactory. element(java.lang.String name, java.lang.String prefix, java.lang.String uri)This will create a newElementwith the supplied (local) name, and specifies the prefix and URI of thetheNamespaceElementshould be in.ElementJDOMFactory. element(java.lang.String name, Namespace namespace)This will create a newElementwith the supplied (local) name, and define theto be used.NamespaceElementSlimJDOMFactory. element(int line, int col, java.lang.String name)ElementSlimJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String uri)ElementSlimJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String prefix, java.lang.String uri)ElementSlimJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)ElementUncheckedJDOMFactory. element(int line, int col, java.lang.String name)ElementUncheckedJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String uri)ElementUncheckedJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String prefix, java.lang.String uri)ElementUncheckedJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)ElementElement. getChild(java.lang.String cname)This returns the first child element within this element with the given local name and belonging to no namespace.ElementElement. getChild(java.lang.String cname, Namespace ns)This returns the first child element within this element with the given local name and belonging to the given namespace.ElementAttribute. getParent()This will return the parent of thisAttribute.ElementEntityRef. getParent()ElementText. getParent()ElementContent. getParentElement()A convenience method that returns any parent element for this element, or null if the element is unattached or is a root element.ElementDocument. getRootElement()This will return the rootElementfor thisDocumentElementElement. setAttribute(java.lang.String name, java.lang.String value)This sets an attribute value for this element.ElementElement. setAttribute(java.lang.String name, java.lang.String value, Namespace ns)This sets an attribute value for this element.ElementElement. setAttribute(Attribute attribute)This sets an attribute value for this element.ElementElement. setAttributes(java.util.Collection<? extends Attribute> newAttributes)This sets the attributes of the element.ElementElement. setContent(int index, Content child)Replace the current child the given index with the supplied child.ElementElement. setContent(java.util.Collection<? extends Content> newContent)This sets the content of the element.ElementElement. setContent(Content child)Set this element's content to be the supplied child.ElementElement. setName(java.lang.String name)Sets the (local) name of the element.ElementElement. setNamespace(Namespace namespace)Sets the element'sNamespace.ElementElement. setText(java.lang.String text)Sets the content of the element to be the text given.Methods in org.jdom2 that return types with arguments of type Element Modifier and Type Method Description java.util.List<Element>Element. getChildren()This returns aListof all the child elements nested directly (one level deep) within this element, asElementobjects.java.util.List<Element>Element. getChildren(java.lang.String cname)This returns aListof all the child elements nested directly (one level deep) within this element with the given local name and belonging to no namespace, returned asElementobjects.java.util.List<Element>Element. getChildren(java.lang.String cname, Namespace ns)This returns aListof all the child elements nested directly (one level deep) within this element with the given local name and belonging to the given Namespace, returned asElementobjects.Methods in org.jdom2 with parameters of type Element Modifier and Type Method Description voidDefaultJDOMFactory. addNamespaceDeclaration(Element parent, Namespace additional)voidJDOMFactory. addNamespaceDeclaration(Element element, Namespace additional)Adds a namespace declaration to an ElementvoidUncheckedJDOMFactory. addNamespaceDeclaration(Element parent, Namespace additional)static java.lang.StringVerifier. checkNamespaceCollision(Attribute attribute, Element element)static java.lang.StringVerifier. checkNamespaceCollision(Attribute attribute, Element element, int ignoreatt)static java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, Element element)static java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, Element element, int ignoreatt)DocumentDefaultJDOMFactory. document(Element rootElement)DocumentDefaultJDOMFactory. document(Element rootElement, DocType docType)DocumentDefaultJDOMFactory. document(Element rootElement, DocType docType, java.lang.String baseURI)DocumentJDOMFactory. document(Element rootElement)DocumentJDOMFactory. document(Element rootElement, DocType docType)DocumentJDOMFactory. document(Element rootElement, DocType docType, java.lang.String baseURI)DocumentUncheckedJDOMFactory. document(Element rootElement)DocumentUncheckedJDOMFactory. document(Element rootElement, DocType docType)DocumentUncheckedJDOMFactory. document(Element rootElement, DocType docType, java.lang.String baseURI)booleanElement. isAncestor(Element element)Determines if this element is the ancestor of another element.voidDefaultJDOMFactory. setAttribute(Element parent, Attribute a)voidJDOMFactory. setAttribute(Element element, Attribute a)Sets a specific Attribute on an ElementvoidUncheckedJDOMFactory. setAttribute(Element parent, Attribute a)protected AttributeAttribute. setParent(Element parent)Set this Attribute's parent.voidDefaultJDOMFactory. setRoot(Document doc, Element root)voidJDOMFactory. setRoot(Document doc, Element root)Sets the 'root' Element for a Document.voidUncheckedJDOMFactory. setRoot(Document doc, Element root)DocumentDocument. setRootElement(Element rootElement)This sets the rootfor theElementDocument.Method parameters in org.jdom2 with type arguments of type Element Modifier and Type Method Description voidElement. sortChildren(java.util.Comparator<? super Element> comparator)Sort the child Elements of this Element using a mechanism that is safe for JDOM content.Constructors in org.jdom2 with parameters of type Element Constructor Description Document(Element rootElement)Document(Element rootElement, DocType docType)Document(Element rootElement, DocType docType, java.lang.String baseURI) -
Uses of Element in org.jdom2.filter
Methods in org.jdom2.filter that return Element Modifier and Type Method Description ElementElementFilter. filter(java.lang.Object content)Check to see if the object matches a predefined set of rules.Methods in org.jdom2.filter that return types with arguments of type Element Modifier and Type Method Description static Filter<Element>Filters. element()Return a Filter that matches anyElementdata.static Filter<Element>Filters. element(java.lang.String name)Return a Filter that matches anyElementdata with the specified name.static Filter<Element>Filters. element(java.lang.String name, Namespace ns)Return a Filter that matches anyElementdata with the specified name and Namespace.static Filter<Element>Filters. element(Namespace ns)Return a Filter that matches anyElementdata with the specified Namespace. -
Uses of Element in org.jdom2.input
Methods in org.jdom2.input that return Element Modifier and Type Method Description ElementDOMBuilder. build(org.w3c.dom.Element domElement)This will build a JDOM Element from an existing DOM Element -
Uses of Element in org.jdom2.input.sax
Methods in org.jdom2.input.sax that return Element Modifier and Type Method Description ElementSAXHandler. getCurrentElement()Returns the being-parsed element.Methods in org.jdom2.input.sax with parameters of type Element Modifier and Type Method Description protected voidSAXHandler. pushElement(Element element)Pushes an element onto the tree under construction. -
Uses of Element in org.jdom2.located
Subclasses of Element in org.jdom2.located Modifier and Type Class Description classLocatedElementThis Element specialization contains the location information as parsed.Methods in org.jdom2.located that return Element Modifier and Type Method Description ElementLocatedJDOMFactory. element(int line, int col, java.lang.String name)ElementLocatedJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String uri)ElementLocatedJDOMFactory. element(int line, int col, java.lang.String name, java.lang.String prefix, java.lang.String uri)ElementLocatedJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace) -
Uses of Element in org.jdom2.output
Methods in org.jdom2.output with parameters of type Element Modifier and Type Method Description org.w3c.dom.ElementDOMOutputter. output(Element element)This converts the JDOMElementparameter to a DOM Element, returning the DOM version.org.w3c.dom.ElementDOMOutputter. output(org.w3c.dom.Document basedoc, Element element)This converts the JDOMElementparameter to a DOM Element, returning the DOM version.voidSAXOutputter. output(Element node)This will output a single JDOM element as a document, firing off the SAX events that have been registered.voidStAXEventOutputter. output(Element element, javax.xml.stream.util.XMLEventConsumer out)voidStAXStreamOutputter. output(Element element, javax.xml.stream.XMLStreamWriter out)voidXMLOutputter. output(Element element, java.io.OutputStream out)voidXMLOutputter. output(Element element, java.io.Writer out)voidStAXEventOutputter. outputElementContent(Element element, javax.xml.stream.util.XMLEventConsumer out)This will handle printing out an's content only, not including its tag, and attributes.ElementvoidStAXStreamOutputter. outputElementContent(Element element, javax.xml.stream.XMLStreamWriter out)This will handle printing out an's content only, not including its tag, and attributes.ElementvoidXMLOutputter. outputElementContent(Element element, java.io.OutputStream out)This will handle printing out an's content only, not including its tag, and attributes.ElementvoidXMLOutputter. outputElementContent(Element element, java.io.Writer out)This will handle printing out an's content only, not including its tag, and attributes.Elementjava.lang.StringXMLOutputter. outputElementContentString(Element element)This will handle printing out an's content only, not including its tag, and attributes.Elementjava.lang.StringXMLOutputter. outputString(Element element)Return a string representing anElement. -
Uses of Element in org.jdom2.output.support
Methods in org.jdom2.output.support with parameters of type Element Modifier and Type Method Description protected org.w3c.dom.ElementAbstractDOMOutputProcessor. printElement(FormatStack fstack, NamespaceStack nstack, org.w3c.dom.Document basedoc, Element element)This will handle printing of anElement.protected voidAbstractSAXOutputProcessor. printElement(SAXTarget out, FormatStack fstack, NamespaceStack nstack, Element element)This will handle printing of anElement.protected voidAbstractStAXEventProcessor. printElement(javax.xml.stream.util.XMLEventConsumer out, FormatStack fstack, NamespaceStack nstack, javax.xml.stream.XMLEventFactory eventfactory, Element element)This will handle printing of anElement.protected voidAbstractStAXStreamProcessor. printElement(javax.xml.stream.XMLStreamWriter out, FormatStack fstack, NamespaceStack nstack, Element element)This will handle printing of anElement.protected voidAbstractXMLOutputProcessor. printElement(java.io.Writer out, FormatStack fstack, NamespaceStack nstack, Element element)This will handle printing of anElement.org.w3c.dom.ElementAbstractDOMOutputProcessor. process(org.w3c.dom.Document basedoc, Format format, Element element)voidAbstractSAXOutputProcessor. process(SAXTarget out, Format format, Element element)voidAbstractStAXEventProcessor. process(javax.xml.stream.util.XMLEventConsumer out, Format format, javax.xml.stream.XMLEventFactory eventfactory, Element element)voidAbstractStAXStreamProcessor. process(javax.xml.stream.XMLStreamWriter out, Format format, Element element)voidAbstractXMLOutputProcessor. process(java.io.Writer out, Format format, Element element)org.w3c.dom.ElementDOMOutputProcessor. process(org.w3c.dom.Document basedoc, Format format, Element element)This will convert theusing the given DOM Document to create the resulting DOM Element.ElementvoidSAXOutputProcessor. process(SAXTarget out, Format format, Element element)voidStAXEventProcessor. process(javax.xml.stream.util.XMLEventConsumer out, Format format, javax.xml.stream.XMLEventFactory eventfactory, Element element)voidStAXStreamProcessor. process(javax.xml.stream.XMLStreamWriter out, Format format, Element element)voidXMLOutputProcessor. process(java.io.Writer out, Format format, Element element)voidAbstractSAXOutputProcessor. processAsDocument(SAXTarget out, Format format, Element node)voidSAXOutputProcessor. processAsDocument(SAXTarget out, Format format, Element element) -
Uses of Element in org.jdom2.transform
Constructors in org.jdom2.transform with parameters of type Element Constructor Description JDOMSource(Element source)Creates a JDOM TrAX source wrapping a JDOM element. -
Uses of Element in org.jdom2.util
Methods in org.jdom2.util with parameters of type Element Modifier and Type Method Description voidNamespaceStack. push(Element element)Create a new in-scope level for the Stack based on an Element.
-