You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2017/03/10 15:58:08 UTC
svn commit: r1786373 [1/2] - in
/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources:
./ example/ org/ org/apache/ org/apache/uima/ org/apache/uima/examples/
org/apache/uima/examples/tokenizer/ org/apache/uima/tutorial/
Author: schor
Date: Fri Mar 10 15:58:08 2017
New Revision: 1786373
URL: http://svn.apache.org/viewvc?rev=1786373&view=rev
Log:
[UIMA-5349] prepare for test cases for jcas migration.
Added:
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/SimpleTokenAndSentenceAnnotator.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaMeeting.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaMeeting_Type.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/WordAnnot.java
uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/WordAnnot_Type.java
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package example;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.tcas.Annotation;
+
+/**
+ * A Personal Title. Updated by JCasGen Mon May 23 17:48:43 EDT 2005 XML source:
+ * c:\a\eclipse\301jxe\jedii_examples\descriptors\analysis_engine\NamesAndPersonTitles_TAE.xml
+ *
+ * @generated
+ */
+public class PersonTitle extends Annotation {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(PersonTitle.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected PersonTitle() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public PersonTitle(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public PersonTitle(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public PersonTitle(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+ // *--------------*
+ // * Feature: Kind
+
+ /**
+ * getter for Kind - gets The kind of title - Civilian, Military, or Government.
+ *
+ * @generated
+ */
+ public String getKind() {
+ if (PersonTitle_Type.featOkTst && ((PersonTitle_Type) jcasType).casFeat_Kind == null)
+ this.jcasType.jcas.throwFeatMissing("Kind", "example.PersonTitle");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((PersonTitle_Type) jcasType).casFeatCode_Kind);
+ }
+
+ /**
+ * setter for Kind - sets The kind of title - Civilian, Military, or Government.
+ *
+ * @generated
+ */
+ public void setKind(String v) {
+ if (PersonTitle_Type.featOkTst && ((PersonTitle_Type) jcasType).casFeat_Kind == null)
+ this.jcasType.jcas.throwFeatMissing("Kind", "example.PersonTitle");
+ jcasType.ll_cas.ll_setStringValue(addr, ((PersonTitle_Type) jcasType).casFeatCode_Kind, v);
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/example/PersonTitle_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,104 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package example;
+
+import org.apache.uima.cas.Feature;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.FeatureImpl;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/**
+ * A Personal Title. Updated by JCasGen Mon May 23 17:48:43 EDT 2005
+ *
+ * @generated
+ */
+public class PersonTitle_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ /** @generated */
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new PersonTitle(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new PersonTitle(addr, instanceOf_Type);
+ }
+ };
+
+ /** @generated */
+ public final static int typeIndexID = PersonTitle.typeIndexID;
+
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("example.PersonTitle");
+
+ /** @generated */
+ final Feature casFeat_Kind;
+
+ /** @generated */
+ final int casFeatCode_Kind;
+
+ /** @generated */
+ public String getKind(int addr) {
+ if (featOkTst && casFeat_Kind == null)
+ this.jcas.throwFeatMissing("Kind", "example.PersonTitle");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_Kind);
+ }
+
+ /** @generated */
+ public void setKind(int addr, String v) {
+ if (featOkTst && casFeat_Kind == null)
+ this.jcas.throwFeatMissing("Kind", "example.PersonTitle");
+ ll_cas.ll_setStringValue(addr, casFeatCode_Kind, v);
+ }
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
+ public PersonTitle_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ casFeat_Kind = jcas.getRequiredFeatureDE(casType, "Kind", "example.PersonTitleKind", featOkTst);
+ casFeatCode_Kind = (null == casFeat_Kind) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_Kind).getCode();
+
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.examples.tokenizer;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.tcas.Annotation;
+
+public class Sentence extends Annotation {
+
+ public final static int typeIndexID = JCasRegistry.register(Sentence.class);
+
+ public final static int type = typeIndexID;
+
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ // Never called. Disable default constructor
+ protected Sentence() {
+ }
+
+ /** Internal - Constructor used by generator */
+ public Sentence(int addr, TOP_Type type) {
+ super(addr, type);
+ }
+
+ public Sentence(JCas jcas) {
+ super(jcas);
+ }
+
+ public Sentence(JCas jcas, int start, int end) {
+ super(jcas, start, end);
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Sentence_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.examples.tokenizer;
+
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+public class Sentence_Type extends Annotation_Type {
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Sentence(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new Sentence(addr, instanceOf_Type);
+ }
+ };
+
+ public final static int typeIndexID = Sentence.typeIndexID;
+
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima_examples.tokenizer.Sentence");
+
+ // * initialize variables to correspond with Cas Type and Features
+ public Sentence_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ }
+
+ protected Sentence_Type() { // block default new operator
+ throw new RuntimeException("Internal Error-this constructor should never be called.");
+ }
+
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/SimpleTokenAndSentenceAnnotator.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/SimpleTokenAndSentenceAnnotator.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/SimpleTokenAndSentenceAnnotator.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/SimpleTokenAndSentenceAnnotator.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,100 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.examples.tokenizer;
+
+import java.text.BreakIterator;
+import java.text.ParsePosition;
+import java.util.Locale;
+
+import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
+import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.tcas.Annotation;
+
+/**
+ * An example annotator that annotates Tokens and Sentences.
+ */
+public class SimpleTokenAndSentenceAnnotator extends JCasAnnotator_ImplBase {
+
+ static abstract class Maker {
+ abstract Annotation newAnnotation(JCas jcas, int start, int end);
+ }
+
+ JCas jcas;
+
+ String input;
+
+ ParsePosition pp = new ParsePosition(0);
+
+ // ****************************************
+ // * Static vars holding break iterators
+ // ****************************************
+ static final BreakIterator sentenceBreak = BreakIterator.getSentenceInstance(Locale.US);
+
+ static final BreakIterator wordBreak = BreakIterator.getWordInstance(Locale.US);
+
+ // *********************************************
+ // * function pointers for new instances *
+ // *********************************************
+ static final Maker sentenceAnnotationMaker = new Maker() {
+ Annotation newAnnotation(JCas jcas, int start, int end) {
+ return new Sentence(jcas, start, end);
+ }
+ };
+
+ static final Maker tokenAnnotationMaker = new Maker() {
+ Annotation newAnnotation(JCas jcas, int start, int end) {
+ return new Token(jcas, start, end);
+ }
+ };
+
+ // *************************************************************
+ // * process *
+ // *************************************************************
+ public void process(JCas aJCas) throws AnalysisEngineProcessException {
+ jcas = aJCas;
+ input = jcas.getDocumentText();
+
+ // Create Annotations
+ makeAnnotations(sentenceAnnotationMaker, sentenceBreak);
+ makeAnnotations(tokenAnnotationMaker, wordBreak);
+ }
+
+ // *************************************************************
+ // * Helper Methods *
+ // *************************************************************
+ void makeAnnotations(Maker m, BreakIterator b) {
+ b.setText(input);
+ for (int end = b.next(), start = b.first(); end != BreakIterator.DONE; start = end, end = b
+ .next()) {
+ // eliminate all-whitespace tokens
+ boolean isWhitespace = true;
+ for (int i = start; i < end; i++) {
+ if (!Character.isWhitespace(input.charAt(i))) {
+ isWhitespace = false;
+ break;
+ }
+ }
+ if (!isWhitespace) {
+ m.newAnnotation(jcas, start, end).addToIndexes();
+ }
+ }
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.examples.tokenizer;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.tcas.Annotation;
+
+public class Token extends Annotation {
+
+ public final static int typeIndexID = JCasRegistry.register(Token.class);
+
+ public final static int type = typeIndexID;
+
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ // Never called. Disable default constructor
+ protected Token() {
+ }
+
+ /** Internal - Constructor used by generator */
+ public Token(int addr, TOP_Type type) {
+ super(addr, type);
+ }
+
+ public Token(JCas jcas) {
+ super(jcas);
+ }
+
+ public Token(JCas jcas, int start, int end) {
+ super(jcas, start, end);
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/examples/tokenizer/Token_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.examples.tokenizer;
+
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+public class Token_Type extends Annotation_Type {
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Token(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new Token(addr, instanceOf_Type);
+ }
+ };
+
+ public final static int typeIndexID = Token.typeIndexID;
+
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima_examples.tokenizer.Token");
+
+ // * initialize variables to correspond with Cas Type and Features
+ public Token_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ }
+
+ protected Token_Type() { // block default new operator
+ throw new RuntimeException("Internal Error-this constructor should never be called.");
+ }
+
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004 XML source: C:/Program
+ * Files/apache/uima/examples/descriptors/tutorial/ex6/TutorialTypeSystem.xml
+ *
+ * @generated
+ */
+public class DateAnnot extends DateTimeAnnot {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(DateAnnot.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected DateAnnot() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public DateAnnot(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public DateAnnot(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public DateAnnot(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateAnnot_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004
+ *
+ * @generated
+ */
+public class DateAnnot_Type extends DateTimeAnnot_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ /** @generated */
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new DateAnnot(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new DateAnnot(addr, instanceOf_Type);
+ }
+ };
+
+ /** @generated */
+ public final static int typeIndexID = DateAnnot.typeIndexID;
+
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.tutorial.DateAnnot");
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
+ public DateAnnot_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,118 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.tcas.Annotation;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004 XML source: C:/Program
+ * Files/apache/uima/examples/descriptors/tutorial/ex6/TutorialTypeSystem.xml
+ *
+ * @generated
+ */
+public class DateTimeAnnot extends Annotation {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(DateTimeAnnot.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected DateTimeAnnot() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public DateTimeAnnot(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public DateTimeAnnot(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public DateTimeAnnot(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+ // *--------------*
+ // * Feature: shortDateString
+
+ /**
+ * getter for shortDateString - gets
+ *
+ * @generated
+ */
+ public String getShortDateString() {
+ if (DateTimeAnnot_Type.featOkTst
+ && ((DateTimeAnnot_Type) jcasType).casFeat_shortDateString == null)
+ this.jcasType.jcas.throwFeatMissing("shortDateString", "org.apache.uima.tutorial.DateTimeAnnot");
+ return jcasType.ll_cas.ll_getStringValue(addr,
+ ((DateTimeAnnot_Type) jcasType).casFeatCode_shortDateString);
+ }
+
+ /**
+ * setter for shortDateString - sets
+ *
+ * @generated
+ */
+ public void setShortDateString(String v) {
+ if (DateTimeAnnot_Type.featOkTst
+ && ((DateTimeAnnot_Type) jcasType).casFeat_shortDateString == null)
+ this.jcasType.jcas.throwFeatMissing("shortDateString", "org.apache.uima.tutorial.DateTimeAnnot");
+ jcasType.ll_cas.ll_setStringValue(addr,
+ ((DateTimeAnnot_Type) jcasType).casFeatCode_shortDateString, v);
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/DateTimeAnnot_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,105 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.cas.Feature;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.FeatureImpl;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004
+ *
+ * @generated
+ */
+public class DateTimeAnnot_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ /** @generated */
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new DateTimeAnnot(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new DateTimeAnnot(addr, instanceOf_Type);
+ }
+ };
+
+ /** @generated */
+ public final static int typeIndexID = DateTimeAnnot.typeIndexID;
+
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.tutorial.DateTimeAnnot");
+
+ /** @generated */
+ final Feature casFeat_shortDateString;
+
+ /** @generated */
+ final int casFeatCode_shortDateString;
+
+ /** @generated */
+ public String getShortDateString(int addr) {
+ if (featOkTst && casFeat_shortDateString == null)
+ this.jcas.throwFeatMissing("shortDateString", "org.apache.uima.tutorial.DateTimeAnnot");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_shortDateString);
+ }
+
+ /** @generated */
+ public void setShortDateString(int addr, String v) {
+ if (featOkTst && casFeat_shortDateString == null)
+ this.jcas.throwFeatMissing("shortDateString", "org.apache.uima.tutorial.DateTimeAnnot");
+ ll_cas.ll_setStringValue(addr, casFeatCode_shortDateString, v);
+ }
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
+ public DateTimeAnnot_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ casFeat_shortDateString = jcas.getRequiredFeatureDE(casType, "shortDateString",
+ "uima.cas.String", featOkTst);
+ casFeatCode_shortDateString = (null == casFeat_shortDateString) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_shortDateString).getCode();
+
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,213 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.tcas.Annotation;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004 XML source: C:/Program
+ * Files/apache/uima/examples/descriptors/tutorial/ex6/TutorialTypeSystem.xml
+ *
+ * @generated
+ */
+public class Meeting extends Annotation {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Meeting.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected Meeting() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public Meeting(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Meeting(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public Meeting(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+ // *--------------*
+ // * Feature: room
+
+ /**
+ * getter for room - gets
+ *
+ * @generated
+ */
+ public RoomNumber getRoom() {
+ if (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_room == null)
+ this.jcasType.jcas.throwFeatMissing("room", "org.apache.uima.tutorial.Meeting");
+ return (RoomNumber) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
+ ((Meeting_Type) jcasType).casFeatCode_room)));
+ }
+
+ /**
+ * setter for room - sets
+ *
+ * @generated
+ */
+ public void setRoom(RoomNumber v) {
+ if (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_room == null)
+ this.jcasType.jcas.throwFeatMissing("room", "org.apache.uima.tutorial.Meeting");
+ jcasType.ll_cas.ll_setRefValue(addr, ((Meeting_Type) jcasType).casFeatCode_room,
+ jcasType.ll_cas.ll_getFSRef(v));
+ }
+
+ // *--------------*
+ // * Feature: date
+
+ /**
+ * getter for date - gets
+ *
+ * @generated
+ */
+ public DateAnnot getDate() {
+ if (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_date == null)
+ this.jcasType.jcas.throwFeatMissing("date", "org.apache.uima.tutorial.Meeting");
+ return (DateAnnot) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
+ ((Meeting_Type) jcasType).casFeatCode_date)));
+ }
+
+ /**
+ * setter for date - sets
+ *
+ * @generated
+ */
+ public void setDate(DateAnnot v) {
+ if (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_date == null)
+ this.jcasType.jcas.throwFeatMissing("date", "org.apache.uima.tutorial.Meeting");
+ jcasType.ll_cas.ll_setRefValue(addr, ((Meeting_Type) jcasType).casFeatCode_date,
+ jcasType.ll_cas.ll_getFSRef(v));
+ }
+
+ // *--------------*
+ // * Feature: startTime
+
+ /**
+ * getter for startTime - gets
+ *
+ * @generated
+ */
+ public TimeAnnot getStartTime() {
+ if (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_startTime == null)
+ this.jcasType.jcas.throwFeatMissing("startTime", "org.apache.uima.tutorial.Meeting");
+ return (TimeAnnot) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
+ ((Meeting_Type) jcasType).casFeatCode_startTime)));
+ }
+
+ /**
+ * setter for startTime - sets
+ *
+ * @generated
+ */
+ public void setStartTime(TimeAnnot v) {
+ if (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_startTime == null)
+ this.jcasType.jcas.throwFeatMissing("startTime", "org.apache.uima.tutorial.Meeting");
+ jcasType.ll_cas.ll_setRefValue(addr, ((Meeting_Type) jcasType).casFeatCode_startTime,
+ jcasType.ll_cas.ll_getFSRef(v));
+ }
+
+ // *--------------*
+ // * Feature: endTime
+
+ /**
+ * getter for endTime - gets
+ *
+ * @generated
+ */
+ public TimeAnnot getEndTime() {
+ if (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_endTime == null)
+ this.jcasType.jcas.throwFeatMissing("endTime", "org.apache.uima.tutorial.Meeting");
+ return (TimeAnnot) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
+ ((Meeting_Type) jcasType).casFeatCode_endTime)));
+ }
+
+ /**
+ * setter for endTime - sets
+ *
+ * @generated
+ */
+ public void setEndTime(TimeAnnot v) {
+ if (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_endTime == null)
+ this.jcasType.jcas.throwFeatMissing("endTime", "org.apache.uima.tutorial.Meeting");
+ jcasType.ll_cas.ll_setRefValue(addr, ((Meeting_Type) jcasType).casFeatCode_endTime,
+ jcasType.ll_cas.ll_getFSRef(v));
+ }
+
+ /** Custom constructor taking all parameters */
+ public Meeting(JCas jcas, int start, int end, RoomNumber room, DateAnnot date,
+ TimeAnnot startTime, TimeAnnot endTime) {
+ this(jcas, start, end);
+ setRoom(room);
+ setDate(date);
+ setStartTime(startTime);
+ setEndTime(endTime);
+ }
+
+ public String toString() {
+ return "Meeting in " + getRoom().getCoveredText() + " on " + getDate().getCoveredText() + ", "
+ + getStartTime().getCoveredText() + " - " + getEndTime().getCoveredText();
+ }
+
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/Meeting_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,180 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.cas.Feature;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.FeatureImpl;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004
+ *
+ * @generated
+ */
+public class Meeting_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ /** @generated */
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Meeting(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new Meeting(addr, instanceOf_Type);
+ }
+ };
+
+ /** @generated */
+ public final static int typeIndexID = Meeting.typeIndexID;
+
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.tutorial.Meeting");
+
+ /** @generated */
+ final Feature casFeat_room;
+
+ /** @generated */
+ final int casFeatCode_room;
+
+ /** @generated */
+ public int getRoom(int addr) {
+ if (featOkTst && casFeat_room == null)
+ this.jcas.throwFeatMissing("room", "org.apache.uima.tutorial.Meeting");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_room);
+ }
+
+ /** @generated */
+ public void setRoom(int addr, int v) {
+ if (featOkTst && casFeat_room == null)
+ this.jcas.throwFeatMissing("room", "org.apache.uima.tutorial.Meeting");
+ ll_cas.ll_setRefValue(addr, casFeatCode_room, v);
+ }
+
+ /** @generated */
+ final Feature casFeat_date;
+
+ /** @generated */
+ final int casFeatCode_date;
+
+ /** @generated */
+ public int getDate(int addr) {
+ if (featOkTst && casFeat_date == null)
+ this.jcas.throwFeatMissing("date", "org.apache.uima.tutorial.Meeting");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_date);
+ }
+
+ /** @generated */
+ public void setDate(int addr, int v) {
+ if (featOkTst && casFeat_date == null)
+ this.jcas.throwFeatMissing("date", "org.apache.uima.tutorial.Meeting");
+ ll_cas.ll_setRefValue(addr, casFeatCode_date, v);
+ }
+
+ /** @generated */
+ final Feature casFeat_startTime;
+
+ /** @generated */
+ final int casFeatCode_startTime;
+
+ /** @generated */
+ public int getStartTime(int addr) {
+ if (featOkTst && casFeat_startTime == null)
+ this.jcas.throwFeatMissing("startTime", "org.apache.uima.tutorial.Meeting");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_startTime);
+ }
+
+ /** @generated */
+ public void setStartTime(int addr, int v) {
+ if (featOkTst && casFeat_startTime == null)
+ this.jcas.throwFeatMissing("startTime", "org.apache.uima.tutorial.Meeting");
+ ll_cas.ll_setRefValue(addr, casFeatCode_startTime, v);
+ }
+
+ /** @generated */
+ final Feature casFeat_endTime;
+
+ /** @generated */
+ final int casFeatCode_endTime;
+
+ /** @generated */
+ public int getEndTime(int addr) {
+ if (featOkTst && casFeat_endTime == null)
+ this.jcas.throwFeatMissing("endTime", "org.apache.uima.tutorial.Meeting");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_endTime);
+ }
+
+ /** @generated */
+ public void setEndTime(int addr, int v) {
+ if (featOkTst && casFeat_endTime == null)
+ this.jcas.throwFeatMissing("endTime", "org.apache.uima.tutorial.Meeting");
+ ll_cas.ll_setRefValue(addr, casFeatCode_endTime, v);
+ }
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
+ public Meeting_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ casFeat_room = jcas.getRequiredFeatureDE(casType, "room",
+ "org.apache.uima.tutorial.RoomNumber", featOkTst);
+ casFeatCode_room = (null == casFeat_room) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_room).getCode();
+
+ casFeat_date = jcas.getRequiredFeatureDE(casType, "date", "org.apache.uima.tutorial.DateAnnot",
+ featOkTst);
+ casFeatCode_date = (null == casFeat_date) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_date).getCode();
+
+ casFeat_startTime = jcas.getRequiredFeatureDE(casType, "startTime",
+ "org.apache.uima.tutorial.TimeAnnot", featOkTst);
+ casFeatCode_startTime = (null == casFeat_startTime) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_startTime).getCode();
+
+ casFeat_endTime = jcas.getRequiredFeatureDE(casType, "endTime",
+ "org.apache.uima.tutorial.TimeAnnot", featOkTst);
+ casFeatCode_endTime = (null == casFeat_endTime) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_endTime).getCode();
+
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.tcas.Annotation;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:37 EST 2004 XML source: C:/Program
+ * Files/apache/uima/examples/descriptors/tutorial/ex6/TutorialTypeSystem.xml
+ *
+ * @generated
+ */
+public class RoomNumber extends Annotation {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(RoomNumber.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected RoomNumber() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public RoomNumber(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public RoomNumber(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public RoomNumber(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+ // *--------------*
+ // * Feature: building
+
+ /**
+ * getter for building - gets Building containing this room
+ *
+ * @generated
+ */
+ public String getBuilding() {
+ if (RoomNumber_Type.featOkTst && ((RoomNumber_Type) jcasType).casFeat_building == null)
+ this.jcasType.jcas.throwFeatMissing("building", "org.apache.uima.tutorial.RoomNumber");
+ return jcasType.ll_cas.ll_getStringValue(addr,
+ ((RoomNumber_Type) jcasType).casFeatCode_building);
+ }
+
+ /**
+ * setter for building - sets Building containing this room
+ *
+ * @generated
+ */
+ public void setBuilding(String v) {
+ if (RoomNumber_Type.featOkTst && ((RoomNumber_Type) jcasType).casFeat_building == null)
+ this.jcasType.jcas.throwFeatMissing("building", "org.apache.uima.tutorial.RoomNumber");
+ jcasType.ll_cas.ll_setStringValue(addr, ((RoomNumber_Type) jcasType).casFeatCode_building, v);
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/RoomNumber_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,104 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.cas.Feature;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.FeatureImpl;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:37 EST 2004
+ *
+ * @generated
+ */
+public class RoomNumber_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ /** @generated */
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new RoomNumber(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new RoomNumber(addr, instanceOf_Type);
+ }
+ };
+
+ /** @generated */
+ public final static int typeIndexID = RoomNumber.typeIndexID;
+
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.tutorial.RoomNumber");
+
+ /** @generated */
+ final Feature casFeat_building;
+
+ /** @generated */
+ final int casFeatCode_building;
+
+ /** @generated */
+ public String getBuilding(int addr) {
+ if (featOkTst && casFeat_building == null)
+ this.jcas.throwFeatMissing("building", "org.apache.uima.tutorial.RoomNumber");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_building);
+ }
+
+ /** @generated */
+ public void setBuilding(int addr, String v) {
+ if (featOkTst && casFeat_building == null)
+ this.jcas.throwFeatMissing("building", "org.apache.uima.tutorial.RoomNumber");
+ ll_cas.ll_setStringValue(addr, casFeatCode_building, v);
+ }
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
+ public RoomNumber_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ casFeat_building = jcas.getRequiredFeatureDE(casType, "building", "uima.cas.String", featOkTst);
+ casFeatCode_building = (null == casFeat_building) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_building).getCode();
+
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,90 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.tcas.Annotation;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:37 EST 2004 XML source: C:/Program
+ * Files/apache/uima/examples/descriptors/tutorial/ex6/TutorialTypeSystem.xml
+ *
+ * @generated
+ */
+public class SentenceAnnot extends Annotation {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(SentenceAnnot.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected SentenceAnnot() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public SentenceAnnot(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public SentenceAnnot(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public SentenceAnnot(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/SentenceAnnot_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,78 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:37 EST 2004
+ *
+ * @generated
+ */
+public class SentenceAnnot_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ /** @generated */
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new SentenceAnnot(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new SentenceAnnot(addr, instanceOf_Type);
+ }
+ };
+
+ /** @generated */
+ public final static int typeIndexID = SentenceAnnot.typeIndexID;
+
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.tutorial.SentenceAnnot");
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
+ public SentenceAnnot_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004 XML source: C:/Program
+ * Files/apache/uima/examples/descriptors/tutorial/ex6/TutorialTypeSystem.xml
+ *
+ * @generated
+ */
+public class TimeAnnot extends DateTimeAnnot {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(TimeAnnot.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected TimeAnnot() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public TimeAnnot(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public TimeAnnot(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public TimeAnnot(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/TimeAnnot_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004
+ *
+ * @generated
+ */
+public class TimeAnnot_Type extends DateTimeAnnot_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ /** @generated */
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new TimeAnnot(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new TimeAnnot(addr, instanceOf_Type);
+ }
+ };
+
+ /** @generated */
+ public final static int typeIndexID = TimeAnnot.typeIndexID;
+
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.tutorial.TimeAnnot");
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
+ public TimeAnnot_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,122 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.tcas.Annotation;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004 XML source: C:/Program
+ * Files/apache/uima/examples/descriptors/tutorial/ex6/TutorialTypeSystem.xml
+ *
+ * @generated
+ */
+public class UimaAcronym extends Annotation {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(UimaAcronym.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected UimaAcronym() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public UimaAcronym(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public UimaAcronym(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public UimaAcronym(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+ // *--------------*
+ // * Feature: expandedForm
+
+ /**
+ * getter for expandedForm - gets
+ *
+ * @generated
+ */
+ public String getExpandedForm() {
+ if (UimaAcronym_Type.featOkTst && ((UimaAcronym_Type) jcasType).casFeat_expandedForm == null)
+ this.jcasType.jcas.throwFeatMissing("expandedForm", "org.apache.uima.tutorial.UimaAcronym");
+ return jcasType.ll_cas.ll_getStringValue(addr,
+ ((UimaAcronym_Type) jcasType).casFeatCode_expandedForm);
+ }
+
+ /**
+ * setter for expandedForm - sets
+ *
+ * @generated
+ */
+ public void setExpandedForm(String v) {
+ if (UimaAcronym_Type.featOkTst && ((UimaAcronym_Type) jcasType).casFeat_expandedForm == null)
+ this.jcasType.jcas.throwFeatMissing("expandedForm", "org.apache.uima.tutorial.UimaAcronym");
+ jcasType.ll_cas.ll_setStringValue(addr, ((UimaAcronym_Type) jcasType).casFeatCode_expandedForm,
+ v);
+ }
+
+ /** Custom constructor taking all parameters */
+ public UimaAcronym(JCas jcas, int start, int end, String expandedForm) {
+ super(jcas, start, end);
+ setExpandedForm(expandedForm);
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym_Type.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym_Type.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaAcronym_Type.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,105 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.cas.Feature;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.impl.FeatureImpl;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004
+ *
+ * @generated
+ */
+public class UimaAcronym_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {
+ return fsGenerator;
+ }
+
+ /** @generated */
+ private final FSGenerator fsGenerator = new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (instanceOf_Type.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = instanceOf_Type.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new UimaAcronym(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new UimaAcronym(addr, instanceOf_Type);
+ }
+ };
+
+ /** @generated */
+ public final static int typeIndexID = UimaAcronym.typeIndexID;
+
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.tutorial.UimaAcronym");
+
+ /** @generated */
+ final Feature casFeat_expandedForm;
+
+ /** @generated */
+ final int casFeatCode_expandedForm;
+
+ /** @generated */
+ public String getExpandedForm(int addr) {
+ if (featOkTst && casFeat_expandedForm == null)
+ this.jcas.throwFeatMissing("expandedForm", "org.apache.uima.tutorial.UimaAcronym");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_expandedForm);
+ }
+
+ /** @generated */
+ public void setExpandedForm(int addr, String v) {
+ if (featOkTst && casFeat_expandedForm == null)
+ this.jcas.throwFeatMissing("expandedForm", "org.apache.uima.tutorial.UimaAcronym");
+ ll_cas.ll_setStringValue(addr, casFeatCode_expandedForm, v);
+ }
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
+ public UimaAcronym_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
+
+ casFeat_expandedForm = jcas.getRequiredFeatureDE(casType, "expandedForm", "uima.cas.String",
+ featOkTst);
+ casFeatCode_expandedForm = (null == casFeat_expandedForm) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_expandedForm).getCode();
+
+ }
+}
Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaMeeting.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaMeeting.java?rev=1786373&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaMeeting.java (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-v3migration-jcas/src/test/v2_jcas_sources/org/apache/uima/tutorial/UimaMeeting.java Fri Mar 10 15:58:08 2017
@@ -0,0 +1,94 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.tutorial;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+/**
+ * Updated by JCasGen Mon Nov 29 15:02:38 EST 2004 XML source: C:/Program
+ * Files/apache/uima/examples/descriptors/tutorial/ex6/TutorialTypeSystem.xml
+ *
+ * @generated
+ */
+public class UimaMeeting extends Meeting {
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(UimaMeeting.class);
+
+ /**
+ * @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected UimaMeeting() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
+ public UimaMeeting(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public UimaMeeting(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ public UimaMeeting(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+ /** Custom constructor taking all parameters */
+ public UimaMeeting(JCas jcas, int start, int end, RoomNumber room, DateAnnot date,
+ TimeAnnot startTime, TimeAnnot endTime) {
+ super(jcas, start, end, room, date, startTime, endTime);
+ }
+}