Examples of StringList


Examples of booton.sample.beans.StringList

        assert other.getMap().get("3").equals("three");
    }

    @Test
    public void list() throws Exception {
        List<String> list = new StringList();
        list.add("one");
        list.add("two");
        list.add("three");

        List<String> other = writeThenRead(list);
        assert other.size() == 3;
        assert other.get(0).equals("one");
        assert other.get(1).equals("two");
View Full Code Here

Examples of com.eviware.soapui.support.types.StringList

  private final TestPropertyHolder holder;

  public DefaultPropertyTableHolderModel( TestPropertyHolder holder )
  {
    this.holder = holder;
    names = new StringList( getPropertyNames() );
  }
View Full Code Here

Examples of com.filenet.api.collection.StringList

      } else {
        logger.log(Level.FINEST,
            "{0} property [PropertyString] contains NULL value", propertyName);
      }
    } else if (prop instanceof PropertyStringList) {
      StringList slist = prop.getStringListValue();
      Iterator iter = slist.iterator();
      while (iter.hasNext()) {
        String val = (String) iter.next();
        if (val != null) {
          valuesList.add(Value.getStringValue(val));
        } else {
View Full Code Here

Examples of com.sun.org.apache.xerces.internal.xs.StringList

        updateImportListFor(newGrammar);
        return newGrammar;
    }

    private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) {
        final StringList locations = srcGrammar.getDocumentLocations();
        final int locSize = locations.size();
        final StringList locations2 = dstGrammar.getDocumentLocations();

        for (int i=0; i<locSize; i++) {
            String loc = locations.item(i);
            if (!locations2.contains(loc)) {
                dstGrammar.addDocument(null, loc);
            }
        }
    }
View Full Code Here

Examples of it.polito.appeal.traci.protocol.StringList

    }

    @Override
    protected List<String> readValue(
        Command resp) throws TraCIException {
      return new StringList(resp.content(), true);
    }
View Full Code Here

Examples of mf.org.apache.xerces.xs.StringList

        updateImportListFor(newGrammar);
        return newGrammar;
    }

    private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) {
        final StringList locations = srcGrammar.getDocumentLocations();
        final int locSize = locations.size();
        final StringList locations2 = dstGrammar.getDocumentLocations();
       
        for (int i=0; i<locSize; i++) {
            String loc = locations.item(i);
            if (!locations2.contains(loc)) {
                dstGrammar.addDocument(null, loc);
            }
        }
    }
View Full Code Here

Examples of opennlp.tools.util.StringList

        return dictionaries;
    }

    private StringList tokensToStringList(String tokens) {
        return new StringList(tokens.split(" "));
    }
View Full Code Here

Examples of opennlp.tools.util.StringList

    }

    private List<TokenNameFinder> loadFinders() {
        List<TokenNameFinder> finders = new ArrayList<TokenNameFinder>();
        Dictionary people = new Dictionary();
        people.put(new StringList("Bob Robertson".split(" ")));
        finders.add(new DictionaryNameFinder(people, "person"));

        Dictionary locations = new Dictionary();
        locations.put(new StringList("Boston , MA".split(" ")));
        finders.add(new DictionaryNameFinder(locations, "location"));

        Dictionary organizations = new Dictionary();
        organizations.put(new StringList("Altamira Corporation".split(" ")));
        finders.add(new DictionaryNameFinder(organizations, "organization"));

        return finders;
    }
View Full Code Here

Examples of opennlp.tools.util.StringList

        return mDictionaryIterator.hasNext();
      }

      public Entry next() {

        StringList tokens = mDictionaryIterator.next();

        Attributes attributes = new Attributes();

        attributes.setValue("value", get(tokens));
View Full Code Here

Examples of opennlp.tools.util.StringList

      String text = nameAnnotation.getCoveredText();

      // if possible replace text with normalization from dictionary
      if (mLookupDictionary != null) {

        StringList tokens = new StringList(text);

        String normalizedText = mLookupDictionary.get(tokens);

        if (normalizedText != null) {
          text = normalizedText;
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.