Package org.apache.xmpbox.xml
Class DomHelper
- java.lang.Object
-
- org.apache.xmpbox.xml.DomHelper
-
public final class DomHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DomHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<org.w3c.dom.Element>
getElementChildren(org.w3c.dom.Element description)
static org.w3c.dom.Element
getFirstChildElement(org.w3c.dom.Element description)
Return the first child element of the element parameter.static javax.xml.namespace.QName
getQName(org.w3c.dom.Element element)
static org.w3c.dom.Element
getUniqueElementChild(org.w3c.dom.Element description)
static boolean
isParseTypeResource(org.w3c.dom.Element element)
static boolean
isRdfDescription(org.w3c.dom.Element element)
-
-
-
Method Detail
-
getUniqueElementChild
public static org.w3c.dom.Element getUniqueElementChild(org.w3c.dom.Element description) throws XmpParsingException
- Throws:
XmpParsingException
-
getFirstChildElement
public static org.w3c.dom.Element getFirstChildElement(org.w3c.dom.Element description) throws XmpParsingException
Return the first child element of the element parameter. If there is no child, null is returned- Parameters:
description
-- Returns:
- the first child element. Might be null.
- Throws:
XmpParsingException
-
getElementChildren
public static java.util.List<org.w3c.dom.Element> getElementChildren(org.w3c.dom.Element description) throws XmpParsingException
- Throws:
XmpParsingException
-
getQName
public static javax.xml.namespace.QName getQName(org.w3c.dom.Element element)
-
isRdfDescription
public static boolean isRdfDescription(org.w3c.dom.Element element)
-
isParseTypeResource
public static boolean isParseTypeResource(org.w3c.dom.Element element)
-
-