Package org.opencms.xml
Class CmsXmlGenericWrapper
- java.lang.Object
-
- org.opencms.xml.CmsXmlGenericWrapper
-
public final class CmsXmlGenericWrapper extends java.lang.Object
Provides generic wrappers for XML library methods that do not support Java 5 generic types.- Since:
- 7.5.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<org.dom4j.Node>content(org.dom4j.Element element)Provides a type safe / generic wrapper forBranch.content().static java.lang.Iterable<org.dom4j.Element>elementIterable(org.dom4j.Element element, java.lang.String name)Returns an element iterator.static java.util.Iterator<org.dom4j.Element>elementIterator(org.dom4j.Element element)Provides a type safe / generic wrapper forElement.elementIterator(org.dom4j.QName).static java.util.Iterator<org.dom4j.Element>elementIterator(org.dom4j.Element element, java.lang.String name)Provides a type safe / generic wrapper forElement.elementIterator(String).static java.util.List<org.dom4j.Element>elements(org.dom4j.Element element)Provides a type safe / generic wrapper forElement.elements().static java.util.List<org.dom4j.Element>elements(org.dom4j.Element element, java.lang.String name)Provides a type safe / generic wrapper forElement.elements(String).static java.util.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 java.util.List<org.dom4j.Node>selectNodes(org.dom4j.Document doc, java.lang.String xpathExpression)Provides a type safe / generic wrapper forNode.selectNodes(String).
-
-
-
Method Detail
-
content
public static java.util.List<org.dom4j.Node> content(org.dom4j.Element element)
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
public static java.lang.Iterable<org.dom4j.Element> elementIterable(org.dom4j.Element element, java.lang.String name)
Returns an element iterator.- Parameters:
element- the elementname- the name- Returns:
- the iterator
-
elementIterator
public static java.util.Iterator<org.dom4j.Element> elementIterator(org.dom4j.Element element)
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
public static java.util.Iterator<org.dom4j.Element> elementIterator(org.dom4j.Element element, java.lang.String name)
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
public static java.util.List<org.dom4j.Element> elements(org.dom4j.Element element)
Provides a type safe / generic wrapper forElement.elements().- Parameters:
element- the element to iterate- Returns:
- type safe access to
Element.elements().
-
elements
public static java.util.List<org.dom4j.Element> elements(org.dom4j.Element element, org.dom4j.QName name)
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
public static java.util.List<org.dom4j.Element> elements(org.dom4j.Element element, java.lang.String name)
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
public static java.util.List<org.dom4j.Node> selectNodes(org.dom4j.Document doc, java.lang.String xpathExpression)
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)
-
-