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 NamespaceQName.namespaceThe Namespace of this element or attributestatic final NamespaceNamespace.NO_NAMESPACENo Namespace presentstatic final NamespaceNamespace.XML_NAMESPACEXML NamespaceModifier and TypeMethodDescriptionDocumentFactory.createNamespace(String prefix, String uri) static NamespaceDocumentHelper.createNamespace(String prefix, String uri) static NamespaceA helper method to return the Namespace instance for no prefix and the URIstatic NamespaceA helper method to return the Namespace instance for the given prefix and URIAttribute.getNamespace()Returns theNamespaceof this element if one exists otherwise null is returned returned.Element.getNamespace()Returns theNamespaceof this element if one exists otherwiseNamespace.NO_NAMESPACEis returned.QName.getNamespace()DOCUMENT ME!Element.getNamespaceForPrefix(String prefix) Returns theNamespacewhich is mapped to the given prefix or null if it could not be found.Element.getNamespaceForURI(String uri) Returns theNamespacewhich 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 TypeMethodDescriptionvoidAdds the givenNamespaceto this element.DocumentFactory.createQName(String localName, Namespace namespace) static QNameDocumentHelper.createQName(String localName, Namespace namespace) static QNamestatic QNamebooleanRemoves the givenNamespaceif the node is an immediate child of this element.voidAttribute.setNamespace(Namespace namespace) Sets theNamespaceof this element or if this element is read only then anUnsupportedOperationExceptionis thrown.voidVisits the givenNamespacevoid -
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 TypeClassDescriptionclassDOMNamespaceimplements 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 NamespaceDOMReader.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 AttributesImplSAXWriter.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 StringDOMSAXContentHandler.attributeNameForNamespace(Namespace namespace) protected StringDOMWriter.attributeNameForNamespace(Namespace namespace) STAXEventWriter.createNamespace(Namespace ns) protected booleanSAXWriter.isIgnoreableNamespace(Namespace namespace, NamespaceStack namespaceStack) DOCUMENT ME!protected booleanDOMWriter.isNamespaceDeclaration(Namespace ns) protected booleanXMLWriter.isNamespaceDeclaration(Namespace ns) voidWrites the givenNamespace.protected voidDOMWriter.writeNamespace(Element domElement, Namespace namespace) voidSTAXEventWriter.writeNamespace(Namespace ns) Writes a DOM4JNamespaceto the stream.protected voidXMLWriter.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 TypeClassDescriptionclassDefaultNamespaceimplements a doubly linked node which supports the parent relationship and is mutable.Fields in org.dom4j.tree declared as NamespaceModifier and TypeFieldDescriptionprivate NamespaceNamespaceStack.defaultNamespaceCaches the default namespace defined via xmlns=""Fields in org.dom4j.tree with type parameters of type NamespaceModifier and TypeFieldDescriptionNamespaceCache.cacheQNameCache.namespaceCacheNamespaceStack.namespaceStackThe Stack of namespacesprotected static Map<String, WeakReference<Namespace>> NamespaceCache.noPrefixCacheCache ofNamespaceinstances 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 NamespaceNamespaceCache.createNamespace(String prefix, String uri) A factory method to createNamespaceinstanceprotected NamespaceNamespaceStack.createNamespace(String prefix, String namespaceURI) Factory method to creeate new Namespace instances.protected NamespaceNamespaceStack.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 usedNamespacefrom the stackPops a namepace from the stack with the given prefix and URIprotected NamespaceNamespaceStack.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 TypeMethodDescriptionvoidbooleanDOCUMENT ME!protected QNameNamespaceStack.createQName(String localName, String qualifiedName, Namespace namespace) Factory method to creeate new QName instances.protected QNameQNameCache.createQName(String name, Namespace namespace) Factory method to create a new QName object which can be overloaded to create derived QName instancesprotected QNameQNameCache.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!voidPushes the given namespace onto the stack so that its prefix becomes available.protected QNameNamespaceStack.pushQName(String localName, String qualifiedName, Namespace namespace, String prefix) Adds the QName to the stack of available QNamesbooleanvoidAbstractAttribute.setNamespace(Namespace namespace) voidAbstractElement.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 theAttributewith the specified local name, value andNamespace.DefaultAttribute(Element parent, String name, String value, Namespace namespace) Creates theAttributewith the specified local name, value andNamespace.DefaultElement(String name, Namespace namespace) FlyweightAttribute(String name, String value, Namespace namespace) Creates theAttributewith 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 TypeMethodDescriptionintProxyDocumentFactory.createQName(String localName, Namespace namespace) Constructors in org.dom4j.util with parameters of type Namespace