Uses of Class
org.dom4j.Namespace
Packages that use Namespace
Package
Description
Defines the XML Document Object Model in Java interfaces together with some helper classes.
An implementation of the dom4j API which allows JavaBeans to be used to store and retrieve attribute values from Element.
An implementation of the dom4j API which also supports the W3C object model.
Provides input and output via SAX and DOM together with writing dom4j objects to streams as XML text.
Contains the default implementations of the dom4j Document Object Model together with some helpful base classes for those wishing to implement their own document object model.
A collection of utility classes for the dom4j API.
-
Uses of Namespace in org.dom4j
Modifier and TypeFieldDescriptionprivate Namespace
QName.namespace
The Namespace of this element or attributestatic final Namespace
Namespace.NO_NAMESPACE
No Namespace presentstatic final Namespace
Namespace.XML_NAMESPACE
XML NamespaceModifier and TypeMethodDescriptionDocumentFactory.createNamespace
(String prefix, String uri) static Namespace
DocumentHelper.createNamespace
(String prefix, String uri) static Namespace
A helper method to return the Namespace instance for no prefix and the URIstatic Namespace
A helper method to return the Namespace instance for the given prefix and URIAttribute.getNamespace()
Returns theNamespace
of this element if one exists otherwise null is returned returned.Element.getNamespace()
Returns theNamespace
of this element if one exists otherwiseNamespace.NO_NAMESPACE
is returned.QName.getNamespace()
DOCUMENT ME!Element.getNamespaceForPrefix
(String prefix) Returns theNamespace
which is mapped to the given prefix or null if it could not be found.Element.getNamespaceForURI
(String uri) Returns theNamespace
which is mapped to the given URI or null if it could not be found.Modifier and TypeMethodDescriptionElement.additionalNamespaces()
Returns any additional namespaces declarations for this element other than namespace returned via theElement.getNamespace()
method.Element.declaredNamespaces()
Returns all the namespaces declared by this element.Element.getNamespacesForURI
(String uri) Returns the all namespaces which are mapped to the given URI or an empty list if no such namespaces could be found.Modifier and TypeMethodDescriptionvoid
Adds the givenNamespace
to this element.DocumentFactory.createQName
(String localName, Namespace namespace) static QName
DocumentHelper.createQName
(String localName, Namespace namespace) static QName
static QName
boolean
Removes the givenNamespace
if the node is an immediate child of this element.void
Attribute.setNamespace
(Namespace namespace) Sets theNamespace
of this element or if this element is read only then anUnsupportedOperationException
is thrown.void
Visits the givenNamespace
void
-
Uses of Namespace in org.dom4j.bean
Constructors in org.dom4j.bean with parameters of type Namespace -
Uses of Namespace in org.dom4j.dom
Subclasses of Namespace in org.dom4j.domModifier and TypeClassDescriptionclass
DOMNamespace
implements a Namespace that is compatable with the DOM API.Methods in org.dom4j.dom that return NamespaceConstructors in org.dom4j.dom with parameters of type Namespace -
Uses of Namespace in org.dom4j.io
Fields in org.dom4j.io with type parameters of type NamespaceMethods in org.dom4j.io that return NamespaceModifier and TypeMethodDescriptionSTAXEventReader.createNamespace
(Namespace ns) Constructs a new DOM4J Namespace from the provided StAX Namespace event.protected Namespace
DOMReader.getNamespace
(String prefix, String uri) STAXEventReader.readNamespace
(XMLEventReader reader) Constructs a DOM4J Namespace from the provided event stream.Methods in org.dom4j.io with parameters of type NamespaceModifier and TypeMethodDescriptionprotected AttributesImpl
SAXWriter.addNamespaceAttribute
(AttributesImpl attrs, Namespace namespace) If isDelcareNamespaceAttributes() is enabled then this method will add the given namespace declaration to the supplied attributes object, creating one if it does not exist.protected String
DOMSAXContentHandler.attributeNameForNamespace
(Namespace namespace) protected String
DOMWriter.attributeNameForNamespace
(Namespace namespace) STAXEventWriter.createNamespace
(Namespace ns) protected boolean
SAXWriter.isIgnoreableNamespace
(Namespace namespace, NamespaceStack namespaceStack) DOCUMENT ME!protected boolean
DOMWriter.isNamespaceDeclaration
(Namespace ns) protected boolean
XMLWriter.isNamespaceDeclaration
(Namespace ns) void
Writes the givenNamespace
.protected void
DOMWriter.writeNamespace
(Element domElement, Namespace namespace) void
STAXEventWriter.writeNamespace
(Namespace ns) Writes a DOM4JNamespace
to the stream.protected void
XMLWriter.writeNamespace
(Namespace namespace) Constructor parameters in org.dom4j.io with type arguments of type Namespace -
Uses of Namespace in org.dom4j.tree
Subclasses of Namespace in org.dom4j.treeModifier and TypeClassDescriptionclass
DefaultNamespace
implements a doubly linked node which supports the parent relationship and is mutable.Fields in org.dom4j.tree declared as NamespaceModifier and TypeFieldDescriptionprivate Namespace
NamespaceStack.defaultNamespace
Caches the default namespace defined via xmlns=""Fields in org.dom4j.tree with type parameters of type NamespaceModifier and TypeFieldDescriptionNamespaceCache.cache
QNameCache.namespaceCache
NamespaceStack.namespaceStack
The Stack of namespacesprotected static Map<String,
WeakReference<Namespace>> NamespaceCache.noPrefixCache
Cache ofNamespace
instances indexed by URI for default namespaces with no prefixesMethods in org.dom4j.tree that return NamespaceModifier and TypeMethodDescriptionNamespaceStack.addNamespace
(String prefix, String uri) Adds a new namespace to the stackprotected Namespace
NamespaceCache.createNamespace
(String prefix, String uri) A factory method to createNamespace
instanceprotected Namespace
NamespaceStack.createNamespace
(String prefix, String namespaceURI) Factory method to creeate new Namespace instances.protected Namespace
NamespaceStack.findDefaultNamespace()
Attempts to find the current default namespace on the stack right now or returns null if one could not be foundDOCUMENT ME!DOCUMENT ME!NamespaceStack.getDefaultNamespace()
AbstractAttribute.getNamespace()
AbstractElement.getNamespace()
NamespaceStack.getNamespace
(int index) DOCUMENT ME!AbstractElement.getNamespaceForPrefix
(String prefix) DefaultElement.getNamespaceForPrefix
(String prefix) NamespaceStack.getNamespaceForPrefix
(String prefix) DOCUMENT ME!AbstractElement.getNamespaceForURI
(String uri) DefaultElement.getNamespaceForURI
(String uri) NamespaceStack.pop()
Pops the most recently usedNamespace
from the stackPops a namepace from the stack with the given prefix and URIprotected Namespace
NamespaceStack.remove
(int index) Removes the namespace at the given index of the stackMethods in org.dom4j.tree that return types with arguments of type NamespaceModifier and TypeMethodDescriptionAbstractElement.additionalNamespaces()
AbstractElement.additionalNamespaces
(String defaultNamespaceURI) DefaultElement.additionalNamespaces()
DefaultElement.additionalNamespaces
(String defaultNamespaceURI) AbstractElement.declaredNamespaces()
DefaultElement.declaredNamespaces()
AbstractElement.getNamespacesForURI
(String uri) protected Map<String,
WeakReference<Namespace>> NamespaceCache.getURICache
(String uri) DOCUMENT ME!Methods in org.dom4j.tree with parameters of type NamespaceModifier and TypeMethodDescriptionvoid
boolean
DOCUMENT ME!protected QName
NamespaceStack.createQName
(String localName, String qualifiedName, Namespace namespace) Factory method to creeate new QName instances.protected QName
QNameCache.createQName
(String name, Namespace namespace) Factory method to create a new QName object which can be overloaded to create derived QName instancesprotected QName
QNameCache.createQName
(String name, Namespace namespace, String qualifiedName) Factory method to create a new QName object which can be overloaded to create derived QName instancesAbstractElement.elementIterator
(String name, Namespace ns) DOCUMENT ME!DOCUMENT ME!QNameCache.getNamespaceCache
(Namespace namespace) DOCUMENT ME!void
Pushes the given namespace onto the stack so that its prefix becomes available.protected QName
NamespaceStack.pushQName
(String localName, String qualifiedName, Namespace namespace, String prefix) Adds the QName to the stack of available QNamesboolean
void
AbstractAttribute.setNamespace
(Namespace namespace) void
AbstractElement.setNamespace
(Namespace namespace) Constructors in org.dom4j.tree with parameters of type NamespaceModifierConstructorDescriptionBaseElement
(String name, Namespace namespace) DefaultAttribute
(String name, String value, Namespace namespace) Creates theAttribute
with the specified local name, value andNamespace
.DefaultAttribute
(Element parent, String name, String value, Namespace namespace) Creates theAttribute
with the specified local name, value andNamespace
.DefaultElement
(String name, Namespace namespace) FlyweightAttribute
(String name, String value, Namespace namespace) Creates theAttribute
with the specified local name, value andNamespace
. -
Uses of Namespace in org.dom4j.util
Methods in org.dom4j.util that return NamespaceModifier and TypeMethodDescriptionProxyDocumentFactory.createNamespace
(String prefix, String uri) Methods in org.dom4j.util with parameters of type NamespaceModifier and TypeMethodDescriptionint
ProxyDocumentFactory.createQName
(String localName, Namespace namespace) Constructors in org.dom4j.util with parameters of type Namespace