Class 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.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)
      Deprecated.
      This will be removed in 4.0.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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
      • 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)