Examples of IResource


Examples of ca.uhn.fhir.model.api.IResource

 
  @Override
  public void invokeServer(RestfulServer theServer, Request theRequest, HttpServletResponse theResponse) throws BaseServerResponseException, IOException {
    EncodingUtil encoding = BaseMethodBinding.determineResponseEncoding(theRequest.getServletRequest(), theRequest.getParameters());
    IParser parser = encoding.newParser(getContext());
    IResource resource = parser.parseResource(theRequest.getInputReader());

    Object[] params = new Object[getParameters().size()];
    for (int i = 0; i < getParameters().size(); i++) {
      IParameter param = getParameters().get(i);
      if (param == null) {
View Full Code Here

Examples of com.semagia.atomico.dm.IResource

        final String id = "http://www.semagia.com/test";
        final String title = "title";
        final long updated = now();
        final MediaType mt = MediaType.ATOM_XML;
        final String sid = "http://psi.semagia.com/subject-identifier";
        final IResource res = new Resource(sid);
        final IFragmentInfo fragInfo = new FragmentInfo(id, title, updated, mt, "fragId", res);
        feed.addEntry(fragInfo, link);
        assertEquals(1, feed.getEntries().size());
        final IFragmentEntry entry = feed.getEntries().iterator().next();
        assertNotNull(entry);
View Full Code Here

Examples of com.subhajit.common.util.CommonUtils.IResource

      progress.setRange(0, files.size());
      for (final File file : files) {
        progress.increment(1, file.getName());
        Iterator<IResource> resourceIt = repository.getResources(file);
        while (resourceIt.hasNext()) {
          final IResource resource = resourceIt.next();
          if (resource.isDirectory()) {
            continue;
          }
          if (resource.getName().endsWith(".class")) {
            index++;
            completionService.submit(new Callable<Set<File>>() {
              public Set<File> call() throws Exception {
                final String className = resource.getName()
                    .substring(
                        0,
                        resource.getName().lastIndexOf(
                            ".class")).replace('/',
                        '.');
                Set<File> usedFiles = new HashSet<File>();
                for (String usedClass : repository.findClass(
                    className).getUsedClasses()) {
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IResource

   
    // if no such resource, then add it
    if(!target.hasResource(src.getName())){
      dst = parent.createSubClass(src.getName());
    }else{
      IResource r = target.getResource(src.getName());
      if(r instanceof IClass){
        dst = (IClass) r;
      }else{
        System.err.println("Error: expecting a class "+src.getName()+" but got a "+r);
      }
View Full Code Here

Examples of edu.pitt.ontology.IResource

  }

  public Concept lookupConcept(String cui) throws TerminologyException {
    if(ontology == null)
      return null;
    IResource cls = ontology.getResource(cui);
    return (cls != null && cls instanceof IClass)?((IClass)cls).getConcept():null;
  }
View Full Code Here

Examples of net.minecraft.client.resources.IResource

        int w;

        AnimationMetadataSection animation;

        try {
            IResource iresource = manager.getResource(getBlockResource(name));
            IResource iresourceBase = manager.getResource(getBlockResource(base));

            // load the ore texture
            ore_image[0] = ImageIO.read(iresource.getInputStream());

            // load animation
            animation = (AnimationMetadataSection) iresource.getMetadata("animation");

            // load the stone texture
            stone_image = ImageIO.read(iresourceBase.getInputStream());

            w = ore_image[0].getWidth();

            if (stone_image.getWidth() != w) {
                List resourcePacks = manager.getAllResources(getBlockResource(base));
                for (int i = resourcePacks.size() - 1; i >= 0; --i) {
                    IResource resource = (IResource) resourcePacks.get(i);
                    stone_image = ImageIO.read(resource.getInputStream());

                    if (stone_image.getWidth() == w)
                        break;
                }
            }
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.rm.IResource

    if(job != null) {
      if(map != null) {
        Iterator<DuccId> iterator = map.keySet().iterator();
        while(iterator.hasNext()) {
          DuccId duccId = iterator.next();
          IResource resource = map.get(duccId);
          if(resource.isPurged()) {
            IDuccProcess process = job.getProcessMap().get(duccId);
            if(!process.isDefunct()) {
              String rState = process.getResourceState().toString();
              String pState = process.getProcessState().toString();
              logger.info(methodName, job.getDuccId(), duccId, "rState:"+rState+" "+"pState"+pState);
View Full Code Here

Examples of org.apache.wicket.request.resource.IResource

        String token = tokens.nextToken();

        // on the last component of the resource path
        if (tokens.hasMoreTokens() == false && Strings.isEmpty(token) == false)
        {
          final IResource resource = reference.getResource();

          // is resource supposed to be cached?
          if (resource instanceof IStaticCacheableResource)
          {
            final IStaticCacheableResource cacheable = (IStaticCacheableResource)resource;
View Full Code Here

Examples of org.carrot2.util.resource.IResource

                  + carrot2ResourcesDir);
              final InputStream resourceStream = resourceLoader
                  .openResource(carrot2ResourcesDir + "/" + resource);
             
              log.info(resource + " loaded from " + carrot2ResourcesDir);
              final IResource foundResource = new IResource() {
                public InputStream open() throws IOException {
                  return resourceStream;
                }
              };
              return new IResource[] { foundResource };
View Full Code Here

Examples of org.eclipse.core.resources.IResource

  public IResource[] members(IResource resource) throws TeamException {
      synchronized (_refreshLock ) {
        Map<IPath, IResource> existingChildren = new HashMap<IPath, IResource>()
        for (IPath path : _localStates.keySet()) {
            if (isAffected(path, true)) {
              IResource child = convertToResource(_localStates.get(path));
              if (child != null) {
                _localStatesByResource.put(child, _localStates.get(path));
                // add highest parent
                IResource parent = child;
                while (parent != null) {
                  IResource grandParent = parent.getParent();
                  if (grandParent != null && grandParent.getFullPath().equals(resource.getFullPath())) {
                    existingChildren.put(parent.getFullPath(), parent);
                    break;
                  }
                  parent = grandParent;               
                }
              }
            }
        }
        for (IPath path : _remoteStates.keySet()) {
          if (isAffected(path, false)) {
            IResource child = convertToResource(_remoteStates.get(path));
            if (child != null) {
              _remoteStatesByResource.put(child, _remoteStates.get(path));
              // add highest parent
              IResource parent = child;
              while (parent != null) {
                IResource grandParent = parent.getParent();
                if (grandParent != null && grandParent.getFullPath().equals(resource.getFullPath())) {
                  existingChildren.put(parent.getFullPath(), parent);           
                  break;
                }
                parent = grandParent;             
              }
            }
          }
        }

        IResource virtualPluginRoot = retrieveVirtualPluginRoot(_runtime);
        if (resource instanceof IProject) {            
            existingChildren.put(virtualPluginRoot.getFullPath(), virtualPluginRoot);
        } else if (resource.getFullPath().equals(virtualPluginRoot.getFullPath())) {
            for (IResource virtualPluginResource : _localPluginInfos.keySet()) {
                existingChildren.put(virtualPluginResource.getFullPath(), virtualPluginResource);
            }
            for (IResource virtualPluginResource : _remotePluginInfos.keySet()) {
                    existingChildren.put(virtualPluginResource.getFullPath(), virtualPluginResource);
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.