Examples of containsType()


Examples of org.apache.uima.analysis_engine.ResultSpecification.containsType()

      resultSpec.addResultType("uima.tcas.Annotation", true);
     
      ResultSpecification_impl rs2 = new ResultSpecification_impl(cas.getTypeSystem());
      rs2.addCapabilities(ae.getAnalysisEngineMetaData().getCapabilities());
      ResultSpecification acResultSpec = resultSpec.intersect(rs2);
      assertTrue(acResultSpec.containsType("uima.tt.TokenAnnotation"));
      assertTrue(acResultSpec.containsType("uima.tt.SentenceAnnotation"));
      assertFalse(acResultSpec.containsType("uima.tt.Lemma"));
    } catch (Exception e) {
      JUnitExtension.handleException(e);
    }
View Full Code Here

Examples of org.apache.uima.analysis_engine.ResultSpecification.containsType()

     
      ResultSpecification_impl rs2 = new ResultSpecification_impl(cas.getTypeSystem());
      rs2.addCapabilities(ae.getAnalysisEngineMetaData().getCapabilities());
      ResultSpecification acResultSpec = resultSpec.intersect(rs2);
      assertTrue(acResultSpec.containsType("uima.tt.TokenAnnotation"));
      assertTrue(acResultSpec.containsType("uima.tt.SentenceAnnotation"));
      assertFalse(acResultSpec.containsType("uima.tt.Lemma"));
    } catch (Exception e) {
      JUnitExtension.handleException(e);
    }
  }
View Full Code Here

Examples of org.apache.uima.analysis_engine.ResultSpecification.containsType()

      ResultSpecification_impl rs2 = new ResultSpecification_impl(cas.getTypeSystem());
      rs2.addCapabilities(ae.getAnalysisEngineMetaData().getCapabilities());
      ResultSpecification acResultSpec = resultSpec.intersect(rs2);
      assertTrue(acResultSpec.containsType("uima.tt.TokenAnnotation"));
      assertTrue(acResultSpec.containsType("uima.tt.SentenceAnnotation"));
      assertFalse(acResultSpec.containsType("uima.tt.Lemma"));
    } catch (Exception e) {
      JUnitExtension.handleException(e);
    }
  }
 
View Full Code Here

Examples of org.apache.uima.analysis_engine.ResultSpecification.containsType()

    jcas = aJCas;
    input = jcas.getDocumentText();

    // Create Annotations
    ResultSpecification resultSpec = getResultSpecification();
    if (resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot"))
      makeAnnotations(timeAnnotationMaker, hoursMinutesPattern, dfTimeShort);
    if (resultSpec.containsType("org.apache.uima.tutorial.DateAnnot"))
      makeAnnotations(dateAnnotationMaker, numericDatePattern, dfDateShort);
    if (resultSpec.containsType("org.apache.uima.tutorial.DateAnnot"))
      makeAnnotations(dateAnnotationMaker, mediumDatePattern, dfDateMedium);
View Full Code Here

Examples of org.apache.uima.analysis_engine.ResultSpecification.containsType()

    // Create Annotations
    ResultSpecification resultSpec = getResultSpecification();
    if (resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot"))
      makeAnnotations(timeAnnotationMaker, hoursMinutesPattern, dfTimeShort);
    if (resultSpec.containsType("org.apache.uima.tutorial.DateAnnot"))
      makeAnnotations(dateAnnotationMaker, numericDatePattern, dfDateShort);
    if (resultSpec.containsType("org.apache.uima.tutorial.DateAnnot"))
      makeAnnotations(dateAnnotationMaker, mediumDatePattern, dfDateMedium);
    if (resultSpec.containsType("org.apache.uima.tutorial.DateAnnot"))
      makeAnnotations(dateAnnotationMaker, longDatePattern, dfDateLong);
View Full Code Here

Examples of org.fenixedu.academic.domain.Shift.containsType()

            Shift shift;
            Iterator<Shift> iter = shifts.iterator();

            while (iter.hasNext()) {
                shift = iter.next();
                if (shift.containsType(shiftType)) {
                    infoShift = new InfoShift(shift);
                    shiftsList.add(infoShift);
                }
            }
            return shiftsList;
View Full Code Here

Examples of org.fenixedu.academic.domain.Shift.containsType()

                while (iterator.hasNext()) {

                    Shift shift = iterator.next();

                    if (shift.containsType(ShiftType.TEORICA)) {
                        theoreticalCapacity = Integer.valueOf(theoreticalCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.TEORICO_PRATICA)) {
                        theoPraticalCapacity = Integer.valueOf(theoPraticalCapacity.intValue() + shift.getLotacao().intValue());
View Full Code Here

Examples of org.fenixedu.academic.domain.Shift.containsType()

                    Shift shift = iterator.next();

                    if (shift.containsType(ShiftType.TEORICA)) {
                        theoreticalCapacity = Integer.valueOf(theoreticalCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.TEORICO_PRATICA)) {
                        theoPraticalCapacity = Integer.valueOf(theoPraticalCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.DUVIDAS)) {
                        doubtsCapacity = Integer.valueOf(doubtsCapacity.intValue() + shift.getLotacao().intValue());
View Full Code Here

Examples of org.fenixedu.academic.domain.Shift.containsType()

                        theoreticalCapacity = Integer.valueOf(theoreticalCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.TEORICO_PRATICA)) {
                        theoPraticalCapacity = Integer.valueOf(theoPraticalCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.DUVIDAS)) {
                        doubtsCapacity = Integer.valueOf(doubtsCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.LABORATORIAL)) {
                        labCapacity = Integer.valueOf(labCapacity.intValue() + shift.getLotacao().intValue());
View Full Code Here

Examples of org.fenixedu.academic.domain.Shift.containsType()

                        theoPraticalCapacity = Integer.valueOf(theoPraticalCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.DUVIDAS)) {
                        doubtsCapacity = Integer.valueOf(doubtsCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.LABORATORIAL)) {
                        labCapacity = Integer.valueOf(labCapacity.intValue() + shift.getLotacao().intValue());

                    } else if (shift.containsType(ShiftType.PRATICA)) {
                        praticalCapacity = Integer.valueOf(praticalCapacity.intValue() + shift.getLotacao().intValue());
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.