Klasse DOMElement<CHILD extends DOMElement,PARENT extends DOMElement>
java.lang.Object
org.jupnp.xml.DOMElement<CHILD,PARENT>
Wraps a W3C element.
Using XPath for simple queries like "get all children with attribute value X" is actually slower than iterating with the W3C API. We still use XPath because there is a small chance that the authors of the XML implementation in the JDK will not get forced by Larry to fix their ugly code and APIs. Yes, it' s unlikely but one can dream...
- Autor:
- Christian Bauer
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class
DOMElement.ArrayBuilder<T extends DOMElement>
static class
DOMElement.Builder<T extends DOMElement>
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungfinal DOMElement.ArrayBuilder
<CHILD> final DOMElement.Builder
<PARENT> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected CHILD
adoptOrImport
(Document document, CHILD child, boolean copy) appendChild
(CHILD el, boolean copy) createChild
(String name) createChild
(String name, String namespaceURI) protected abstract DOMElement.ArrayBuilder
<CHILD> protected abstract DOMElement.Builder
<PARENT> CHILD[]
findChildren
(String name) getAttribute
(String attribute) CHILD[]
CHILD[]
getChildren
(String name) getFirstChild
(String name) getRequiredChild
(String name) getXpath()
getXPathChildElement
(DOMElement.Builder<CHILD> builder, String expr) getXPathChildElements
(DOMElement.Builder<CHILD> builder, String expr) getXPathElements
(DOMElement.Builder builder, String expr) getXPathParentElement
(DOMElement.Builder<PARENT> builder, String expr) getXPathParentElements
(DOMElement.Builder<CHILD> builder, String expr) getXPathResult
(String expr, QName result) getXPathResult
(Node context, String expr, QName result) getXPathString
(XPath xpath, String expr) protected String
void
removeChild
(CHILD el) void
replaceChild
(CHILD original, CHILD replacement, boolean copy) void
replaceEqualChild
(DOMElement source, String identifier) setAttribute
(String attribute, String value) setContent
(String content) toString()
-
Felddetails
-
PARENT_BUILDER
-
CHILD_BUILDER
-
-
Konstruktordetails
-
DOMElement
-
-
Methodendetails
-
getW3CElement
-
getElementName
-
getContent
-
setContent
-
getAttribute
-
setAttribute
-
getParent
-
getChildren
-
getChildren
-
getRequiredChild
- Löst aus:
ParserException
-
findChildren
-
findChildWithIdentifier
-
getFirstChild
-
createChild
-
createChild
-
appendChild
-
replaceChild
-
replaceEqualChild
-
removeChild
-
removeChildren
public void removeChildren() -
adoptOrImport
-
createParentBuilder
-
createChildBuilder
-
toSimpleXMLString
-
toString
-
getXpath
-
prefix
-
getXPathParentElements
-
getXPathChildElements
-
getXPathParentElement
-
getXPathChildElement
-
getXPathElements
-
getXPathString
-
getXPathResult
-
getXPathResult
-