Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JDOM 1.0beta10
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.jdom.Namespace

Packages that use Namespace
org.jdom | Classes to represent the components of an XML document.
org.jdom.filter | Classes to programmatically filter nodes of a document based on type, name, value, or other aspects and to boolean and/or/negate these rules.
org.jdom.xpath | Support for XPath from within JDOM.

Uses of Namespace in org.jdom

Fields in org.jdom declared as Namespace
`static Namespace` | `Namespace.NO_NAMESPACE` Define a `Namespace` for when not in a namespace
`static Namespace` | `Namespace.XML_NAMESPACE`
`protected Namespace` | `Element.namespace` The namespace of the element
`protected Namespace` | `Attribute.namespace` The ``Namespace`` of the `Attribute`

Methods in org.jdom that return Namespace
`static Namespace` | `Namespace.getNamespace(java.lang.String prefix, java.lang.String uri)` This will retrieve (if in existence) or create (if not) a `Namespace` for the supplied prefix and URI.
`static Namespace` | `Namespace.getNamespace(java.lang.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` | `Element.getNamespace()` Returns the element's `Namespace`.
`Namespace` | `Element.getNamespace(java.lang.String prefix)` Returns the `Namespace` corresponding to the given prefix in scope for this element.
`Namespace` | `Attribute.getNamespace()` This will return this `Attribute`'s ``Namespace``.

Methods in org.jdom with parameters of type Namespace
`static java.lang.String` | `Verifier.checkNamespaceCollision(Namespace namespace, Namespace other)` Check if two namespaces collide.
`static java.lang.String` | `Verifier.checkNamespaceCollision(Namespace namespace, Namespace other)` Check if two namespaces collide.
`static java.lang.String` | `Verifier.checkNamespaceCollision(Namespace namespace, Element element)` Check if a ``Namespace`` collides with a ``Element``'s namespace.
`static java.lang.String` | `Verifier.checkNamespaceCollision(Namespace namespace, Attribute attribute)` Check if a ``Namespace`` collides with a ``Attribute``'s namespace.
`static java.lang.String` | `Verifier.checkNamespaceCollision(Namespace namespace, java.util.List list)` Check if a ``Namespace`` collides with any namespace from a list of objects.
`Attribute` | `JDOMFactory.attribute(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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``.
`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` | `Element.setNamespace(Namespace namespace)` Sets the element's `Namespace`.
`void` | `Element.addNamespaceDeclaration(Namespace additional)` Adds a namespace declarations to this element.
`void` | `Element.removeNamespaceDeclaration(Namespace additionalNamespace)` Removes an additional namespace declarations from this element.
`java.lang.String` | `Element.getChildText(java.lang.String name, Namespace ns)` Returns the textual content of the named child element, or null if there's no such child.
`java.lang.String` | `Element.getChildTextTrim(java.lang.String name, Namespace ns)` Returns the trimmed textual content of the named child element, or null if there's no such child.
`java.lang.String` | `Element.getChildTextNormalize(java.lang.String name, Namespace ns)` Returns the normalized textual content of the named child element, or null if there's no such child.
`Attribute` | `Element.getAttribute(java.lang.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.
`java.lang.String` | `Element.getAttributeValue(java.lang.String name, Namespace ns)` 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.
`java.lang.String` | `Element.getAttributeValue(java.lang.String name, Namespace ns, java.lang.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.setAttribute(java.lang.String name, java.lang.String value, Namespace ns)` This sets an attribute value for this element.
`boolean` | `Element.removeAttribute(java.lang.String name, Namespace ns)` This removes the attribute with the given name and within the given Namespace.
`java.util.List` | `Element.getChildren(java.lang.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.
`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.
`boolean` | `Element.removeChild(java.lang.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(java.lang.String name, Namespace ns)` This removes all child elements (one level deep) with the given local name and belonging to the given namespace.
`Attribute` | `DefaultJDOMFactory.attribute(java.lang.String name, java.lang.String value, Namespace namespace)`
`Attribute` | `DefaultJDOMFactory.attribute(java.lang.String name, java.lang.String value, int type, Namespace namespace)`
`Element` | `DefaultJDOMFactory.element(java.lang.String name, Namespace namespace)`
`Attribute` | `Attribute.setNamespace(Namespace namespace)` This sets this `Attribute`'s ``Namespace``.

Constructors in org.jdom with parameters of type Namespace
`Element(java.lang.String name, Namespace namespace)` Creates a new element with the supplied (local) name and namespace.
`Attribute(java.lang.String name, java.lang.String value, Namespace namespace)` This will create a new `Attribute` with the specified (local) name and value, and in the provided ``Namespace``.
`Attribute(java.lang.String name, java.lang.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``.

Uses of Namespace in org.jdom.filter

Constructors in org.jdom.filter with parameters of type Namespace
`ElementFilter(Namespace namespace)` Select only the Elements with the supplied Namespace.
`ElementFilter(java.lang.String name, Namespace namespace)` Select only the Elements with the supplied name and Namespace.

Uses of Namespace in org.jdom.xpath

Methods in org.jdom.xpath with parameters of type Namespace
`abstract void` | `XPath.addNamespace(Namespace namespace)` Adds a namespace definition to the list of namespaces known of this XPath expression.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JDOM 1.0beta10
PREV NEXT | FRAMES NO FRAMES

Copyright © 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.