Package org.apache.uima.testTypeSystem_arrays

Examples of org.apache.uima.testTypeSystem_arrays.OfStrings


    a.set(1, (short)1);
    a.set(2, (short)2);
    f.setF1Shorts(a);
    f.addToIndexes();
   
    OfStrings ss = new OfStrings(jcas);
    StringArray sa = new StringArray(jcas, 3);
    sa.set(0, "0s");
    sa.set(1, "1s");
    sa.set(2, "2s");
    ss.setF1Strings(sa);
    ss.addToIndexes();
   
    CasToInlineXml c2x = new CasToInlineXml();
    String result = c2x.generateXML(srcCas);
    System.out.println(result);
  }
View Full Code Here


    a.set(1, (short)1);
    a.set(2, (short)2);
    f.setF1Shorts(a);
    f.addToIndexes();
   
    OfStrings ss = new OfStrings(jcas);
    StringArray sa = new StringArray(jcas, 3);
    sa.set(0, "0s");
    sa.set(1, "1s");
    sa.set(2, "2s");
    ss.setF1Strings(sa);
    ss.addToIndexes();
   
    CasToInlineXml c2x = new CasToInlineXml();
    String result = c2x.generateXML(srcCas);
    System.out.println(result);
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.testTypeSystem_arrays.OfStrings

Copyright © 2018 www.massapicom. 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.