| |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Namespace | |
org.jdom | |
org.jdom.output |
Uses of Namespace in org.jdom |
Fields in org.jdom declared as Namespace | |
final static Namespace | Namespace.NO_NAMESPACE Define a Namespace for when not in a namespace |
final static Namespace | Namespace.XML_NAMESPACE |
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. |
Methods in org.jdom that return Namespace | |
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). |
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. |
Methods in org.jdom with parameters of type Namespace | |
void | Element.addNamespaceDeclaration(Namespace additionalNamespace) This will add a namespace declarations to this element. |
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.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. |
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. |
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. |
Element | Element.getCopy(String name, Namespace ns) This creates a copy of this Element , with the new
name specified, and in the specified Namespace . |
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. |
Uses of Namespace in org.jdom.output |
Methods in org.jdom.output with parameters of type Namespace | |
void | NamespaceStack.push(Namespace ns) This will add a new Namespace
to those currently available. |
| |||||||||
PREV NEXT | FRAMES NO FRAMES |