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)
Creates a new element with the supplied (local) name and namespace.

Fields of type org.jdom.Namespace

Namespace
Define a Namespace for when not in a namespace
Namespace
Define a Namespace for the standard xml prefix.
Namespace
The Namespace of the Attribute
Namespace
The namespace of the element

Methods with parameter type org.jdom.Namespace

void
void
void
void
Adds a namespace declarations to this element.
Attribute
DefaultJDOMFactory.attribute(String name, String value, int type, Namespace 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
UncheckedJDOMFactory.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)
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.
Attribute
UncheckedJDOMFactory.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.
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.
Element
DefaultJDOMFactory.element(String name, Namespace namespace)
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.
Element
UncheckedJDOMFactory.element(String name, Namespace namespace)
This will create a new Element with the supplied (local) name, and define the Namespace to be used.
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)
Returns the textual content of the named child element, or null if there's no such child.
String
Returns the normalized textual content of the named child element, or null if there's no such child.
String
Returns the trimmed textual content of the named child element, or 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
Removes an additional 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
Sets the element's Namespace.

Methods with return type org.jdom.Namespace

Namespace
This will return this Attribute's Namespace.
Namespace
Returns the element's Namespace.
Namespace
Element.getNamespace(String prefix)
Returns the Namespace corresponding to the given prefix in scope for this 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.xpath

Methods with parameter type org.jdom.Namespace

void
Adds a namespace definition to the list of namespaces known of this XPath expression.

Uses in package org.jdom.filter

Constructors with parameter type org.jdom.Namespace

ElementFilter.ElementFilter(String name, Namespace namespace)
Select only the Elements with the supplied name and Namespace.
Select only the Elements with the supplied Namespace.

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