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.datatype |
An implementation of the dom4j API which supports the
XML Schema Data Types specification.
|
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.
|
Modifier and Type | Field and Description |
---|---|
static Namespace |
Namespace.NO_NAMESPACE
No Namespace present
|
static Namespace |
Namespace.XML_NAMESPACE
XML Namespace
|
Modifier and Type | Method and Description |
---|---|
static Namespace |
DocumentHelper.createNamespace(java.lang.String prefix,
java.lang.String uri) |
Namespace |
DocumentFactory.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
URI
|
static Namespace |
Namespace.get(java.lang.String prefix,
java.lang.String uri)
A helper method to return the Namespace instance for the given prefix and
URI
|
Namespace |
Element.getNamespace()
Returns the
Namespace of this element if one exists
otherwise Namespace.NO_NAMESPACE is returned. |
Namespace |
Attribute.getNamespace()
Returns the
Namespace of this element if one exists
otherwise null is returned returned. |
Namespace |
QName.getNamespace()
DOCUMENT ME!
|
Namespace |
Element.getNamespaceForPrefix(java.lang.String prefix)
Returns the
Namespace which is mapped to the given prefix
or null if it could not be found. |
Namespace |
Element.getNamespaceForURI(java.lang.String uri)
Returns the
Namespace which is mapped to the given URI or
null if it could not be found. |
Modifier and Type | Method and Description |
---|---|
void |
Element.add(Namespace namespace)
Adds the given
Namespace to this element. |
static QName |
DocumentHelper.createQName(java.lang.String localName,
Namespace namespace) |
QName |
DocumentFactory.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 given
Namespace if the node is an immediate
child of this element. |
void |
Attribute.setNamespace(Namespace namespace)
Sets the
Namespace of this element or if this element is
read only then an UnsupportedOperationException is thrown. |
void |
VisitorSupport.visit(Namespace namespace) |
void |
Visitor.visit(Namespace namespace)
Visits the given
Namespace |
Constructor and Description |
---|
QName(java.lang.String name,
Namespace namespace) |
QName(java.lang.String name,
Namespace namespace,
java.lang.String qualifiedName) |
Constructor and Description |
---|
BeanElement(java.lang.String name,
Namespace namespace,
java.lang.Object bean) |
Modifier and Type | Method and Description |
---|---|
void |
SchemaParser.build(Document schemaDocument,
Namespace namespace) |
void |
DatatypeDocumentFactory.loadSchema(Document schemaDocument,
Namespace targetNamespace) |
protected void |
DatatypeDocumentFactory.loadSchema(Document document,
java.lang.String schemaInstanceURI,
Namespace namespace) |
Modifier and Type | Class and Description |
---|---|
class |
DOMNamespace
DOMNamespace implements a Namespace that is compatable with
the DOM API. |
Modifier and Type | Method and Description |
---|---|
Namespace |
DOMDocumentFactory.createNamespace(java.lang.String prefix,
java.lang.String uri) |
Constructor and Description |
---|
DOMElement(java.lang.String name,
Namespace namespace) |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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 STAX
Namespace event from a
DOM4J Namespace . |
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 given
Namespace . |
protected void |
DOMWriter.writeNamespace(org.w3c.dom.Element domElement,
Namespace namespace) |
void |
STAXEventWriter.writeNamespace(Namespace ns)
Writes a DOM4J
Namespace to the stream. |
protected void |
XMLWriter.writeNamespace(Namespace namespace) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultNamespace
DefaultNamespace implements a doubly linked node which
supports the parent relationship and is mutable. |
Modifier and Type | Method and Description |
---|---|
Namespace |
NamespaceStack.addNamespace(java.lang.String prefix,
java.lang.String uri)
Adds a new namespace to the stack
|
protected Namespace |
NamespaceCache.createNamespace(java.lang.String prefix,
java.lang.String uri)
A factory method to create
Namespace instance |
protected 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 found
|
Namespace |
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 |
NamespaceStack.getNamespaceForPrefix(java.lang.String prefix)
DOCUMENT ME!
|
Namespace |
DefaultElement.getNamespaceForPrefix(java.lang.String prefix) |
Namespace |
AbstractElement.getNamespaceForURI(java.lang.String uri) |
Namespace |
DefaultElement.getNamespaceForURI(java.lang.String uri) |
Namespace |
NamespaceStack.pop()
Pops the most recently used
Namespace from the stack |
Namespace |
NamespaceStack.pop(java.lang.String prefix)
Pops a namepace from the stack with the given prefix and URI
|
protected Namespace |
NamespaceStack.remove(int index)
Removes the namespace at the given index of the stack
|
Modifier and Type | Method and 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 |
QNameCache.createQName(java.lang.String name,
Namespace namespace)
Factory method to create a new QName object which can be overloaded to
create derived QName instances
|
protected 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 instances
|
protected QName |
NamespaceStack.createQName(java.lang.String localName,
java.lang.String qualifiedName,
Namespace namespace)
Factory method to creeate new QName instances.
|
Element |
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 QNames
|
boolean |
AbstractElement.remove(Namespace namespace) |
void |
AbstractAttribute.setNamespace(Namespace namespace) |
void |
AbstractElement.setNamespace(Namespace namespace) |
Constructor and Description |
---|
BaseElement(java.lang.String name,
Namespace namespace) |
DefaultAttribute(Element parent,
java.lang.String name,
java.lang.String value,
Namespace namespace)
Creates the
Attribute with the specified local name, value
and Namespace . |
DefaultAttribute(java.lang.String name,
java.lang.String value,
Namespace namespace)
Creates the
Attribute with the specified local name, value
and Namespace . |
DefaultElement(java.lang.String name,
Namespace namespace) |
FlyweightAttribute(java.lang.String name,
java.lang.String value,
Namespace namespace)
Creates the
Attribute with the specified local name, value
and Namespace . |
Modifier and Type | Method and Description |
---|---|
Namespace |
ProxyDocumentFactory.createNamespace(java.lang.String prefix,
java.lang.String uri) |
Modifier and Type | Method and Description |
---|---|
int |
NodeComparator.compare(Namespace n1,
Namespace n2) |
QName |
ProxyDocumentFactory.createQName(java.lang.String localName,
Namespace namespace) |
Constructor and Description |
---|
NonLazyElement(java.lang.String name,
Namespace namespace) |
Copyright ? 2005 MetaStuff Ltd. All Rights Reserved. Hosted by