Uses of Class
org.jdom.Namespace

Packages that use Namespace
org.jdom   
org.jdom.input   
 

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 Attribute.namespace
          The Namespace of the Attribute
protected  Namespace Element.namespace
          The Namespace of the Element
 

Methods in org.jdom that return Namespace
static 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.
static 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 Attribute.getNamespace()
           This will return this Attribute's Namespace.
 Namespace Element.getNamespace()
           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).
 

Methods in org.jdom with parameters of type Namespace
 Attribute Attribute.setNamespace(Namespace namespace)
           This sets this Attribute's Namespace.
 Element Element.setNamespace(Namespace namespace)
           This sets this Element's Namespace.
 void Element.addNamespaceDeclaration(Namespace additionalNamespace)
           This will add a namespace declarations to this element.
 void Element.removeNamespaceDeclaration(Namespace additionalNamespace)
           This will remove a namespace declarations from this element.
 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 Element.getChildTextTrim(String name, Namespace ns)
           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.
 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.
 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.
 Attribute Element.getAttribute(String name, Namespace ns)
           This returns the attribute for this element with the given name and within the given Namespace.
 String Element.getAttributeValue(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.
 Element Element.setAttribute(String name, String value, Namespace ns)
           This sets an attribute value for this element.
 boolean Element.removeAttribute(String name, Namespace ns)
           This removes the attribute with the given name and within the given Namespace.
 Element Element.getCopy(String name, Namespace ns)
          Deprecated. Deprecated in beta7, use clone(), setName(), and setNamespace() instead
 

Constructors in org.jdom with parameters of type 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.
IllegalAddException.IllegalAddException(Element base, Namespace added, String reason)
           This will create an Exception indicating that the addition of the Namespace to the supplied element is not allowed.
 

Uses of Namespace in org.jdom.input
 

Methods in org.jdom.input with parameters of type Namespace
 Attribute DefaultJDOMFactory.attribute(String name, String value, Namespace namespace)
           
 Element DefaultJDOMFactory.element(String name, 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.
 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.
 



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