Examples of toJSON()


Examples of org.corrib.s3b.sscf.tools.sscf2js.DirectoryDescription.toJSON()

    DirectoryDescription dd = new DirectoryDescription();
    dd = getDirectoryDescriptionObject(uri);
   
    if(dd!=null)
    {
      return dd.toJSON();
    }
    return null;
  }
 
  public String getSiocResourceDescription(String uri,String type)
View Full Code Here

Examples of org.corrib.s3b.sscf.tools.sscf2js.DirectoryPolicy.toJSON()

      while(itacl.hasNext())
        policies.add(itacl.next());
    }
    dp.setPolicies(policies);
   
    return dp.toJSON();
  }
 
 
  /**
   * ----------- Bookmarks tree creation methods --------------
View Full Code Here

Examples of org.corrib.s3b.sscf.tools.sscf2js.NodeContainer.toJSON()

      dn.setStandalone(standalone);
      nc.setContent(dn);
    }
   
    //add created nodes to the buffer
    nc.toJSON(buffer);
   
    //proceed the content of this resource

    if (hasContent&&!isDyn) {
      //parentIsOwner = isOwner;
View Full Code Here

Examples of org.corrib.s3b.sscf.tools.sscf2js.SiocResourceDescription.toJSON()

        if(spr.getLinksTo().size()>0)
          srd.setLinksTo(spr.getLinksTo());
         
      }
     
      return srd.toJSON();
    }
   
   
    return null;
  }
View Full Code Here

Examples of org.corrib.s3b.sscf.tools.sscf2js.WebResourceDescription.toJSON()

        wrd.setName(wbr.getLabel());
        if(wbr.getComment()!=null)
          wrd.setDescription(wbr.getComment());
        wrd.setLink(wbr.getSeeAlso().toString());
        wrd.setTags(wbr.getTags());
        return wrd.toJSON();
      }
    }
   
    return null;
  }
View Full Code Here

Examples of org.corrib.s3b.sscf.tools.sscf2js.WordNetDesc.toJSON()

   
    WordNetDesc wnd = new WordNetDesc();
   
    wnd.setWnc(thes);
   
    return wnd.toJSON();
  }
 
  /**
   * Utility for creating WordNetClassifications based on given name and description.
   *
 
View Full Code Here

Examples of org.dbpedia.spotlight.web.rest.output.Annotation.toJSON()

        try {
            String textToProcess = ServerUtils.getTextToProcess(text, inUrl);
            Annotation a = getAnnotation(textToProcess, confidence, support, dbpediaTypes, sparqlQuery, policy, coreferenceResolution, spotter, disambiguatorName, clientIp);
            LOG.info("JSON format");
            String content = a.toJSON();
            return ServerUtils.ok(content);
        } catch (Exception e) {
            throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST). entity(e.getMessage()).type(MediaType.APPLICATION_JSON).build());
        }
    }
View Full Code Here

Examples of org.directwebremoting.json.serialize.JsonSerializer.toJson()

     * to the given Writer
     */
    public static void toJson(Object data, Writer out) throws IOException
    {
        JsonSerializer serializer = JsonSerializerFactory.get();
        serializer.toJson(data, out);
    }

    /**
     * Convert arbitrary convertible data into a JSON string.
     */
 
View Full Code Here

Examples of org.dspace.statistics.DataTermsFacet.toJson()

        List<? extends TermsFacet.Entry> termsFacetEntries = topBitstreamsFacet.getEntries();
        DataTermsFacet termsFacet = new DataTermsFacet();
        for(TermsFacet.Entry entry : termsFacetEntries) {
            termsFacet.addTermFacet(new DataTermsFacet.TermsFacet(entry.getTerm().string(), entry.getCount()));
        }
        division.addHidden("jsonTopDownloads").setValue(termsFacet.toJson());
    }
   
    public FacetBuilder facetTopBitstreamsLastMonth() {
        Calendar calendar = Calendar.getInstance();
View Full Code Here

Examples of org.eclipse.jetty.util.ajax.JSON.Convertor.toJSON()

                JSON.LOG.warn(e);
            }
        }
        if (convertor!=null)
        {
            convertor.toJSON(obj, out);
        }
    }

    public Object fromJSON(Map object)
    {
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.