public class IDGenerator
extends java.lang.Object
Constructor and Description |
---|
IDGenerator() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getLabel(org.w3c.dom.Element child)
Convenience method to return a unique representation of a single element.
|
static java.lang.String |
getLabel(java.util.List<org.w3c.dom.Element> children)
Convenience method to enable a list of elements
to be converted into something a bit more readable.
|
static java.lang.String |
getLabel(org.w3c.dom.Text child)
Convenience method to return a unique representation of a single element.
|
static java.lang.String |
getLabelFromMixedNodes(java.util.List<org.w3c.dom.Node> children)
Convenience method to enable a list of elements and text nodes
to be converted into something a bit more readable.
|
public static java.lang.String getLabelFromMixedNodes(java.util.List<org.w3c.dom.Node> children)
children
- The list of elements and text nodes.public static java.lang.String getLabel(java.util.List<org.w3c.dom.Element> children)
children
- The list of elements.public static java.lang.String getLabel(org.w3c.dom.Element child)
child
- The single element.public static java.lang.String getLabel(org.w3c.dom.Text child)
child
- The single text node.