Examples of StringList


Examples of org.apache.wicket.util.string.StringList

    final MetaPattern valuePattern)
  {
    super();

    // Get list of strings separated by the delimiter
    final StringList pairs = StringList.tokenize(keyValuePairs, delimiter);

    // Go through each string in the list
    for (IStringIterator iterator = pairs.iterator(); iterator.hasNext();)
    {
      // Get the next key value pair
      final String pair = iterator.next();

      // Parse using metapattern parser for variable assignments
View Full Code Here

Examples of org.apache.wicket.util.string.StringList

    final MetaPattern valuePattern)
  {
    super();

    // Get list of strings separated by the delimiter
    final StringList pairs = StringList.tokenize(keyValuePairs, delimiter);

    // Go through each string in the list
    for (IStringIterator iterator = pairs.iterator(); iterator.hasNext();)
    {
      // Get the next key value pair
      final String pair = iterator.next();

      // Parse using metapattern parser for variable assignments
View Full Code Here

Examples of org.apache.wicket.util.string.StringList

  /**
   * Download the resource at the given URI and make sure its contents are
   * identical to a merged list of files from the test fixture.
   */
  private void assertDownloaded(WicketTester tester, String uri, ResourceSpec... specs) throws IOException {
    StringList expected = new StringList();
    for (ResourceSpec spec : specs) {
      InputStream is = spec.getScope().getResourceAsStream(spec.getFile());
      try {
        expected.add(IOUtils.toString(is, "UTF-8"));
      } finally {
        IOUtils.closeQuietly(is);
      }
    }
    WebRequestCycle wrc = tester.setupRequestAndResponse(false);
    tester.getServletRequest().setURL(uri);
    tester.processRequestCycle(wrc);

    // Note: merging adds two newlines between each merged file
    assertEquals(expected.join("\n\n"), tester.getServletResponse().getDocument());
  }
View Full Code Here

Examples of org.apache.xerces.impl.xs.psvi.StringList

        processPSVISchemaAnnotations(item.getAnnotations());
        sendUnIndentedElement("psv:namespaceSchemaInformation");
    }

    private void processPSVISchemaDocuments(XSNamespaceItem item) {
        StringList locations =
            item == null ? null : item.getDocumentLocations();
        if (locations == null || locations.getLength() == 0) {
            sendEmptyElementEvent("psv:schemaDocuments");
            return;
        }
        sendIndentedElement("psv:schemaDocuments");
        for (int i = 0; i < locations.getLength(); i++) {
            sendIndentedElement("psv:schemaDocument");
            sendElementEvent("psv:documentLocation", locations.item(i));
            // It's supposed to point to a <document> element, and we're not really
            // dealing with those (except for the one at the root)
            sendElementEvent("psv:document");
            sendUnIndentedElement("psv:schemaDocument");
        }
View Full Code Here

Examples of org.apache.xerces.xs.StringList

        {
          if(grammars[i] instanceof XSGrammar)
          {
          XSGrammar grammar = (XSGrammar)grammars[i];
               
          StringList namespaces = grammar.toXSModel().getNamespaces();
          if(namespaces.contains(targetNamespace))
          {
            oldGrammars.add(pool.removeGrammar(desc));
                  //pool.putGrammar(new XSGrammarHider(grammar, targetNamespace));
          }
          }
View Full Code Here

Examples of org.gephi.data.attributes.type.StringList

        columnMap = new HashMap<String, AttributeColumnImpl>();
        rows = new ArrayList<AttributeRowImpl>();

        AttributeColumnImpl co1 = nodeClass.addColumn("col1", "Column 1", AttributeType.STRING, AttributeOrigin.DATA, "nil");
        AttributeColumnImpl co2 = nodeClass.addColumn("col2", "Column 2", AttributeType.INT, AttributeOrigin.PROPERTY, 0);
        AttributeColumnImpl co3 = nodeClass.addColumn("col3", "Column 3", AttributeType.LIST_STRING, AttributeOrigin.DATA, new StringList("nothing", ","));
        AttributeColumnImpl co4 = nodeClass.addColumn("col4", "Column 4", AttributeType.STRING, AttributeOrigin.COMPUTED, "zero");
        AttributeColumnImpl co5 = nodeClass.addColumn("col5", "Column 5", AttributeType.BOOLEAN, AttributeOrigin.DATA, true);
        AttributeColumnImpl co6 = nodeClass.addColumn("col6", "Column 6", AttributeType.STRING, AttributeOrigin.DATA, "default");

        columnMap.put("col1", co1);
View Full Code Here

Examples of org.gephi.data.attributes.type.StringList

        model = new IndexedAttributeModel();
        AttributeTableImpl nodeTableImpl = model.getNodeTable();
        nodeTableImpl.addColumn("id", "Identifier", AttributeType.INT, AttributeOrigin.DATA, new Integer(0));
        nodeTableImpl.addColumn("url", AttributeType.STRING);
        nodeTableImpl.addColumn("position", "Position&<>\"'$*", AttributeType.FLOAT, AttributeOrigin.PROPERTY, new Float(0));
        nodeTableImpl.addColumn("cats", "Catégories", AttributeType.LIST_STRING, AttributeOrigin.DATA, new StringList("a,b,c,d"));
        AttributeTableImpl edgeTableImpl = model.getEdgeTable();
        edgeTableImpl.addColumn("name", AttributeType.STRING, AttributeOrigin.DATA);
        //edgeTableImpl.addColumn("weight", AttributeType.DOUBLE, AttributeOrigin.DATA);
    }
View Full Code Here

Examples of org.gephi.data.attributes.type.StringList

            AttributeValue[] values2 = n2.getAttributeRow().getValues();
            assertEquals("0", values2[col0.getIndex()].getColumn().getId());
            assertEquals("2", values2[col2.getIndex()].getColumn().getId());
            assertEquals("Author", ((DynamicType) values2[col0.getIndex()].getValue()).getValue());
            assertEquals(new StringList("String1, String2, String 3"), values2[col2.getIndex()].getValue());

            AttributeValue[] values3 = n3.getAttributeRow().getValues();
            DynamicType val4 = (DynamicType) values3[col4.getIndex()].getValue();
            double low = DynamicUtilities.getDoubleFromXMLDateString("2009-01-01");
            double high = DynamicUtilities.getDoubleFromXMLDateString("2009-12-31");
View Full Code Here

Examples of org.gephi.data.attributes.type.StringList

                }
                while (matcher.find()) {
                    foundGroups.add(matcher.group());
                }
                if (foundGroups.size() > 0) {
                    attributes.setValue(newColumn.getIndex(), new StringList(foundGroups.toArray(new String[0])));
                    foundGroups.clear();
                } else {
                    attributes.setValue(newColumn.getIndex(), null);
                }
            }
View Full Code Here

Examples of org.gephi.data.attributes.type.StringList

            return new CharacterList((char[]) array);
        else if (componentType == Character.class)
            return new CharacterList((Character[]) array);

        else if (componentType == String.class)
            return new StringList((String[]) array);

        else if (componentType == BigInteger.class)
            return new BigIntegerList((BigInteger[]) array);

        else if (componentType == BigDecimal.class)
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.