Uses of Class
org.dom4j.Namespace
-
Packages that use Namespace Package Description org.dom4j Defines the XML Document Object Model in Java interfaces together with some helper classes.org.dom4j.bean An implementation of the dom4j API which allows JavaBeans to be used to store and retrieve attribute values from Element.org.dom4j.dom An implementation of the dom4j API which also supports the W3C object model.org.dom4j.io Provides input and output via SAX and DOM together with writing dom4j objects to streams as XML text.org.dom4j.tree 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.org.dom4j.util A collection of utility classes for the dom4j API. -
-
Uses of Namespace in org.dom4j
Fields in org.dom4j declared as Namespace Modifier and Type Field Description static Namespace
Namespace. NO_NAMESPACE
No Namespace presentstatic Namespace
Namespace. XML_NAMESPACE
XML NamespaceMethods in org.dom4j that return Namespace Modifier and Type Method Description Namespace
DocumentFactory. createNamespace(java.lang.String prefix, java.lang.String uri)
static Namespace
DocumentHelper. createNamespace(java.lang.String prefix, java.lang.String uri)
static Namespace
Namespace. get(java.lang.String uri)
A helper method to return the Namespace instance for no prefix and the URIstatic Namespace
Namespace. get(java.lang.String prefix, java.lang.String uri)
A helper method to return the Namespace instance for the given prefix and URINamespace
Attribute. getNamespace()
Returns theNamespace
of this element if one exists otherwise null is returned returned.Namespace
Element. getNamespace()
Returns theNamespace
of this element if one exists otherwiseNamespace.NO_NAMESPACE
is returned.Namespace
QName. getNamespace()
DOCUMENT ME!Namespace
Element. getNamespaceForPrefix(java.lang.String prefix)
Returns theNamespace
which is mapped to the given prefix or null if it could not be found.Namespace
Element. getNamespaceForURI(java.lang.String uri)
Returns theNamespace
which is mapped to the given URI or null if it could not be found.Methods in org.dom4j with parameters of type Namespace Modifier and Type Method Description void
Element. add(Namespace namespace)
Adds the givenNamespace
to this element.QName
DocumentFactory. createQName(java.lang.String localName, Namespace namespace)
static QName
DocumentHelper. createQName(java.lang.String localName, Namespace namespace)
static QName
QName. get(java.lang.String name, Namespace namespace)
static QName
QName. get(java.lang.String localName, Namespace namespace, java.lang.String qualifiedName)
boolean
Element. remove(Namespace namespace)
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
Visitor. visit(Namespace namespace)
Visits the givenNamespace
void
VisitorSupport. visit(Namespace namespace)
Constructors in org.dom4j with parameters of type Namespace Constructor Description QName(java.lang.String name, Namespace namespace)
QName(java.lang.String name, Namespace namespace, java.lang.String qualifiedName)
-
Uses of Namespace in org.dom4j.bean
Constructors in org.dom4j.bean with parameters of type Namespace Constructor Description BeanElement(java.lang.String name, Namespace namespace, java.lang.Object bean)
-
Uses of Namespace in org.dom4j.dom
Subclasses of Namespace in org.dom4j.dom Modifier and Type Class Description class
DOMNamespace
DOMNamespace
implements a Namespace that is compatable with the DOM API.Methods in org.dom4j.dom that return Namespace Modifier and Type Method Description Namespace
DOMDocumentFactory. createNamespace(java.lang.String prefix, java.lang.String uri)
Constructors in org.dom4j.dom with parameters of type Namespace Constructor Description DOMElement(java.lang.String name, Namespace namespace)
-
Uses of Namespace in org.dom4j.io
Methods in org.dom4j.io that return Namespace Modifier and Type Method Description Namespace
STAXEventReader. createNamespace(javax.xml.stream.events.Namespace ns)
Constructs a new DOM4J Namespace from the provided StAX Namespace event.protected Namespace
DOMReader. getNamespace(java.lang.String prefix, java.lang.String uri)
Namespace
STAXEventReader. readNamespace(javax.xml.stream.XMLEventReader reader)
Constructs a DOM4J Namespace from the provided event stream.Methods in org.dom4j.io with parameters of type Namespace Modifier and Type Method Description protected org.xml.sax.helpers.AttributesImpl
SAXWriter. addNamespaceAttribute(org.xml.sax.helpers.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 java.lang.String
DOMWriter. attributeNameForNamespace(Namespace namespace)
javax.xml.stream.events.Namespace
STAXEventWriter. createNamespace(Namespace ns)
Constructs a STAXNamespace
event from a DOM4JNamespace
.protected boolean
SAXWriter. isIgnoreableNamespace(Namespace namespace, NamespaceStack namespaceStack)
DOCUMENT ME!protected boolean
DOMWriter. isNamespaceDeclaration(Namespace ns)
protected boolean
XMLWriter. isNamespaceDeclaration(Namespace ns)
void
XMLWriter. write(Namespace namespace)
Writes the givenNamespace
.protected void
DOMWriter. writeNamespace(org.w3c.dom.Element domElement, Namespace namespace)
void
STAXEventWriter. writeNamespace(Namespace ns)
Writes a DOM4JNamespace
to the stream.protected void
XMLWriter. writeNamespace(Namespace namespace)
-
Uses of Namespace in org.dom4j.tree
Subclasses of Namespace in org.dom4j.tree Modifier and Type Class Description class
DefaultNamespace
DefaultNamespace
implements a doubly linked node which supports the parent relationship and is mutable.Methods in org.dom4j.tree that return Namespace Modifier and Type Method Description Namespace
NamespaceStack. addNamespace(java.lang.String prefix, java.lang.String uri)
Adds a new namespace to the stackprotected Namespace
NamespaceCache. createNamespace(java.lang.String prefix, java.lang.String uri)
A factory method to createNamespace
instanceprotected Namespace
NamespaceStack. createNamespace(java.lang.String prefix, java.lang.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 foundNamespace
NamespaceCache. get(java.lang.String uri)
DOCUMENT ME!Namespace
NamespaceCache. get(java.lang.String prefix, java.lang.String uri)
DOCUMENT ME!Namespace
NamespaceStack. getDefaultNamespace()
Namespace
AbstractAttribute. getNamespace()
Namespace
AbstractElement. getNamespace()
Namespace
NamespaceStack. getNamespace(int index)
DOCUMENT ME!Namespace
AbstractElement. getNamespaceForPrefix(java.lang.String prefix)
Namespace
DefaultElement. getNamespaceForPrefix(java.lang.String prefix)
Namespace
NamespaceStack. getNamespaceForPrefix(java.lang.String prefix)
DOCUMENT ME!Namespace
AbstractElement. getNamespaceForURI(java.lang.String uri)
Namespace
DefaultElement. getNamespaceForURI(java.lang.String uri)
Namespace
NamespaceStack. pop()
Pops the most recently usedNamespace
from the stackNamespace
NamespaceStack. pop(java.lang.String prefix)
Pops 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 with parameters of type Namespace Modifier and Type Method Description void
AbstractElement. add(Namespace namespace)
Attribute
AbstractElement. attribute(java.lang.String name, Namespace namespace)
Attribute
DefaultElement. attribute(java.lang.String name, Namespace namespace)
boolean
NamespaceStack. contains(Namespace namespace)
DOCUMENT ME!protected QName
NamespaceStack. createQName(java.lang.String localName, java.lang.String qualifiedName, Namespace namespace)
Factory method to creeate new QName instances.protected QName
QNameCache. createQName(java.lang.String name, Namespace namespace)
Factory method to create a new QName object which can be overloaded to create derived QName instancesprotected QName
QNameCache. createQName(java.lang.String name, Namespace namespace, java.lang.String qualifiedName)
Factory method to create a new QName object which can be overloaded to create derived QName instancesElement
AbstractElement. element(java.lang.String name, Namespace namespace)
Element
DefaultElement. element(java.lang.String name, Namespace namespace)
java.util.Iterator
AbstractElement. elementIterator(java.lang.String name, Namespace ns)
java.util.List
AbstractElement. elements(java.lang.String name, Namespace namespace)
QName
QNameCache. get(java.lang.String name, Namespace namespace)
DOCUMENT ME!QName
QNameCache. get(java.lang.String localName, Namespace namespace, java.lang.String qName)
DOCUMENT ME!protected java.util.Map
QNameCache. getNamespaceCache(Namespace namespace)
DOCUMENT ME!void
NamespaceStack. push(Namespace namespace)
Pushes the given namespace onto the stack so that its prefix becomes available.protected QName
NamespaceStack. pushQName(java.lang.String localName, java.lang.String qualifiedName, Namespace namespace, java.lang.String prefix)
Adds the QName to the stack of available QNamesboolean
AbstractElement. remove(Namespace namespace)
void
AbstractAttribute. setNamespace(Namespace namespace)
void
AbstractElement. setNamespace(Namespace namespace)
Constructors in org.dom4j.tree with parameters of type Namespace Constructor Description BaseElement(java.lang.String name, Namespace namespace)
DefaultAttribute(java.lang.String name, java.lang.String value, Namespace namespace)
Creates theAttribute
with the specified local name, value andNamespace
.DefaultAttribute(Element parent, java.lang.String name, java.lang.String value, Namespace namespace)
Creates theAttribute
with the specified local name, value andNamespace
.DefaultElement(java.lang.String name, Namespace namespace)
FlyweightAttribute(java.lang.String name, java.lang.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 Namespace Modifier and Type Method Description Namespace
ProxyDocumentFactory. createNamespace(java.lang.String prefix, java.lang.String uri)
Methods in org.dom4j.util with parameters of type Namespace Modifier and Type Method Description int
NodeComparator. compare(Namespace n1, Namespace n2)
QName
ProxyDocumentFactory. createQName(java.lang.String localName, Namespace namespace)
Constructors in org.dom4j.util with parameters of type Namespace Constructor Description NonLazyElement(java.lang.String name, Namespace namespace)
-