Uses of Class
org.jdom.Element
-
Packages that use Element Package Description org.jdom Classes to represent the components of an XML document.org.jdom.input Classes to build JDOM documents from various sources.org.jdom.output Classes to output JDOM documents to various destinations.org.jdom.transform Classes to help with transformations, based on the JAXP TrAX classes. -
-
Uses of Element in org.jdom
Fields in org.jdom declared as Element Modifier and Type Field Description protected ElementAttribute. parentParent element, or null if noneMethods in org.jdom that return Element Modifier and Type Method Description ElementElement. addContent(int index, java.util.Collection 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 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.ElementDocument. detachRootElement()Detach the rootfrom this document.ElementElementDefaultJDOMFactory. 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(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.NamespaceElementUncheckedJDOMFactory. element(java.lang.String name)ElementUncheckedJDOMFactory. element(java.lang.String name, java.lang.String uri)ElementUncheckedJDOMFactory. element(java.lang.String name, java.lang.String prefix, java.lang.String uri)ElementUncheckedJDOMFactory. element(java.lang.String name, Namespace namespace)ElementElement. getChild(java.lang.String name)This returns the first child element within this element with the given local name and belonging to no namespace.ElementElement. getChild(java.lang.String name, 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.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 newAttributes)This sets the attributes of the element.ElementElement. setAttributes(java.util.List 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 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.jdom with parameters of type Element Modifier and Type Method Description voidDefaultJDOMFactory. addNamespaceDeclaration(Element parent, Namespace additional)voidJDOMFactory. addNamespaceDeclaration(Element element, Namespace additional)voidUncheckedJDOMFactory. addNamespaceDeclaration(Element parent, Namespace additional)static java.lang.StringVerifier. checkNamespaceCollision(Attribute attribute, Element element)static java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, Element element)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)voidUncheckedJDOMFactory. setAttribute(Element parent, Attribute a)protected AttributeAttribute. setParent(Element parent)This will set the parent of thisAttribute.DocumentDocument. setRootElement(Element rootElement)This sets the rootfor theElementDocument.Constructors in org.jdom 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.jdom.input
Methods in org.jdom.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 ElementElementSAXHandler. getCurrentElement()Returns the being-parsed element.Methods in org.jdom.input 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.jdom.output
Methods in org.jdom.output with parameters of type Element Modifier and Type Method Description voidSAXOutputter. output(Element node)This will output a single JDOM element as a document, firing off the SAX events that have been registered.voidXMLOutputter. output(Element element, java.io.OutputStream out)voidXMLOutputter. output(Element element, java.io.Writer out)voidXMLOutputter. 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. outputString(Element element)Return a string representing an element.protected voidXMLOutputter. printAttributes(java.io.Writer out, java.util.List attributes, Element parent, XMLOutputter.NamespaceStack namespaces)This will handle printing of alist.Attributeprotected voidXMLOutputter. printElement(java.io.Writer out, Element element, int level, XMLOutputter.NamespaceStack namespaces) -
Uses of Element in org.jdom.transform
Constructors in org.jdom.transform with parameters of type Element Constructor Description JDOMSource(Element source)Creates a JDOM TrAX source wrapping a JDOM element.
-