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 | Method and Description |
---|---|
Attribute |
Element.attribute(int index)
Returns the attribute at the specified indexGets the
|
Attribute |
Element.attribute(QName qName)
DOCUMENT ME!
|
Attribute |
Element.attribute(java.lang.String name)
Returns the attribute with the given name
|
static Attribute |
DocumentHelper.createAttribute(Element owner,
QName qname,
java.lang.String value) |
Attribute |
DocumentFactory.createAttribute(Element owner,
QName qname,
java.lang.String value) |
static Attribute |
DocumentHelper.createAttribute(Element owner,
java.lang.String name,
java.lang.String value) |
Attribute |
DocumentFactory.createAttribute(Element owner,
java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Attribute> |
Element.attributeIterator()
DOCUMENT ME!
|
java.util.List<Attribute> |
Element.attributes()
Returns the
Attribute instances this element contains as a backed
List so that the attributes may be modified directly using the
List interface. |
Modifier and Type | Method and Description |
---|---|
void |
Element.add(Attribute attribute)
Adds the given
Attribute to this element. |
boolean |
Element.remove(Attribute attribute)
Removes the given
Attribute from this element. |
void |
VisitorSupport.visit(Attribute node) |
void |
Visitor.visit(Attribute node)
Visits the given
Attribute |
Modifier and Type | Method and Description |
---|---|
void |
Element.setAttributes(java.util.List<Attribute> attributes)
Sets the attributes that this element contains
|
Modifier and Type | Class and Description |
---|---|
class |
BeanAttribute
BeanAttribute represents a mutable XML attribute which is
backed by a property of the JavaBean of its parent element. |
Modifier and Type | Method and Description |
---|---|
Attribute |
BeanDocumentFactory.createAttribute(Element owner,
QName qname,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Attribute> |
BeanElement.createAttributeList()
A Factory Method pattern which lazily creates a List implementation used
to store content
|
protected java.util.List<Attribute> |
BeanElement.createAttributeList(int size) |
Modifier and Type | Method and Description |
---|---|
void |
BeanElement.setAttributes(java.util.List<Attribute> attributes) |
Modifier and Type | Class and Description |
---|---|
class |
DatatypeAttribute
DatatypeAttribute represents an Attribute which supports the
XML Schema Data Types
specification. |
Modifier and Type | Method and Description |
---|---|
Attribute |
DatatypeDocumentFactory.createAttribute(Element owner,
QName qname,
java.lang.String value) |
Attribute |
DatatypeElementFactory.createAttribute(Element owner,
QName qname,
java.lang.String value) |
Modifier and Type | Class and Description |
---|---|
class |
DOMAttribute
DOMAttribute implements a doubly linked attribute which
supports the W3C DOM API. |
Modifier and Type | Method and Description |
---|---|
protected Attribute |
DOMElement.attribute(org.w3c.dom.Attr attr) |
protected Attribute |
DOMElement.attribute(java.lang.String namespaceURI,
java.lang.String localName) |
protected Attribute |
DOMElement.createAttribute(org.w3c.dom.Attr newAttr) |
Attribute |
DOMDocumentFactory.createAttribute(Element owner,
QName qname,
java.lang.String value) |
Modifier and Type | Field and Description |
---|---|
private java.util.Iterator<Attribute> |
STAXEventWriter.AttributeIterator.iter
The underlying DOm4J attribute iterator.
|
Modifier and Type | Method and Description |
---|---|
Attribute |
STAXEventReader.createAttribute(Element elem,
javax.xml.stream.events.Attribute attr)
Constructs a new DOM4J Attribute from the provided StAX Attribute event.
|
Attribute |
STAXEventReader.readAttribute(javax.xml.stream.XMLEventReader reader)
Constructs a DOM4J Attribute from the provided event stream.
|
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.events.Attribute |
STAXEventWriter.createAttribute(Attribute attr)
Constructs a STAX
Attribute event from a
DOM4J Attribute . |
void |
XMLWriter.write(Attribute attribute)
Writes the given
Attribute . |
void |
STAXEventWriter.writeAttribute(Attribute attr)
Writes a DOM4J
Attribute to the stream. |
protected void |
XMLWriter.writeAttribute(Attribute attribute) |
Constructor and Description |
---|
AttributeIterator(java.util.Iterator<Attribute> iter) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAttribute
AbstractNamespace is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
DefaultAttribute
DefaultAttribute implements a doubly linked node which
supports the parent relationship and is mutable. |
class |
FlyweightAttribute
FlyweightAttribute is a Flyweight pattern implementation of a
singly linked, read-only XML Attribute. |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Attribute> |
BaseElement.attributes
list of attributes
|
Modifier and Type | Method and Description |
---|---|
Attribute |
DefaultElement.attribute(int index) |
Attribute |
AbstractElement.attribute(int index) |
Attribute |
DefaultElement.attribute(QName qName) |
Attribute |
AbstractElement.attribute(QName qName) |
Attribute |
DefaultElement.attribute(java.lang.String name) |
Attribute |
AbstractElement.attribute(java.lang.String name) |
Attribute |
DefaultElement.attribute(java.lang.String name,
Namespace namespace) |
Attribute |
AbstractElement.attribute(java.lang.String name,
Namespace namespace) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Attribute> |
DefaultElement.attributeIterator() |
java.util.Iterator<Attribute> |
AbstractElement.attributeIterator() |
protected java.util.List<Attribute> |
DefaultElement.attributeList() |
protected abstract java.util.List<Attribute> |
AbstractElement.attributeList()
DOCUMENT ME!
|
protected java.util.List<Attribute> |
BaseElement.attributeList() |
protected java.util.List<Attribute> |
DefaultElement.attributeList(int size) |
protected abstract java.util.List<Attribute> |
AbstractElement.attributeList(int attributeCount)
DOCUMENT ME!
|
protected java.util.List<Attribute> |
BaseElement.attributeList(int size) |
java.util.List<Attribute> |
DefaultElement.attributes() |
java.util.List<Attribute> |
AbstractElement.attributes() |
protected java.util.List<Attribute> |
AbstractElement.createAttributeList()
A Factory Method pattern which creates a List implementation used to
store attributes
|
protected java.util.List<Attribute> |
AbstractElement.createAttributeList(int size)
A Factory Method pattern which creates a List implementation used to
store attributes
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultElement.add(Attribute attribute) |
void |
AbstractElement.add(Attribute attribute) |
boolean |
DefaultElement.remove(Attribute attribute) |
boolean |
AbstractElement.remove(Attribute attribute) |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultElement.setAttributeList(java.util.List<Attribute> attributeList) |
protected void |
BaseElement.setAttributeList(java.util.List<Attribute> attributeList) |
void |
DefaultElement.setAttributes(java.util.List<Attribute> attributes) |
void |
BaseElement.setAttributes(java.util.List<Attribute> attributes) |
Modifier and Type | Class and Description |
---|---|
class |
UserDataAttribute
UserDataAttribute support the adornment of a user data object
on an Element or Attribute instance such that the methods
UserDataAttribute.setData(Object) will get and set the values of a user data object. |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Object,Attribute> |
IndexedElement.attributeIndex
Lazily constructed index for attributes
Keys are of type QName and String
Values are of type <A>
|
Modifier and Type | Method and Description |
---|---|
Attribute |
IndexedElement.attribute(QName qName) |
Attribute |
IndexedElement.attribute(java.lang.String name) |
Attribute |
UserDataDocumentFactory.createAttribute(Element owner,
QName qname,
java.lang.String value) |
Attribute |
ProxyDocumentFactory.createAttribute(Element owner,
QName qname,
java.lang.String value) |
Attribute |
ProxyDocumentFactory.createAttribute(Element owner,
java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.Object,Attribute> |
IndexedElement.attributeIndex() |
protected java.util.Map<java.lang.Object,Attribute> |
IndexedElement.createAttributeIndex()
A Factory Method to create the index for attributes
|
Modifier and Type | Method and Description |
---|---|
protected void |
IndexedElement.addToAttributeIndex(Attribute attribute) |
protected void |
IndexedElement.addToAttributeIndex(java.lang.Object key,
Attribute value) |
protected static boolean |
AttributeHelper.booleanValue(Attribute attribute) |
int |
NodeComparator.compare(Attribute n1,
Attribute n2) |
protected void |
IndexedElement.removeFromAttributeIndex(Attribute attribute) |
protected void |
IndexedElement.removeFromAttributeIndex(java.lang.Object key,
Attribute value) |