@Test public void testViewCreatorAnnotator() throws ResourceInitializationException, AnalysisEngineProcessException, CASException { AnalysisEngine viewCreator = AnalysisEngineFactory.createEngine(ViewCreatorAnnotator.class, typeSystemDescription, ViewCreatorAnnotator.PARAM_VIEW_NAME, "myView"); viewCreator.process(jCas); JCas myView = jCas.getView("myView"); assertNotNull(myView); myView.setDocumentText("my view text"); }
@Override public void process(final JCas aJCas) throws AnalysisEngineProcessException { createViewSafely(aJCas, viewName); }
ViewCreatorAnnotator extends JCasAnnotator_ImplBase { @Override public void process(final JCas aJCas) throws AnalysisEngineProcessException { createViewSafely(aJCas, viewName); } }
ViewCreatorAnnotator extends JCasAnnotator_ImplBase { @Override public void process(final JCas aJCas) throws AnalysisEngineProcessException { createViewSafely(aJCas, viewName); }  }
ViewCreatorAnnotator extends JCasAnnotator_ImplBase { @Override public void process(final JCas aJCas) throws AnalysisEngineProcessException { createViewSafely(aJCas, viewName); }  @Override void process(final JCas aJCas); static JCas createViewSafely(final JCas aJCas, final String aViewName); }
ViewCreatorAnnotator extends JCasAnnotator_ImplBase { @Override public void process(final JCas aJCas) throws AnalysisEngineProcessException { createViewSafely(aJCas, viewName); }  @Override void process(final JCas aJCas); static JCas createViewSafely(final JCas aJCas, final String aViewName); static final String PARAM_VIEW_NAME; }