org.opencms.xml
Class CmsXmlGenericWrapper

java.lang.Object
  extended by 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
Version:
$Revision: 1.3 $
Author:
Alexander Kandzior

Method Summary
static java.util.List<org.dom4j.Node> content(org.dom4j.Element element)
          Provides a type safe / generic wrapper for Branch.content().
static java.util.Iterator<org.dom4j.Element> elementIterator(org.dom4j.Element element)
          Provides a type safe / generic wrapper for Element.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 for Element.elementIterator(String).
static java.util.List<org.dom4j.Element> elements(org.dom4j.Element element)
          Provides a type safe / generic wrapper for Element.elements().
static java.util.List<org.dom4j.Element> elements(org.dom4j.Element element, org.dom4j.QName name)
          Provides a type safe / generic wrapper for Element.elements(org.dom4j.QName).
static java.util.List<org.dom4j.Element> elements(org.dom4j.Element element, java.lang.String name)
          Provides a type safe / generic wrapper for Element.elements(String).
static java.util.List<org.dom4j.Node> selectNodes(org.dom4j.Document doc, java.lang.String xpathExpression)
          Provides a type safe / generic wrapper for Node.selectNodes(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

elements

public static java.util.List<org.dom4j.Element> elements(org.dom4j.Element element)
Provides a type safe / generic wrapper for Element.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,
                                                         java.lang.String name)
Provides a type safe / generic wrapper for Element.elements(String).

Parameters:
element - the element to iterate
name - the element name to match
Returns:
type safe access to Element.elements(String).


elements

public static java.util.List<org.dom4j.Element> elements(org.dom4j.Element element,
                                                         org.dom4j.QName name)
Provides a type safe / generic wrapper for Element.elements(org.dom4j.QName).

Parameters:
element - the element to iterate
name - the element name to match
Returns:
type safe access to Element.elements(org.dom4j.QName).


content

public static java.util.List<org.dom4j.Node> content(org.dom4j.Element element)
Provides a type safe / generic wrapper for Branch.content().

Parameters:
element - the element to get the content for
Returns:
type safe access to Branch.content().


elementIterator

public static java.util.Iterator<org.dom4j.Element> elementIterator(org.dom4j.Element element)
Provides a type safe / generic wrapper for Element.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 for Element.elementIterator(String).

Parameters:
element - the element to iterate
name - the element name to match
Returns:
type safe access to Element.elementIterator(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 for Node.selectNodes(String).

Parameters:
doc - the document to select the nodes from
xpathExpression - the XPATH expression to select
Returns:
type safe access to Node.selectNodes(String)