November 2002
Intermediate to advanced
1120 pages
21h 2m
English
JDOM's Namespace class, shown in Example 15.17, represents a namespace attached to an element or an attribute. Each namespace has a URI. If the namespace is not a default namespace, then it also has a prefix. Otherwise, the prefix is the empty string.
package org.jdom; public final class Namespace { // Common namespaces public static final Namespace NO_NAMESPACE; public static final Namespace XML_NAMESPACE; // Factory methods public static Namespace getNamespace(String prefix, String uri); public static Namespace getNamespace(String uri); // Getter methods public String getPrefix(); public String getURI(); // Utility methods public boolean equals(Object o); public String toString(); public int ... |
Read now
Unlock full access