Examples of listFsVariables()


Examples of org.apache.uima.fsvars.FsVariables.listFsVariables()

    fsvars.declareFsVariable(name4, this.annotType1);
    fsvars.declareFsVariable(name5, this.annotType2);
    fsvars.declareFsVariable(name6, this.annotType3);

    // Test with no parameters.
    List list = fsvars.listFsVariables();
    assertTrue(list.size() == 6);
   
    // Check that all names are different.
    Set set = new HashSet();
    set.addAll(list);
View Full Code Here

Examples of org.apache.uima.fsvars.FsVariables.listFsVariables()

    Set set = new HashSet();
    set.addAll(list);
    assertTrue(set.size() == 6);
   
    // Test with annotation type as parameter, which should be the same as without param.
    list = fsvars.listFsVariables(this.cas.getTypeSystem().getType(CAS.TYPE_NAME_ANNOTATION));
    assertTrue(list.size() == 6);
   
    // Check that all names are different.
    set = new HashSet();
    set.addAll(list);
View Full Code Here

Examples of org.apache.uima.fsvars.FsVariables.listFsVariables()

    set = new HashSet();
    set.addAll(list);
    assertTrue(set.size() == 6);
   
    // Check with a specific annotation type.
    list = fsvars.listFsVariables(this.annotType1);
    assertTrue(list.size() == 2);
    assertTrue(list.contains(name1));
    assertTrue(list.contains(name4));
  }
 
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.