Examples of asList()


Examples of org.overturetool.vdmj.values.NameValuePairMap.asList()

          if (fi.getName().equals("privateStaticValues"))
          {
            fi.setAccessible(true);
            NameValuePairMap privateStaticValues = (NameValuePairMap) fi.get(objVal.type.classdef);

            for (NameValuePair child : privateStaticValues.asList())
            {
              if (!existingFields.contains(child.name.name))
              {
                values.add(createValue(child.name, objVal.type.classdef, child.value, objVal.getCPU()));
              }
View Full Code Here

Examples of org.rosuda.JRI.REXP.asList()

        for (Enumeration e = v.getNames().elements() ; e.hasMoreElements() ;) {
          System.out.println(e.nextElement());
        }
      }
      // for compatibility with Rserve we allow casting of vectors to lists
      RList vl = x.asList();
      String[] k = vl.keys();
      if (k!=null) {
        System.out.println("and once again from the list:");
        int i=0; while (i<k.length) System.out.println(k[i++]);
      }     
View Full Code Here

Examples of org.springframework.hateoas.TemplateVariables.asList()

    if (projectionConfiguration.hasProjectionFor(type)) {
      variables = variables.concat(new TemplateVariable(projectionConfiguration.getParameterName(), REQUEST_PARAM));
    }

    return variables.asList().isEmpty() ? linkFor(type).withRel(metadata.getRel()) : new Link(new UriTemplate(href,
        variables), metadata.getRel());
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.sql2o.data.Table.asList()

    public void testTable_asList() {
        createAndFillUserTable();

        Table table = sql2o.createQuery("select * from user").executeAndFetchTable();

        List<Map<String, Object>> rows = table.asList();

        assertEquals(insertIntoUsers, rows.size());

        for (Map<String, Object> row : rows) {
            assertEquals(4, row.size());
View Full Code Here

Examples of ratpack.util.internal.TypeCoercingProperties.asList()

      int port = props.asInt(PORT, defaultPort);
      InetAddress address = props.asInetAddress(ADDRESS);
      URI publicAddress = props.asURI(PUBLIC_ADDRESS);
      boolean development = props.asBoolean(DEVELOPMENT, false);
      int threads = props.asInt(THREADS, DEFAULT_THREADS);
      List<String> indexFiles = props.asList(INDEX_FILES);
      InputStream sslKeystore = props.asStream(SSL_KEYSTORE_FILE);
      String sslKeystorePassword = props.asString(SSL_KEYSTORE_PASSWORD, "");
      int maxContentLength = props.asInt(MAX_CONTENT_LENGTH, DEFAULT_MAX_CONTENT_LENGTH);
      boolean timeResponses = props.asBoolean(TIME_RESPONSES, false);
      boolean compressResponses = props.asBoolean(COMPRESS_RESPONSES, false);
View Full Code Here

Examples of rice.pastry.leafset.LeafSet.asList()

  public void sendDirect(String nodeId, Message message) {
    if (nodeId == null) {
      throw new IllegalArgumentException("nodeId cannot be null");
    }
    LeafSet leafSet = node.getLeafSet();
    List leaves = leafSet.asList();
    boolean found = false;
    int size = leaves.size();
    for (int i = 0; i < size; i++) {
      NodeHandle nh = (NodeHandle) leaves.get(i);
      if (nodeId.equalsIgnoreCase(nh.getId().toStringFull())) {
View Full Code Here

Examples of se.kb.oai.pmh.IdentifiersList.asList()

              throw new QueryValidationException("Unsupported query type");
           
            list = server.listIdentifiers(metaDataPrefix, dateFormat.format(((QueryDateRange) q).getStartDate().getTime()), dateFormat.format(((QueryDateRange) q).getEndDate().getTime()), set)
          }
         
          for (Header header : list.asList()) {
            try {
              resultList.add(new URI(header.getIdentifier()));
            } catch (URISyntaxException e) {
              log.warning("Illegal identifier returned from " + baseURL + ": " + header.getIdentifier());
            }
View Full Code Here

Examples of se.kb.oai.pmh.RecordsList.asList()

      long starttime = System.currentTimeMillis();
      log.info("OAIDigitalObjectManagerDCImpl retrieveAll() starttime: " + starttime + ", pdURI: " + pdURI);
      try {
        RecordsList recordsList;
        recordsList = server.listRecords(metaDataPrefix)
        for (Record record : recordsList.asList()) {
          Element metadata = record.getMetadata();
        if (metadata != null) {
          // Namespace URI
          URI namespaceURI = null;
          try {
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.