Uses of Class org.jdom.Namespace

Uses in package org.jdom

Constructors with parameter type org.jdom.Namespace

Attribute.Attribute(String name, String value, int type, Namespace namespace)
This will create a new Attribute with the specified (local) name, value, and type, and in the provided Namespace.
Attribute.Attribute(String name, String value, Namespace namespace)
This will create a new Attribute with the specified (local) name and value, and in the provided Namespace.
Element.Element(String name, Namespace namespace)
This will create a new Element with the supplied (local) name, and define the Namespace to be used.
This will create an Exception indicating that the addition of the Namespace to the Element is illegal.

Fields of type org.jdom.Namespace

Namespace
Define a Namespace for when not in a namespace
Namespace
Namespace
The Namespace of the Attribute
Namespace
The Namespace of the Element

Methods with parameter type org.jdom.Namespace

void
This will add a namespace declarations to this element.
String
Check if a Namespace collides with any namespace from a list of objects.
String
Check if a Namespace collides with a Attribute's namespace.
String
Check if a Namespace collides with a Element's namespace.
String
Check if two namespaces collide.
Attribute
Element.getAttribute(String name, Namespace ns)
This returns the attribute for this element with the given name and within the given Namespace, or null if no such attribute exists.
String
This returns the attribute value for the attribute with the given name and within the given Namespace, null if there is no such attribute, and the empty string if the attribute value is empty.
String
Element.getAttributeValue(String name, Namespace ns, String def)
This returns the attribute value for the attribute with the given name and within the given Namespace, or the passed-in default if there is no such attribute.
Element
Element.getChild(String name, Namespace ns)
This returns the first child element within this element with the given local name and belonging to the given namespace.
String
Element.getChildText(String name, Namespace ns)
This convenience method returns the textual content of the named child element, or returns null if there's no such child.
String
This convenience method returns the normalized textual content of the named child element, or returns null if there's no such child.
String
This convenience method returns the trimmed textual content of the named child element, or returns null if there's no such child.
List
Element.getChildren(String name, Namespace ns)
This returns a List of all the child elements nested directly (one level deep) within this element with the given local name and belonging to the given Namespace, returned as Element objects.
boolean
Element.removeAttribute(String name, Namespace ns)
This removes the attribute with the given name and within the given Namespace.
boolean
Element.removeChild(String name, Namespace ns)
This removes the first child element (one level deep) with the given local name and belonging to the given namespace.
boolean
Element.removeChildren(String name, Namespace ns)
This removes all child elements (one level deep) with the given local name and belonging to the given namespace.
void
This will remove a namespace declarations from this element.
Element
Element.setAttribute(String name, String value, Namespace ns)
This sets an attribute value for this element.
Attribute
This sets this Attribute's Namespace.
Element
This sets this Element's Namespace.

Methods with return type org.jdom.Namespace

Namespace
This will return this Attribute's Namespace.
Namespace
This will return this Element's Namespace.
Namespace
Element.getNamespace(String prefix)
This returns the Namespace in scope on this element for the given prefix (this involves searching up the tree, so the results depend on the current location of the element).
Namespace
Namespace.getNamespace(String uri)
This will retrieve (if in existence) or create (if not) a Namespace for the supplied URI, and make it usable as a default namespace, as no prefix is supplied.
Namespace
Namespace.getNamespace(String prefix, String uri)
This will retrieve (if in existence) or create (if not) a Namespace for the supplied prefix and URI.

Uses in package org.jdom.input

Methods with parameter type org.jdom.Namespace

Attribute
DefaultJDOMFactory.attribute(String name, String value, int type, Namespace namespace)
This will create a new Attribute with the specified (local) name, value, and type, and in the provided Namespace.
Attribute
JDOMFactory.attribute(String name, String value, int type, Namespace namespace)
This will create a new Attribute with the specified (local) name, value, and type, and in the provided Namespace.
Attribute
DefaultJDOMFactory.attribute(String name, String value, Namespace namespace)
This will create a new Attribute with the specified (local) name and value, and in the provided Namespace.
Attribute
JDOMFactory.attribute(String name, String value, Namespace namespace)
This will create a new Attribute with the specified (local) name and value, and in the provided Namespace.
Element
DefaultJDOMFactory.element(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(String name, Namespace namespace)
This will create a new Element with the supplied (local) name, and define the Namespace to be used.

Uses in package org.jdom.filter

Constructors with parameter type org.jdom.Namespace

ElementFilter.ElementFilter(String name, Namespace namespace)
Filter out the Elements with the supplied name and Namespace.
Filter out the Elements with the supplied Namespace.

Fields of type org.jdom.Namespace

Namespace
The element namespace

Copyright B) 2002 Jason Hunter, Brett McLaughlin. All Rights Reserved.