Package org.apache.xmpbox.xml
Class DomHelper
- java.lang.Object
-
- org.apache.xmpbox.xml.DomHelper
-
public final class DomHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.List<org.w3c.dom.Element>getElementChildren(org.w3c.dom.Element description)static org.w3c.dom.ElementgetFirstChildElement(org.w3c.dom.Element description)Return the first child element of the element parameter.static javax.xml.namespace.QNamegetQName(org.w3c.dom.Element element)static org.w3c.dom.ElementgetUniqueElementChild(org.w3c.dom.Element description)static booleanisParseTypeResource(org.w3c.dom.Element element)static booleanisRdfDescription(org.w3c.dom.Element element)Deprecated.This will be removed in 4.0.
-
-
-
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 XmpParsingExceptionReturn 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
@Deprecated public static boolean isRdfDescription(org.w3c.dom.Element element)
Deprecated.This will be removed in 4.0.- Parameters:
element-- Returns:
-
isParseTypeResource
public static boolean isParseTypeResource(org.w3c.dom.Element element)
-
-