|
|||||||||
| Home >> All >> org >> [ jdom overview ] | PREV NEXT | ||||||||
Uses of Class
org.jdom.Element
| Uses of Element in org.jdom |
| Fields in org.jdom declared as Element | |
private Element |
AttributeList.parent
The parent Element |
| Methods in org.jdom that return Element | |
Element |
UncheckedJDOMFactory.element(java.lang.String name,
Namespace namespace)
|
Element |
UncheckedJDOMFactory.element(java.lang.String name)
|
Element |
UncheckedJDOMFactory.element(java.lang.String name,
java.lang.String uri)
|
Element |
UncheckedJDOMFactory.element(java.lang.String name,
java.lang.String prefix,
java.lang.String uri)
|
Element |
JDOMFactory.element(java.lang.String name,
Namespace namespace)
This will create a new Element
with the supplied (local) name, and define
the Namespace to be used. |
Element |
JDOMFactory.element(java.lang.String name)
This will create an Element in no
Namespace. |
Element |
JDOMFactory.element(java.lang.String name,
java.lang.String uri)
This will create a new Element with
the supplied (local) name, and specifies the URI
of the Namespace the Element
should be in, resulting it being unprefixed (in the default
namespace). |
Element |
JDOMFactory.element(java.lang.String name,
java.lang.String prefix,
java.lang.String uri)
This will create a new Element with
the supplied (local) name, and specifies the prefix and URI
of the Namespace the Element
should be in. |
Element |
DefaultJDOMFactory.element(java.lang.String name,
Namespace namespace)
|
Element |
DefaultJDOMFactory.element(java.lang.String name)
|
Element |
DefaultJDOMFactory.element(java.lang.String name,
java.lang.String uri)
|
Element |
DefaultJDOMFactory.element(java.lang.String name,
java.lang.String prefix,
java.lang.String uri)
|
Element |
Content.getParentElement()
A convenience method that returns any parent element for this element, or null if the element is unattached or is a root element. |
Element |
Element.setName(java.lang.String name)
Sets the (local) name of the element. |
Element |
Element.setNamespace(Namespace namespace)
Sets the element's Namespace. |
Element |
Element.setText(java.lang.String text)
Sets the content of the element to be the text given. |
Element |
Element.setContent(java.util.Collection newContent)
This sets the content of the element. |
Element |
Element.setContent(int index,
Content child)
Replace the current child the given index with the supplied child. |
Element |
Element.addContent(java.lang.String str)
This adds text content to this element. |
Element |
Element.addContent(Content child)
Appends the child to the end of the element's content list. |
Element |
Element.addContent(java.util.Collection collection)
Appends all children in the given collection to the end of the content list. |
Element |
Element.addContent(int index,
Content child)
Inserts the child into the content list at the given index. |
Element |
Element.addContent(int index,
java.util.Collection c)
Inserts the content in a collection into the content list at the given index. |
Element |
Element.setContent(Content child)
Set this element's content to be the supplied child. |
Element |
Element.setAttributes(java.util.List newAttributes)
This sets the attributes of the element. |
Element |
Element.setAttribute(java.lang.String name,
java.lang.String value)
This sets an attribute value for this element. |
Element |
Element.setAttribute(java.lang.String name,
java.lang.String value,
Namespace ns)
This sets an attribute value for this element. |
Element |
Element.setAttribute(Attribute attribute)
This sets an attribute value for this element. |
Element |
Element.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. |
Element |
Element.getChild(java.lang.String name)
This returns the first child element within this element with the given local name and belonging to no namespace. |
Element |
Document.getRootElement()
This will return the root Element
for this Document |
Element |
Document.detachRootElement()
Detach the root Element from this document. |
Element |
Attribute.getParent()
This will return the parent of this Attribute. |
| Methods in org.jdom with parameters of type Element | |
Document |
UncheckedJDOMFactory.document(Element rootElement,
DocType docType,
java.lang.String baseURI)
|
Document |
UncheckedJDOMFactory.document(Element rootElement,
DocType docType)
|
Document |
UncheckedJDOMFactory.document(Element rootElement)
|
void |
UncheckedJDOMFactory.setAttribute(Element parent,
Attribute a)
|
void |
UncheckedJDOMFactory.addNamespaceDeclaration(Element parent,
Namespace additional)
|
Document |
JDOMFactory.document(Element rootElement,
DocType docType)
This will create a new Document,
with the supplied Element
as the root element and the supplied
DocType declaration. |
Document |
JDOMFactory.document(Element rootElement,
DocType docType,
java.lang.String baseURI)
This will create a new Document,
with the supplied Element
as the root element and the supplied
DocType declaration. |
Document |
JDOMFactory.document(Element rootElement)
This will create a new Document,
with the supplied Element
as the root element, and no DocType
declaration. |
void |
JDOMFactory.setAttribute(Element element,
Attribute a)
|
void |
JDOMFactory.addNamespaceDeclaration(Element element,
Namespace additional)
|
Document |
DefaultJDOMFactory.document(Element rootElement,
DocType docType)
|
Document |
DefaultJDOMFactory.document(Element rootElement,
DocType docType,
java.lang.String baseURI)
|
Document |
DefaultJDOMFactory.document(Element rootElement)
|
void |
DefaultJDOMFactory.setAttribute(Element parent,
Attribute a)
|
void |
DefaultJDOMFactory.addNamespaceDeclaration(Element parent,
Namespace additional)
|
static java.lang.String |
Verifier.checkNamespaceCollision(Attribute attribute,
Element element)
Check if Attribute's namespace collides with a
Element's namespace. |
static java.lang.String |
Verifier.checkNamespaceCollision(Namespace namespace,
Element element)
Check if a Namespace collides with a
Element's namespace. |
boolean |
Element.isAncestor(Element element)
Determines if this element is the ancestor of another element. |
Document |
Document.setRootElement(Element rootElement)
This sets the root Element for the
Document. |
protected Attribute |
Attribute.setParent(Element parent)
This will set the parent of this Attribute. |
| Constructors in org.jdom with parameters of type Element | |
IllegalAddException(Element base,
Attribute added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the Attribute
to the Element is illegal. |
|
IllegalAddException(Element base,
Element added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the Element
to parent is illegal. |
|
IllegalAddException(Element added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the Element
to the Document is illegal. |
|
IllegalAddException(Element base,
ProcessingInstruction added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the ProcessingInstruction
to the Element is illegal. |
|
IllegalAddException(Element base,
Comment added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the Comment
to the Element is illegal. |
|
IllegalAddException(Element base,
CDATA added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the CDATA |
|
IllegalAddException(Element base,
Text added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the Text
to the Element is illegal. |
|
IllegalAddException(Element base,
EntityRef added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the EntityRef
to the Element is illegal. |
|
IllegalAddException(Element base,
Namespace added,
java.lang.String reason)
This will create an Exception indicating
that the addition of the Namespace
to the Element is illegal. |
|
Document(Element rootElement,
DocType docType,
java.lang.String baseURI)
This will create a new Document,
with the supplied Element
as the root element, the supplied
DocType declaration, and the specified
base URI. |
|
Document(Element rootElement,
DocType docType)
This will create a new Document,
with the supplied Element
as the root element and the supplied
DocType declaration. |
|
Document(Element rootElement)
This will create a new Document,
with the supplied Element
as the root element, and no DocType
declaration. |
|
AttributeList(Element parent)
Create a new instance of the AttributeList representing Element content |
|
|
|||||||||
| Home >> All >> org >> [ jdom overview ] | PREV NEXT | ||||||||