The QNameUtils class is not necessary and removing it will help with
WODEN-67 to modularize the Woden build create DOM and OM specific binary jars. This class has one method 'matches()' which compares a specified QName to the QName of a specified element object. It contains a hardcoded conditional switch to check the element object type and then forwards to DOMQNameUtils.matches() or OMQNameUtils.matches(). Not very O/O!
This method is only used in 2 places and can be easily replaced by using the QName.equals() method of directly. By eliminating this class and its dual compile dependency on DOM and OM, we can modularize the Maven build to support
WODEN-67.
Need to change:
if (QNameUtils.matches(Constants.Q_ELEM_DOCUMENTATION, tempEl)
to:
if(Constants.Q_ELEM_DOCUMENTATION.equals(tempEl.getQName()))