Class 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)  
      • Methods inherited from class java.lang.Object

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

      • DomHelper

        private DomHelper()
    • 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

        public static boolean isRdfDescription​(org.w3c.dom.Element element)
      • isParseTypeResource

        public static boolean isParseTypeResource​(org.w3c.dom.Element element)