Package org.opencms.xml
Class CmsXmlGenericWrapper
java.lang.Object
org.opencms.xml.CmsXmlGenericWrapper
Provides generic wrappers for XML library methods that do not support Java 5 generic types.
- Since:
- 7.5.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<org.dom4j.Node> content
(org.dom4j.Element element) Provides a type safe / generic wrapper forBranch.content()
.static Iterable
<org.dom4j.Element> elementIterable
(org.dom4j.Element element, String name) Returns an element iterator.static Iterator
<org.dom4j.Element> elementIterator
(org.dom4j.Element element) Provides a type safe / generic wrapper forElement.elementIterator(org.dom4j.QName)
.static Iterator
<org.dom4j.Element> elementIterator
(org.dom4j.Element element, String name) Provides a type safe / generic wrapper forElement.elementIterator(String)
.static List
<org.dom4j.Element> elements
(org.dom4j.Element element) Provides a type safe / generic wrapper forElement.elements()
.static List
<org.dom4j.Element> Provides a type safe / generic wrapper forElement.elements(String)
.static List
<org.dom4j.Element> elements
(org.dom4j.Element element, org.dom4j.QName name) Provides a type safe / generic wrapper forElement.elements(org.dom4j.QName)
.static List
<org.dom4j.Node> selectNodes
(org.dom4j.Document doc, String xpathExpression) Provides a type safe / generic wrapper forNode.selectNodes(String)
.
-
Method Details
-
content
Provides a type safe / generic wrapper forBranch.content()
.- Parameters:
element
- the element to get the content for- Returns:
- type safe access to
Branch.content()
.
-
elementIterable
Returns an element iterator.- Parameters:
element
- the elementname
- the name- Returns:
- the iterator
-
elementIterator
Provides a type safe / generic wrapper forElement.elementIterator(org.dom4j.QName)
.- Parameters:
element
- the element to iterate- Returns:
- type safe access to
Element.elementIterator(org.dom4j.QName)
.
-
elementIterator
Provides a type safe / generic wrapper forElement.elementIterator(String)
.- Parameters:
element
- the element to iteratename
- the element name to match- Returns:
- type safe access to
Element.elementIterator(String)
.
-
elements
Provides a type safe / generic wrapper forElement.elements()
.- Parameters:
element
- the element to iterate- Returns:
- type safe access to
Element.elements()
.
-
elements
Provides a type safe / generic wrapper forElement.elements(org.dom4j.QName)
.- Parameters:
element
- the element to iteratename
- the element name to match- Returns:
- type safe access to
Element.elements(org.dom4j.QName)
.
-
elements
Provides a type safe / generic wrapper forElement.elements(String)
.- Parameters:
element
- the element to iteratename
- the element name to match- Returns:
- type safe access to
Element.elements(String)
.
-
selectNodes
Provides a type safe / generic wrapper forNode.selectNodes(String)
.- Parameters:
doc
- the document to select the nodes fromxpathExpression
- the XPATH expression to select- Returns:
- type safe access to
Node.selectNodes(String)
-