Package | Description |
---|---|
org.dom4j |
Defines the XML Document Object Model in Java interfaces together
with some helper classes.
|
org.dom4j.datatype |
An implementation of the dom4j API which supports the
XML Schema Data Types specification.
|
org.dom4j.io |
Provides input and output via SAX and DOM together with writing dom4j
objects to streams as XML text.
|
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(String prefix,
String uri) |
Namespace |
DocumentFactory.createNamespace(String prefix,
String uri) |
static Namespace |
Namespace.get(String uri)
A helper method to return the Namespace instance for no prefix and the
URI
|
static Namespace |
Namespace.get(String prefix,
String uri)
A helper method to return the Namespace instance for the given prefix and
URI
|
Namespace |
QName.getNamespace()
DOCUMENT ME!
|
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 |
Element.getNamespaceForPrefix(String prefix)
Returns the
Namespace which is mapped to the given prefix
or null if it could not be found. |
Namespace |
Element.getNamespaceForURI(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(String localName,
Namespace namespace) |
QName |
DocumentFactory.createQName(String localName,
Namespace namespace) |
static QName |
QName.get(String name,
Namespace namespace) |
static QName |
QName.get(String localName,
Namespace namespace,
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(String name,
Namespace namespace) |
QName(String name,
Namespace namespace,
String qualifiedName) |
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,
String schemaInstanceURI,
Namespace namespace) |
Modifier and Type | Method and Description |
---|---|
Namespace |
STAXEventReader.createNamespace(Namespace ns)
Constructs a new DOM4J Namespace from the provided StAX Namespace event.
|
protected Namespace |
DOMReader.getNamespace(String prefix,
String uri) |
Namespace |
STAXEventReader.readNamespace(XMLEventReader reader)
Constructs a DOM4J Namespace from the provided event stream.
|
Modifier and Type | Method and Description |
---|---|
protected 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 |
DOMWriter.attributeNameForNamespace(Namespace namespace) |
Namespace |
STAXEventWriter.createNamespace(Namespace ns)
|
protected boolean |
SAXWriter.isIgnoreableNamespace(Namespace namespace,
org.dom4j.tree.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(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 | Method and Description |
---|---|
Namespace |
ProxyDocumentFactory.createNamespace(String prefix,
String uri) |
Modifier and Type | Method and Description |
---|---|
int |
NodeComparator.compare(Namespace n1,
Namespace n2) |
QName |
ProxyDocumentFactory.createQName(String localName,
Namespace namespace) |
Constructor and Description |
---|
NonLazyElement(String name,
Namespace namespace) |
Copyright ? 2005 MetaStuff Ltd. All Rights Reserved. Hosted by