Package org.eclipse.wst.xml.core.internal.contentmodel.util

Examples of org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceInfo.normalize()


    String result = null;
    Hashtable prefixTable = new Hashtable();
    Hashtable uriTable = new Hashtable();
    for (Iterator iterator = namespaceInfoList.iterator(); iterator.hasNext();) {
      NamespaceInfo nsInfo = (NamespaceInfo) iterator.next();
      nsInfo.normalize();

      String urikey = nsInfo.uri != null ? nsInfo.uri : ""; //$NON-NLS-1$
      NamespaceInfo nsInfo2 = null;
      if ((nsInfo2 = (NamespaceInfo) uriTable.get(urikey)) != null) {
        if ((nsInfo.uri != null) && nsInfo.uri.equals(nsInfo2.uri)) {
View Full Code Here


    }
    // additional tests
    if (result == null) {
      for (Iterator iterator = namespaceInfoList.iterator(); iterator.hasNext();) {
        NamespaceInfo nsInfo = (NamespaceInfo) iterator.next();
        nsInfo.normalize();
        if ((nsInfo.uri != null) && nsInfo.isPrefixRequired && (nsInfo.prefix == null)) {
          result = XMLUIMessages._UI_WARNING_PREFIX_NOT_SPECIFIED + " '" + nsInfo.uri + "'"; //$NON-NLS-1$ //$NON-NLS-2$
          break;
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.