@Override
    public final String getNamespaceURI(String prefix)
    {
        /* First the known offenders; invalid args, 2 predefined xml namespace
         * prefixes
         */
        if (prefix == null) {
            throw new IllegalArgumentException(ErrorConsts.ERR_NULL_ARG);
        }
        if (prefix.length() > 0) {
            if (prefix.equals(XMLConstants.XML_NS_PREFIX)) {
                return XMLConstants.XML_NS_URI;
            }
            if (prefix.equals(XMLConstants.XMLNS_ATTRIBUTE)) {
                return XMLConstants.XMLNS_ATTRIBUTE_NS_URI;
            }
        }
        return doGetNamespaceURI(prefix);
    }
@ Override public final String getNamespaceURI ( String prefix ) { if ( prefix == null ) { throw new IllegalArgumentException ( ErrorConsts . ERR_NULL_ARG ) ; } if ( prefix . length ( ) > 0 ) { if ( prefix . equals ( XMLConstants . XML_NS_PREFIX ) ) { return XMLConstants . XML_NS_URI ; } if ( prefix . equals ( XMLConstants . XMLNS_ATTRIBUTE ) ) { return XMLConstants . XMLNS_ATTRIBUTE_NS_URI ; } } return doGetNamespaceURI ( prefix ) ; }
/*
///////////////////////////////////////////
NamespaceContext API
///////////////////////////////////////////