Examples of beginsWith()


Examples of org.apache.uima.ruta.type.RutaBasic.beginsWith()

      }
      String name = type.getName();
      RutaBasic firstBasicOfAll = stream.getFirstBasicOfAll();
      if ("uima.tcas.DocumentAnnotation".equals(name)
              || "org.apache.uima.ruta.type.Document".equals(name)
              || (stream.getDocumentAnnotationType().getName().equals(name) && (firstBasicOfAll != null && firstBasicOfAll
                      .beginsWith(type)))) {
        // TODO what about dynamic windowing?
        annotations.add(stream.getDocumentAnnotation());
      } else {
        stream.moveToFirst();
View Full Code Here

Examples of org.apache.uima.ruta.type.RutaBasic.beginsWith()

    Type contextType = type.getType(element.getParent());
    stream.moveToFirst();
    List<AnnotationFS> visibleContexts = new ArrayList<AnnotationFS>();
    while (stream.isValid()) {
      RutaBasic each = (RutaBasic) stream.get();
      if (each.beginsWith(contextType)) {
        visibleContexts.addAll(each.getBeginAnchors(contextType));
      }
      stream.moveToNext();
    }
    List<AnnotationFS> overlappingContexts = new ArrayList<AnnotationFS>();
View Full Code Here

Examples of org.jboss.weld.test.util.ActionSequence.beginsWith()

        Alpha instance = bean.create(ctx);
        bean.destroy(instance, ctx);

        ActionSequence sequence = ActionSequence.getSequence();
        assertEquals(4, sequence.getData().size());
        assertTrue(sequence.beginsWith(Charlie.class.getName() + String.class.getName(), Bravo.class.getName()
                + SessionBean.class.getName()));
    }

}
View Full Code Here

Examples of org.jboss.weld.test.util.ActionSequence.beginsWith()

        Alpha instance = bean.create(ctx);
        bean.destroy(instance, ctx);

        ActionSequence sequence = ActionSequence.getSequence();
        assertEquals(4, sequence.getData().size());
        assertTrue(sequence.beginsWith(Charlie.class.getName() + EntityManager.class.getName(), Bravo.class.getName()
                + EntityManagerFactory.class.getName()));
    }

}
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.