Package org.eclipse.wst.common.uriresolver.internal.provisional

Examples of org.eclipse.wst.common.uriresolver.internal.provisional.URIResolver


        }
        locationHintField.setText(uri);
      }
      else if (id != null) {
        locationHintField.setText(id);
        URIResolver resolver = URIResolverPlugin.createResolver();
        grammarURI = resolver.resolve(null, id, id);
      }


      CMDocument document = ContentModelManager.getInstance().createCMDocument(URIHelper.getURIForFilePath(grammarURI), "xsd"); //$NON-NLS-1$
      if(document != null) {
View Full Code Here


  /**
   * @see org.eclipse.wst.wsdl.validation.internal.resolver.IExtensibleURIResolver#resolve(java.lang.String, java.lang.String, java.lang.String, org.eclipse.wst.wsdl.validation.internal.resolver.IURIResolutionResult)
   */
  public void resolve(String baseLocation, String publicId, String systemId, IURIResolutionResult result)
  {
    URIResolver resolver = URIResolverPlugin.createResolver();
    String resolvedSystemId = resolvePlatformURL(systemId);
    String location = null;
    if (publicId != null || resolvedSystemId != null)
    { 
      location = resolver.resolve(baseLocation, publicId, resolvedSystemId);
   
   
    if (location != null)
    {      
      result.setLogicalLocation(location);
      String physical = resolver.resolvePhysicalLocation(baseLocation, publicId, location);
      if(physical != null)
      {
        result.setPhysicalLocation(physical);
      }
      else
View Full Code Here

    }
  }
 
  protected static String cacheFile(String uri)
  {
    URIResolver resolver = getURIResolver();
    String resolvedUri = resolver.resolve("", null, uri);
    return resolver.resolvePhysicalLocation("", null, resolvedUri);
  }
View Full Code Here

      if(WSITestToolsProperties.getEclipseContext())
      {
        EntityResolver resolver = new EntityResolver(){

      public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
        URIResolver resolver = WSITestToolsEclipseProperties.getURIResolver();
        String uri = resolver.resolve("", publicId, systemId);
        String physicalLocation = resolver.resolvePhysicalLocation("", publicId, uri);
        InputSource is = null;
        try
        {
          URL url = new URL(physicalLocation);
          is = new InputSource(uri);
View Full Code Here

         * XMLCatalogIdResolver currently requires a filesystem
         * location string. Customarily this will be what is in the
         * deprecated SSE URIResolver and required by the Common URI
         * Resolver.
         */
        URIResolver idResolver = null;
        if (resolver != null) {
          idResolver = new XMLCatalogIdResolver(resolver.getFileBaseLocation(), resolver);
        }
        else {
          /*
 
View Full Code Here

         * XMLCatalogIdResolver currently requires a filesystem
         * location string. Customarily this will be what is in the
         * deprecated SSE URIResolver and required by the Common URI
         * Resolver.
         */
        URIResolver idResolver = null;
        if (resolver != null) {
          idResolver = new XMLCatalogIdResolver(resolver.getFileBaseLocation(), resolver);
        }
        else {
          /*
 
View Full Code Here

      {   
       
      SearchDocument document = set._tempGetSearchDocumetn(source.substring(fileProtocol.length()));     
      if (document != null)
      {       
        URIResolver uriResolver = URIResolverPlugin.createResolver();       
        Entry[] entries = document.getEntries(IXMLSearchConstants.REF, null, 0);
        String[] resolveEntry = new String[entries.length];       
        for (int j = 0; j < entries.length; j++)
        {
          Entry entry = entries[j];
          if (entry instanceof FileReferenceEntry)
          {
            FileReferenceEntry fileReferenceEntry = (FileReferenceEntry)entry;
            // TODO.. record an utilize the public id from the fileReferenceEntry
            //
            if (fileReferenceEntry.getRelativeFilePath() != null)
            { 
              String resolvedURI = uriResolver.resolve(source, null, fileReferenceEntry.getRelativeFilePath());
              resolveEntry[j] = resolvedURI;
              if (resolvedURI.equals(target))
              {
                return true;
              }            
View Full Code Here

         * XMLCatalogIdResolver currently requires a filesystem
         * location string. Customarily this will be what is in the
         * deprecated SSE URIResolver and required by the Common URI
         * Resolver.
         */
        URIResolver idResolver = null;
        if (resolver != null) {
          idResolver = new XMLCatalogIdResolver(resolver.getFileBaseLocation(), resolver);
        }
        else {
          /*
 
View Full Code Here

        BeansCorePlugin.log(e);
      }
    }
   
    // Delegate to WTP to resolve over the XML Catalog and Cache
    URIResolver resolver = URIResolverPlugin.createResolver();
    String uri = resolver.resolvePhysicalLocation(null, publicId, systemId);
    if (uri != null) {
      URI realUri = URI.createURI(uri);
      if (realUri.isFile()) {
        inputSource = new InputSource(new FileInputStream(realUri.toFileString()));
      }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.common.uriresolver.internal.provisional.URIResolver

Copyright © 2018 www.massapicom. 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.