Examples of IDelegateCatalog


Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.IDelegateCatalog

              suffixUriList.add(entry);
            }
          }
          else if (catalogElement.getType() == ICatalogElement.TYPE_DELEGATE)
          {
            IDelegateCatalog delegate = (IDelegateCatalog) catalogElement;
            if (delegate.getEntryType() == IDelegateCatalog.DELEGATE_TYPE_PUBLIC)
            {
              delegatePublicList.add(delegate);
            }
            else if (delegate.getEntryType() == IDelegateCatalog.DELEGATE_TYPE_SYSTEM)
            {
              delegateSystemList.add(delegate);
            }
            else
            {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.IDelegateCatalog

        String systemId) throws MalformedURLException, IOException
    {
      String result = null;
      for (Iterator iterator = delegateCatalogs.iterator(); iterator
          .hasNext();) {
        IDelegateCatalog delegate = (IDelegateCatalog) iterator.next();
       
        if (key.startsWith(delegate.getStartString())) {
 
          ICatalog catalog = delegate.getReferencedCatalog();
          if (catalog != null)
          {
            switch (delegate.getEntryType())
            {
            case IDelegateCatalog.DELEGATE_TYPE_PUBLIC:
              result = catalog.resolvePublic(key, systemId);
              break;
            case IDelegateCatalog.DELEGATE_TYPE_SYSTEM:
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.IDelegateCatalog

        else if (nextCatalog.getCatalogLocation().startsWith("platform:")) {
          result += " (" + XMLCatalogMessages.UI_LABEL_PLATFORM_RESOURCE + ")";
        }
      }
      else if (object instanceof IDelegateCatalog) {
        IDelegateCatalog nextCatalog = (IDelegateCatalog) object;
        // result = nextCatalog.getCatalogLocation();
        result = nextCatalog.getStartString() + " " + XMLCatalogMessages.UI_LABEL_ARROW + " " + URIUtils.convertURIToLocation(nextCatalog.getCatalogLocation());
        if (nextCatalog.getCatalogLocation().startsWith("file:")) {
          result += " (" + XMLCatalogMessages.UI_LABEL_FILE_SYSTEM_RESOURCE + ")";
        }
        else if (nextCatalog.getCatalogLocation().startsWith("platform:")) {
          result += " (" + XMLCatalogMessages.UI_LABEL_PLATFORM_RESOURCE + ")";
        }
      }
      result = TextProcessor.process(result);
      return result != null ? result : object.toString();
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.IDelegateCatalog

        return IDelegateCatalog.DELEGATE_TYPE_URI;
      }
    }
 
    protected boolean validateData() {
      IDelegateCatalog entry = getDelegateCatalog();
      String prefix = prefixField.getText();
      if(entry.getEntryType() != getDelegateType() || !prefix.equals(entry.getStartString())) {
        IDelegateCatalog[] entries = catalog.getDelegateCatalogs();
        for (int i = 0; i < entries.length; i++) {
          if (entries[i].getStartString().equals(prefixField) && entries[i].getEntryType() == getDelegateType()) return false;
        }
      }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.IDelegateCatalog

            suffixUriList.add(entry);
          }
        }
        else if (catalogElement.getType() == ICatalogElement.TYPE_DELEGATE)
        {
          IDelegateCatalog delegate = (IDelegateCatalog) catalogElement;
          if (delegate.getEntryType() == IDelegateCatalog.DELEGATE_TYPE_PUBLIC)
          {
            delegatePublicList.add(delegate);
          }
          else if (delegate.getEntryType() == IDelegateCatalog.DELEGATE_TYPE_SYSTEM)
          {
            delegateSystemList.add(delegate);
          }
          else
          {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.IDelegateCatalog

        String systemId) throws MalformedURLException, IOException
    {
      String result = null;
      for (Iterator iterator = delegateCatalogs.iterator(); iterator
          .hasNext();) {
        IDelegateCatalog delegate = (IDelegateCatalog) iterator.next();
       
        if (key.startsWith(delegate.getStartString())) {
 
          ICatalog catalog = delegate.getReferencedCatalog();
          if (catalog != null)
          {
            switch (delegate.getEntryType())
            {
            case IDelegateCatalog.DELEGATE_TYPE_PUBLIC:
              result = catalog.resolvePublic(key, systemId);
              break;
            case IDelegateCatalog.DELEGATE_TYPE_SYSTEM:
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.IDelegateCatalog

  {
    IDelegateCatalog[] delegateCatalogs = catalog.getDelegateCatalogs();

    for (int i = 0; i < delegateCatalogs.length; i++)
    {
      IDelegateCatalog entry = delegateCatalogs[i];
      String prefixString = entry.getStartString();
      String catalogLocation = entry.getCatalogLocation();
      Element childElement = null;

      switch (entry.getEntryType())
      {
      case IDelegateCatalog.DELEGATE_TYPE_PUBLIC:
        childElement = parent.getOwnerDocument().createElement(OASISCatalogConstants.TAG_DELEGATE_PUBLIC);
        if (childElement != null)
        {
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.