Uses of Interface
org.dom4j.Element
-
Packages that use Element 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.jaxb org.dom4j.rule org.dom4j.swing A collection of adapters to allow easy integration with dom4j XML documents and Swing such as TreeModels and TableModels.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.org.dom4j.xpath Provides the core tools needed to use the XPath library -
-
Uses of Element in org.dom4j
Methods in org.dom4j that return Element Modifier and Type Method Description Element
Element. addAttribute(java.lang.String name, java.lang.String value)
Adds the attribute value of the given local name.Element
Element. addAttribute(QName qName, java.lang.String value)
Adds the attribute value of the given fully qualified name.Element
Element. addCDATA(java.lang.String cdata)
Adds a newCDATA
node with the given text to this element.Element
Element. addComment(java.lang.String comment)
Adds a newComment
node with the given text to this element.Element
Branch. addElement(java.lang.String name)
Adds a newElement
node with the given name to this branch and returns a reference to the new node.Element
Branch. addElement(java.lang.String qualifiedName, java.lang.String namespaceURI)
Adds a newElement
node with the given qualified name and namespace URI to this branch and returns a reference to the new node.Element
Branch. addElement(QName qname)
Adds a newElement
node with the givenQName
to this branch and returns a reference to the new node.Element
Element. addEntity(java.lang.String name, java.lang.String text)
Adds a newEntity
node with the given name and text to this element and returns a reference to the new node.Element
Element. addNamespace(java.lang.String prefix, java.lang.String uri)
Adds a namespace to this element for use by its child contentElement
Element. addProcessingInstruction(java.lang.String target, java.lang.String text)
Adds a processing instruction for the given targetElement
Element. addProcessingInstruction(java.lang.String target, java.util.Map<java.lang.String,java.lang.String> data)
Adds a processing instruction for the given targetElement
Element. addText(java.lang.String text)
Adds a newText
node with the given text to this element.Element
Element. createCopy()
Creates a deep copy of this element The new element is detached from its parent, and getParent() on the clone will return null.Element
Element. createCopy(java.lang.String name)
Creates a deep copy of this element with the given local name The new element is detached from its parent, and getParent() on the clone will return null.Element
Element. createCopy(QName qName)
Creates a deep copy of this element with the given fully qualified name.Element
DocumentFactory. createElement(java.lang.String name)
Element
DocumentFactory. createElement(java.lang.String qualifiedName, java.lang.String namespaceURI)
Element
DocumentFactory. createElement(QName qname)
static Element
DocumentHelper. createElement(java.lang.String name)
static Element
DocumentHelper. createElement(QName qname)
Element
Element. element(java.lang.String name)
Returns the first element for the given local name and any namespace.Element
Element. element(QName qName)
Returns the first element for the given fully qualified name.Element
Branch. elementByID(java.lang.String elementID)
Returns the element of the given ID attribute value.Element
ElementPath. getCurrent()
DOCUMENT ME!Element
ElementPath. getElement(int depth)
DOCUMENT ME!Element
Node. getParent()
getParent
returns the parentElement
if this node supports the parent relationship or null if it is the root element or does not support the parent relationship.Element
Document. getRootElement()
Returns the rootElement
for this document.static Element
DocumentHelper. makeElement(Branch source, java.lang.String path)
makeElementMethods in org.dom4j that return types with arguments of type Element Modifier and Type Method Description java.util.Iterator<Element>
Element. elementIterator()
Returns an iterator over all this elements child elements.java.util.Iterator<Element>
Element. elementIterator(java.lang.String name)
Returns an iterator over the elements contained in this element which match the given local name and any namespace.java.util.Iterator<Element>
Element. elementIterator(QName qName)
Returns an iterator over the elements contained in this element which match the given fully qualified name.java.util.List<Element>
Element. elements()
Returns the elements contained in this element.java.util.List<Element>
Element. elements(java.lang.String name)
Returns the elements contained in this element with the given local name and any namespace.java.util.List<Element>
Element. elements(QName qName)
Returns the elements contained in this element with the given fully qualified name.Methods in org.dom4j with parameters of type Element Modifier and Type Method Description void
Branch. add(Element element)
Adds the givenElement
to this branch.void
Element. appendAttributes(Element element)
Appends the attributes of the given element to me.Node
Node. asXPathResult(Element parent)
asXPathResult
returns a version of this node which is capable of being an XPath result.Attribute
DocumentFactory. createAttribute(Element owner, java.lang.String name, 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)
static Attribute
DocumentHelper. createAttribute(Element owner, QName qname, java.lang.String value)
Document
DocumentFactory. createDocument(Element rootElement)
static Document
DocumentHelper. createDocument(Element rootElement)
protected Node
Namespace. createXPathResult(Element parent)
java.lang.String
Namespace. getPath(Element context)
java.lang.String
Node. getPath(Element context)
Returns the relative XPath expression which will return a node set containing the given node such as a/b/@c.java.lang.String
Namespace. getUniquePath(Element context)
java.lang.String
Node. getUniquePath(Element context)
Returns the relative unique XPath expression from the given context which will return a nodeset of one node which is the current node.boolean
Branch. remove(Element element)
Removes the givenElement
if the node is an immediate child of this branch.void
Node. setParent(Element parent)
setParent
sets the parent relationship of this node if the parent relationship is supported or does nothing if the parent relationship is not supported.void
Document. setRootElement(Element rootElement)
Sets the root element for this documentvoid
Visitor. visit(Element node)
Visits the givenElement
void
VisitorSupport. visit(Element node)
Constructors in org.dom4j with parameters of type Element Constructor Description IllegalAddException(Element parent, Node node, java.lang.String reason)
-
Uses of Element in org.dom4j.bean
Classes in org.dom4j.bean that implement Element Modifier and Type Class Description class
BeanElement
BeanElement
uses a Java Bean to store its attributes.Methods in org.dom4j.bean that return Element Modifier and Type Method Description Element
BeanElement. addAttribute(java.lang.String name, java.lang.String value)
Element
BeanElement. addAttribute(QName qName, java.lang.String value)
Element
BeanDocumentFactory. createElement(QName qname)
Element
BeanDocumentFactory. createElement(QName qname, org.xml.sax.Attributes attributes)
Element
BeanAttribute. getParent()
Methods in org.dom4j.bean with parameters of type Element Modifier and Type Method Description Attribute
BeanDocumentFactory. createAttribute(Element owner, QName qname, java.lang.String value)
-
Uses of Element in org.dom4j.datatype
Classes in org.dom4j.datatype that implement Element Modifier and Type Class Description class
DatatypeElement
DatatypeElement
represents an Element which supports the XML Schema Data Types specification.Fields in org.dom4j.datatype declared as Element Modifier and Type Field Description private Element
DatatypeAttribute. parent
The parentElement
of theAttribute
Fields in org.dom4j.datatype with type parameters of type Element Modifier and Type Field Description protected java.util.Map<Element,DocumentFactory>
NamedTypeResolver. elementFactoryMap
protected java.util.Map<Element,QName>
NamedTypeResolver. typedElementMap
Methods in org.dom4j.datatype that return Element Modifier and Type Method Description Element
DatatypeElement. addText(java.lang.String text)
Element
DatatypeElementFactory. createElement(QName qname)
Element
DatatypeAttribute. getParent()
Methods in org.dom4j.datatype with parameters of type Element Modifier and Type Method Description Attribute
DatatypeDocumentFactory. createAttribute(Element owner, QName qname, java.lang.String value)
Attribute
DatatypeElementFactory. createAttribute(Element owner, QName qname, java.lang.String value)
private com.sun.msv.datatype.xsd.XSDatatype
SchemaParser. dataTypeForXsdAttribute(Element xsdAttribute)
processes an XML Schema <attribute> tagprivate com.sun.msv.datatype.xsd.XSDatatype
SchemaParser. deriveSimpleType(com.sun.msv.datatype.xsd.XSDatatype baseType, Element xsdRestriction)
Derives a new type from a base type and a set of restrictionsprivate QName
NamedTypeResolver. getQNameOfSchemaElement(Element element)
private com.sun.msv.datatype.xsd.XSDatatype
SchemaParser. loadXSDatatypeFromSimpleType(Element xsdSimpleType)
Loads a XSDatatype object from a <simpleType> attribute schema elementprivate void
SchemaParser. onChildElements(Element element, DatatypeElementFactory fact)
private void
SchemaParser. onDatatypeAttribute(Element xsdElement, DatatypeElementFactory elementFactory, Element xsdAttribute)
processes an XML Schema <attribute> tagprivate void
SchemaParser. onDatatypeElement(Element xsdElement, DocumentFactory parentFactory)
processes an XML Schema <element> tagprivate void
SchemaParser. onNamedSchemaComplexType(Element schemaComplexType)
processes an named XML Schema <complexTypegt; tagprivate void
SchemaParser. onNamedSchemaSimpleType(Element schemaSimpleType)
processes an named XML Schema <simpleTypegt; tagprivate void
SchemaParser. onSchemaComplexType(Element schemaComplexType, DatatypeElementFactory elementFactory)
processes an XML Schema <complexTypegt; tag(package private) void
NamedTypeResolver. registerTypedElement(Element element, QName type, DocumentFactory parentFactory)
void
DatatypeAttribute. setParent(Element parent)
-
Uses of Element in org.dom4j.dom
Classes in org.dom4j.dom that implement Element Modifier and Type Class Description class
DOMElement
DOMElement
implements an XML element which supports the W3C DOM API.Methods in org.dom4j.dom that return Element Modifier and Type Method Description Element
DOMDocumentFactory. createElement(QName qname)
Element
DOMDocumentFactory. createElement(QName qname, int attributeCount)
Methods in org.dom4j.dom with parameters of type Element Modifier and Type Method Description Attribute
DOMDocumentFactory. createAttribute(Element owner, QName qname, java.lang.String value)
Method parameters in org.dom4j.dom with type arguments of type Element Modifier and Type Method Description static void
DOMNodeHelper. appendElementsByTagName(java.util.List<? super Element> list, Branch parent, java.lang.String name)
static void
DOMNodeHelper. appendElementsByTagNameNS(java.util.List<? super Element> list, Branch parent, java.lang.String namespace, java.lang.String localName)
Constructors in org.dom4j.dom with parameters of type Element Constructor Description DOMAttribute(Element parent, QName qname, java.lang.String value)
DOMCDATA(Element parent, java.lang.String text)
DOMComment(Element parent, java.lang.String text)
DOMEntityReference(Element parent, java.lang.String name, java.lang.String text)
DOMNamespace(Element parent, java.lang.String prefix, java.lang.String uri)
DOMProcessingInstruction(Element parent, java.lang.String target, java.lang.String val)
DOMText(Element parent, java.lang.String text)
-
Uses of Element in org.dom4j.io
Fields in org.dom4j.io declared as Element Modifier and Type Field Description private Element
DOMSAXContentHandler. currentElement
The current element we are onprivate Element
SAXContentHandler. currentElement
The current element we are onprivate Element
SAXModifyElementHandler. modifiedElement
protected Element[]
ElementStack. stack
stack ofElement
objectsMethods in org.dom4j.io that return Element Modifier and Type Method Description Element
STAXEventReader. createElement(javax.xml.stream.events.StartElement startEvent)
Constructs a new DOM4J Element from the provided StartElement event.Element
ElementStack. getCurrent()
Element
ElementStack. getElement(int depth)
protected Element
SAXModifyElementHandler. getModifiedElement()
DOCUMENT ME!Element
ElementModifier. modifyElement(Element element)
Called by an event based processor when an elements closing tag is encountered.Element
ElementStack. peekElement()
Peeks at the top element on the stack without changing the contents of the stack.Element
ElementStack. popElement()
Pops the element off the stackElement
PruningElementStack. popElement()
Element
STAXEventReader. readElement(javax.xml.stream.XMLEventReader eventReader)
Reads a DOM4J Element from the provided event stream.Methods in org.dom4j.io with parameters of type Element Modifier and Type Method Description protected void
DOMSAXContentHandler. addAttributes(Element element, org.xml.sax.Attributes attributes)
protected void
SAXContentHandler. addAttributes(Element element, org.xml.sax.Attributes attributes)
Add all the attributes to the given elementsprotected void
DOMSAXContentHandler. addDeclaredNamespaces(Element element)
protected void
SAXContentHandler. addDeclaredNamespaces(Element element)
Add all namespaces declared before the startElement() SAX event to the current element so that they are available to child elements and attributesprotected void
DOMWriter. appendDOMTree(org.w3c.dom.Document domDocument, org.w3c.dom.Node domCurrent, Element element)
Attribute
STAXEventReader. createAttribute(Element elem, javax.xml.stream.events.Attribute attr)
Constructs a new DOM4J Attribute from the provided StAX Attribute event.protected org.xml.sax.Attributes
SAXWriter. createAttributes(Element element, org.xml.sax.Attributes namespaceAttributes)
javax.xml.stream.events.EndElement
STAXEventWriter. createEndElement(Element elem)
Constructs a STAXEndElement
event from a DOM4JElement
.javax.xml.stream.events.StartElement
STAXEventWriter. createStartElement(Element elem)
Constructs a STAXStartElement
event from a DOM4JElement
.protected void
SAXWriter. endElement(Element element)
protected boolean
XMLWriter. isElementSpacePreserved(Element element)
Determines if element is a special case of XML elements where it contains an xml:space attribute of "preserve".Element
ElementModifier. modifyElement(Element element)
Called by an event based processor when an elements closing tag is encountered.protected void
PruningElementStack. pathMatches(Element parent, Element selectedNode)
void
ElementStack. pushElement(Element element)
Pushes a new element onto the stackprotected void
SAXWriter. startElement(Element element, org.xml.sax.helpers.AttributesImpl namespaceAttributes)
protected org.xml.sax.helpers.AttributesImpl
SAXWriter. startPrefixMapping(Element element, NamespaceStack namespaceStack)
Fires a SAX startPrefixMapping event for all the namespaceStack which have just come into scopeprotected boolean
PruningElementStack. validElement(Element element, int index)
void
SAXWriter. write(Element element)
Generates SAX events for the given Element and all its contentprotected void
SAXWriter. write(Element element, NamespaceStack namespaceStack)
void
XMLWriter. write(Element element)
protected void
XMLWriter. writeAttributes(Element element)
Writes the attributes of the given elementvoid
SAXWriter. writeClose(Element element)
Writes the closing tag of anElement
void
XMLWriter. writeClose(Element element)
Writes the closing tag of anElement
protected void
HTMLWriter. writeElement(Element element)
This override handles any elements that should not remove whitespace, such as <PRE>, <SCRIPT>, <STYLE>, and <TEXTAREA>.void
STAXEventWriter. writeElement(Element elem)
Writes a DOM4JElement
node and its children to the stream.protected void
XMLWriter. writeElement(Element element)
protected void
XMLWriter. writeElementContent(Element element)
Outputs the content of the given element.void
SAXWriter. writeOpen(Element element)
void
XMLWriter. writeOpen(Element element)
-
Uses of Element in org.dom4j.jaxb
Methods in org.dom4j.jaxb that return Element Modifier and Type Method Description protected Element
JAXBSupport. marshal(javax.xml.bind.Element element)
Marshals the givenElement
in to its DOM4J counterpart.Element
JAXBModifier.JAXBElementModifier. modifyElement(Element element)
Methods in org.dom4j.jaxb with parameters of type Element Modifier and Type Method Description Element
JAXBModifier.JAXBElementModifier. modifyElement(Element element)
protected javax.xml.bind.Element
JAXBSupport. unmarshal(Element element)
Unmarshalls the specified DOM4JElement
into aElement
void
JAXBWriter. writeCloseElement(Element element)
Writes the closing tag of the specifiedElement
to the document.void
JAXBWriter. writeElement(Element element)
Writes the specifiedElement
to the document.void
JAXBWriter. writeOpenElement(Element element)
Writes the opening tag of the specifiedElement
to the document. -
Uses of Element in org.dom4j.rule
Methods in org.dom4j.rule with parameters of type Element Modifier and Type Method Description void
Mode. applyTemplates(Element element)
void
Stylesheet. applyTemplates(Element element)
If input is aNode
, this will processes all of the children of that node.void
Stylesheet. applyTemplates(Element element, java.lang.String mode)
Processes the input object in the given mode. -
Uses of Element in org.dom4j.swing
Methods in org.dom4j.swing with parameters of type Element Modifier and Type Method Description static XMLTableDefinition
XMLTableDefinition. load(Element definition)
Loads an XML table definition from an XML definition documentConstructors in org.dom4j.swing with parameters of type Element Constructor Description XMLTableModel(Element tableDefinition, java.lang.Object source)
Creates a TableModel from an XML table definition document and an XML source -
Uses of Element in org.dom4j.tree
Classes in org.dom4j.tree that implement Element Modifier and Type Class Description class
AbstractElement
AbstractElement
is an abstract base class for tree implementors to use for implementation inheritence.class
BaseElement
BaseElement
is a useful base class for implemementation inheritence of an XML element.class
DefaultElement
DefaultElement
is the default DOM4J default implementation of an XML element.Fields in org.dom4j.tree declared as Element Modifier and Type Field Description private Element
DefaultAttribute. parent
The parent of this nodeprivate Element
DefaultCDATA. parent
The parent of this nodeprivate Element
DefaultComment. parent
The parent of this nodeprivate Element
DefaultEntity. parent
The parent of this nodeprivate Element
DefaultNamespace. parent
The parent of this nodeprivate Element
DefaultProcessingInstruction. parent
The parent of this nodeprivate Element
DefaultText. parent
The parent of this nodeprivate Element
DefaultDocument. rootElement
The root element of this documentMethods in org.dom4j.tree that return Element Modifier and Type Method Description Element
AbstractElement. addAttribute(java.lang.String name, java.lang.String value)
Element
AbstractElement. addAttribute(QName qName, java.lang.String value)
Element
AbstractElement. addCDATA(java.lang.String cdata)
Element
AbstractElement. addComment(java.lang.String comment)
Element
AbstractBranch. addElement(java.lang.String name)
Element
AbstractBranch. addElement(java.lang.String qualifiedName, java.lang.String namespaceURI)
Element
AbstractBranch. addElement(java.lang.String name, java.lang.String prefix, java.lang.String uri)
Element
AbstractBranch. addElement(QName qname)
Element
AbstractDocument. addElement(java.lang.String name)
Element
AbstractDocument. addElement(java.lang.String qualifiedName, java.lang.String namespaceURI)
Element
AbstractDocument. addElement(QName qName)
Element
AbstractElement. addElement(java.lang.String name)
Element
AbstractElement. addEntity(java.lang.String name, java.lang.String text)
Element
AbstractElement. addNamespace(java.lang.String prefix, java.lang.String uri)
Element
AbstractElement. addProcessingInstruction(java.lang.String target, java.lang.String data)
Element
AbstractElement. addProcessingInstruction(java.lang.String target, java.util.Map<java.lang.String,java.lang.String> data)
Element
AbstractElement. addText(java.lang.String text)
Element
AbstractElement. createCopy()
This returns a deep clone of this element.Element
AbstractElement. createCopy(java.lang.String name)
Element
AbstractElement. createCopy(QName qName)
protected Element
AbstractElement. createElement(java.lang.String name)
protected Element
AbstractElement. createElement(QName qName)
Element
AbstractElement. element(java.lang.String name)
Element
AbstractElement. element(java.lang.String name, Namespace namespace)
Element
AbstractElement. element(QName qName)
Element
DefaultElement. element(java.lang.String name)
Element
DefaultElement. element(java.lang.String name, Namespace namespace)
Element
DefaultElement. element(QName qName)
Element
AbstractBranch. elementByID(java.lang.String elementID)
Element
AbstractNode. getParent()
Element
BaseElement. getParent()
Element
DefaultAttribute. getParent()
Element
DefaultCDATA. getParent()
Element
DefaultComment. getParent()
Element
DefaultElement. getParent()
Element
DefaultEntity. getParent()
Element
DefaultNamespace. getParent()
Element
DefaultProcessingInstruction. getParent()
Element
DefaultText. getParent()
Element
DefaultDocument. getRootElement()
Methods in org.dom4j.tree that return types with arguments of type Element Modifier and Type Method Description java.util.Iterator<Element>
AbstractElement. elementIterator()
java.util.Iterator<Element>
AbstractElement. elementIterator(java.lang.String name)
java.util.Iterator<Element>
AbstractElement. elementIterator(java.lang.String name, Namespace ns)
java.util.Iterator<Element>
AbstractElement. elementIterator(QName qName)
java.util.List<Element>
AbstractElement. elements()
java.util.List<Element>
AbstractElement. elements(java.lang.String name)
java.util.List<Element>
AbstractElement. elements(java.lang.String name, Namespace namespace)
java.util.List<Element>
AbstractElement. elements(QName qName)
Methods in org.dom4j.tree with parameters of type Element Modifier and Type Method Description void
AbstractBranch. add(Element element)
void
AbstractDocument. add(Element element)
void
AbstractElement. add(Element element)
void
AbstractElement. appendAttributes(Element element)
Node
AbstractDocument. asXPathResult(Element parent)
Node
AbstractNode. asXPathResult(Element parent)
protected void
AbstractDocument. checkAddElementAllowed(Element element)
protected Node
AbstractAttribute. createXPathResult(Element parent)
protected Node
AbstractNode. createXPathResult(Element parent)
protected Node
FlyweightCDATA. createXPathResult(Element parent)
protected Node
FlyweightComment. createXPathResult(Element parent)
protected Node
FlyweightEntity. createXPathResult(Element parent)
protected Node
FlyweightProcessingInstruction. createXPathResult(Element parent)
protected Node
FlyweightText. createXPathResult(Element parent)
protected java.lang.String
AbstractBranch. elementID(Element element)
DOCUMENT ME!java.lang.String
AbstractAttribute. getPath(Element context)
java.lang.String
AbstractCharacterData. getPath(Element context)
java.lang.String
AbstractComment. getPath(Element context)
java.lang.String
AbstractDocument. getPath(Element context)
java.lang.String
AbstractDocumentType. getPath(Element context)
java.lang.String
AbstractElement. getPath(Element context)
java.lang.String
AbstractEntity. getPath(Element context)
java.lang.String
AbstractProcessingInstruction. getPath(Element context)
java.lang.String
AbstractAttribute. getUniquePath(Element context)
java.lang.String
AbstractCharacterData. getUniquePath(Element context)
java.lang.String
AbstractComment. getUniquePath(Element context)
java.lang.String
AbstractDocument. getUniquePath(Element context)
java.lang.String
AbstractDocumentType. getUniquePath(Element context)
java.lang.String
AbstractElement. getUniquePath(Element context)
java.lang.String
AbstractEntity. getUniquePath(Element context)
java.lang.String
AbstractProcessingInstruction. getUniquePath(Element context)
boolean
AbstractBranch. remove(Element element)
boolean
AbstractDocument. remove(Element element)
boolean
AbstractElement. remove(Element element)
protected abstract void
AbstractDocument. rootElementAdded(Element rootElement)
Called to set the root element variableprotected void
DefaultDocument. rootElementAdded(Element element)
void
AbstractNode. setParent(Element parent)
void
BaseElement. setParent(Element parent)
void
DefaultAttribute. setParent(Element parent)
void
DefaultCDATA. setParent(Element parent)
void
DefaultComment. setParent(Element parent)
void
DefaultElement. setParent(Element parent)
void
DefaultEntity. setParent(Element parent)
void
DefaultNamespace. setParent(Element parent)
void
DefaultProcessingInstruction. setParent(Element parent)
void
DefaultText. setParent(Element parent)
void
AbstractDocument. setRootElement(Element rootElement)
Constructors in org.dom4j.tree with parameters of type Element Constructor Description DefaultAttribute(Element parent, java.lang.String name, java.lang.String value, Namespace namespace)
Creates theAttribute
with the specified local name, value andNamespace
.DefaultAttribute(Element parent, QName qname, java.lang.String value)
DefaultCDATA(Element parent, java.lang.String text)
DOCUMENT ME!DefaultComment(Element parent, java.lang.String text)
DOCUMENT ME!DefaultDocument(java.lang.String name, Element rootElement, DocumentType docType)
DefaultDocument(Element rootElement)
DefaultDocument(Element rootElement, DocumentType docType)
DefaultEntity(Element parent, java.lang.String name, java.lang.String text)
Creates theEntity
with the specified name and text.DefaultNamespace(Element parent, java.lang.String prefix, java.lang.String uri)
DOCUMENT ME!DefaultProcessingInstruction(Element parent, java.lang.String target, java.lang.String values)
This will create a new PI with the given target and valuesDefaultText(Element parent, java.lang.String text)
DOCUMENT ME! -
Uses of Element in org.dom4j.util
Classes in org.dom4j.util that implement Element Modifier and Type Class Description class
IndexedElement
IndexedElement
is an implementation ofElement
which maintains an index of the attributes and elements it contains to optimise lookups via name.class
NonLazyElement
NonLazyElement
is the default DOM4J default implementation of an XML element.class
UserDataElement
UserDataElement
support the adornment of a user data object on an Element or Attribute instance such that the methodsUserDataElement.getData()
UserDataElement.setData(Object)
will get and set the values of a user data object.Fields in org.dom4j.util declared as Element Modifier and Type Field Description private Element
XMLErrorHandler. errors
Stores the errors that occur during a SAX parseMethods in org.dom4j.util that return Element Modifier and Type Method Description protected Element
IndexedElement. asElement(java.lang.Object object)
Element
IndexedDocumentFactory. createElement(QName qname)
Element
IndexedDocumentFactory. createElement(QName qname, int attributeCount)
Element
NonLazyDocumentFactory. createElement(QName qname)
Element
ProxyDocumentFactory. createElement(java.lang.String name)
Element
ProxyDocumentFactory. createElement(QName qname)
Element
UserDataDocumentFactory. createElement(QName qname)
protected Element
UserDataElement. createElement(java.lang.String name)
protected Element
UserDataElement. createElement(QName qName)
Element
IndexedElement. element(java.lang.String name)
Element
IndexedElement. element(QName qName)
Element
XMLErrorHandler. getErrors()
Methods in org.dom4j.util that return types with arguments of type Element Modifier and Type Method Description protected java.util.Iterator<Element>
IndexedElement. asElementIterator(java.lang.Object object)
Deprecated.WILL BE REMOVED IN dom4j-1.6 !!protected java.util.List<Element>
IndexedElement. asElementList(java.lang.Object object)
java.util.List<Element>
IndexedElement. elements(java.lang.String name)
java.util.List<Element>
IndexedElement. elements(QName qName)
Methods in org.dom4j.util with parameters of type Element Modifier and Type Method Description protected void
XMLErrorHandler. addException(Element element, org.xml.sax.SAXParseException e)
Adds the given parse exception information to the given element instanceprotected void
IndexedElement. addToElementIndex(java.lang.Object key, Element value)
protected void
IndexedElement. addToElementIndex(Element element)
static boolean
AttributeHelper. booleanValue(Element element, java.lang.String attributeName)
static boolean
AttributeHelper. booleanValue(Element element, QName attributeQName)
int
NodeComparator. compare(Element n1, Element n2)
Attribute
ProxyDocumentFactory. createAttribute(Element owner, java.lang.String name, java.lang.String value)
Attribute
ProxyDocumentFactory. createAttribute(Element owner, QName qname, java.lang.String value)
Attribute
UserDataDocumentFactory. createAttribute(Element owner, QName qname, java.lang.String value)
Document
ProxyDocumentFactory. createDocument(Element rootElement)
protected void
IndexedElement. removeFromElementIndex(java.lang.Object key, Element value)
protected void
IndexedElement. removeFromElementIndex(Element element)
void
XMLErrorHandler. setErrors(Element errors)
Constructors in org.dom4j.util with parameters of type Element Constructor Description XMLErrorHandler(Element errors)
-
Uses of Element in org.dom4j.xpath
Fields in org.dom4j.xpath declared as Element Modifier and Type Field Description private Element
DefaultNamespaceContext. element
Constructors in org.dom4j.xpath with parameters of type Element Constructor Description DefaultNamespaceContext(Element element)
-