You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by to...@apache.org on 2010/07/05 12:08:50 UTC
svn commit: r960514 [2/3] - in /uima/sandbox/trunk/OpenCalaisAnnotator: ./
src/main/java/org/apache/uima/annotator/calais/
src/main/java/org/apache/uima/calais/ src/test/ src/test/java/
src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apa...
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:12 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:12 CEST 2010
+ * @generated */
+public class Holiday extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Holiday.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Holiday() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Holiday(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Holiday(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public Holiday(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:12 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:12 CEST 2010
+ * @generated */
+public class Holiday_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Holiday_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Holiday_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Holiday(addr, Holiday_Type.this);
+ Holiday_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Holiday(addr, Holiday_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Holiday.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.Holiday");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Holiday_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Holiday_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:12 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:12 CEST 2010
+ * @generated */
+public class IndustryTerm extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(IndustryTerm.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected IndustryTerm() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public IndustryTerm(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public IndustryTerm(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public IndustryTerm(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:12 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:12 CEST 2010
+ * @generated */
+public class IndustryTerm_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (IndustryTerm_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = IndustryTerm_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new IndustryTerm(addr, IndustryTerm_Type.this);
+ IndustryTerm_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new IndustryTerm(addr, IndustryTerm_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = IndustryTerm.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.IndustryTerm");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public IndustryTerm_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/IndustryTerm_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class NaturalDisaster extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(NaturalDisaster.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected NaturalDisaster() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public NaturalDisaster(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public NaturalDisaster(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public NaturalDisaster(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class NaturalDisaster_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (NaturalDisaster_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = NaturalDisaster_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new NaturalDisaster(addr, NaturalDisaster_Type.this);
+ NaturalDisaster_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new NaturalDisaster(addr, NaturalDisaster_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = NaturalDisaster.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.NaturalDisaster");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public NaturalDisaster_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalDisaster_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class NaturalFeature extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(NaturalFeature.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected NaturalFeature() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public NaturalFeature(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public NaturalFeature(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public NaturalFeature(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class NaturalFeature_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (NaturalFeature_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = NaturalFeature_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new NaturalFeature(addr, NaturalFeature_Type.this);
+ NaturalFeature_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new NaturalFeature(addr, NaturalFeature_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = NaturalFeature.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.NaturalFeature");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public NaturalFeature_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/NaturalFeature_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class Organization extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Organization.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Organization() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Organization(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Organization(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public Organization(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,71 @@
+/*
+ * 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.
+ */
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class Organization_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Organization_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Organization_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Organization(addr, Organization_Type.this);
+ Organization_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Organization(addr, Organization_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Organization.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.Organization");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Organization_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Organization_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class Person extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Person.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Person() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Person(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Person(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public Person(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class Person_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Person_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Person_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Person(addr, Person_Type.this);
+ Person_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Person(addr, Person_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Person.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.Person");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Person_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Person_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class PhoneNumber extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(PhoneNumber.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected PhoneNumber() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public PhoneNumber(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public PhoneNumber(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public PhoneNumber(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class PhoneNumber_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (PhoneNumber_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = PhoneNumber_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new PhoneNumber(addr, PhoneNumber_Type.this);
+ PhoneNumber_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new PhoneNumber(addr, PhoneNumber_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = PhoneNumber.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.PhoneNumber");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public PhoneNumber_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/PhoneNumber_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class ProviceOrState extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(ProviceOrState.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected ProviceOrState() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public ProviceOrState(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public ProviceOrState(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public ProviceOrState(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class ProviceOrState_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (ProviceOrState_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = ProviceOrState_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new ProviceOrState(addr, ProviceOrState_Type.this);
+ ProviceOrState_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new ProviceOrState(addr, ProviceOrState_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = ProviceOrState.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.ProviceOrState");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public ProviceOrState_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/ProviceOrState_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class Region extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Region.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Region() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Region(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Region(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public Region(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class Region_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Region_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Region_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Region(addr, Region_Type.this);
+ Region_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Region(addr, Region_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Region.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.Region");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Region_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Region_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class Technology extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Technology.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Technology() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Technology(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Technology(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public Technology(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class Technology_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Technology_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Technology_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Technology(addr, Technology_Type.this);
+ Technology_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Technology(addr, Technology_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Technology.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.Technology");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Technology_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/Technology_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL.java Mon Jul 5 10:08:48 2010
@@ -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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class URL extends BaseType {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(URL.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected URL() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public URL(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public URL(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public URL(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() {}
+
+}
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL_Type.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL_Type.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL_Type.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+/* First created by JCasGen Thu Jun 17 13:00:13 CEST 2010 */
+package org.apache.uima.calais;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+
+/**
+ * Updated by JCasGen Thu Jun 17 13:00:13 CEST 2010
+ * @generated */
+public class URL_Type extends BaseType_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (URL_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = URL_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new URL(addr, URL_Type.this);
+ URL_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new URL(addr, URL_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = URL.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calais.URL");
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public URL_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL_Type.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/main/java/org/apache/uima/calais/URL_Type.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/OpenCalaisAnnotatorTest.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/OpenCalaisAnnotatorTest.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/OpenCalaisAnnotatorTest.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/OpenCalaisAnnotatorTest.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,74 @@
+/*
+ * 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.annotator.calais;
+
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertTrue;
+
+import org.apache.uima.cas.CAS;
+import org.apache.uima.cas.CASException;
+import org.apache.uima.cas.Type;
+import org.apache.uima.jcas.tcas.Annotation;
+import org.apache.uima.test.junit_extension.AnnotatorTester;
+import org.junit.Test;
+
+/**
+ * Test for {@link OpenCalaisAnnotator}
+ */
+public class OpenCalaisAnnotatorTest {
+ private String integrationDescPath = "src/test/resources/IntegrationTestOpenCalaisAnnotator.xml";
+ private String mockedDescPath = "src/test/resources/MockedTestOpenCalaisAnnotator.xml";
+
+ private static final String text = "President Obama vows to \"make BP pay\" for the Gulf oil spill, and says the US must end its fossil fuel \"addiction\"";
+
+ @Test
+ public void integrationTest() {
+ try {
+ AnnotatorTester annotatorTester = new AnnotatorTester(integrationDescPath);
+ testAnnotator(annotatorTester);
+ } catch (Exception e) {
+ e.printStackTrace();
+ fail(e.getLocalizedMessage());
+ }
+ }
+
+ @Test
+ public void unitMockedTest() {
+ try {
+ AnnotatorTester annotatorTester = new AnnotatorTester(mockedDescPath);
+ testAnnotator(annotatorTester);
+ } catch (Exception e) {
+ e.printStackTrace();
+ fail(e.getLocalizedMessage());
+ }
+ }
+
+ private void testAnnotator(AnnotatorTester annotatorTester) throws Exception, CASException {
+ CAS cas = annotatorTester.performTest(text, "en");
+ for (Annotation annotation : cas.getJCas().getAnnotationIndex(
+ org.apache.uima.calais.BaseType.type)) {
+ Type type = annotation.getType();
+ assertTrue(annotation.getType().getName() != null);
+ assertTrue(annotation.getBegin() >= 0);
+ assertTrue(annotation.getEnd() > 0);
+ assertTrue(annotation.getCoveredText() != null && !"".equals(annotation.getCoveredText()));
+ assertTrue(annotation.getFeatureValueAsString(type.getFeatureByBaseName("calaisType")) != null);
+ }
+ }
+}
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/OpenCalaisAnnotatorTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/OpenCalaisAnnotatorTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/OpenCalaisAnnotatorTest.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/mock/MockedOpenCalaisAnnotator.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/mock/MockedOpenCalaisAnnotator.java?rev=960514&view=auto
==============================================================================
--- uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/mock/MockedOpenCalaisAnnotator.java (added)
+++ uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/mock/MockedOpenCalaisAnnotator.java Mon Jul 5 10:08:48 2010
@@ -0,0 +1,40 @@
+/*
+ * 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.annotator.calais.mock;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.UnsupportedEncodingException;
+import java.net.URL;
+
+import org.apache.uima.annotator.calais.OpenCalaisAnnotator;
+
+/**
+ * Mocked version of the {@link OpenCalaisAnnotator} for testing purpose only
+ */
+public class MockedOpenCalaisAnnotator extends OpenCalaisAnnotator {
+
+ @Override
+ protected InputStream callServiceOnText(String modifiedText) throws IOException,
+ UnsupportedEncodingException {
+ URL resource = this.getClass().getResource("/returnedRDF.xml");
+ return resource.openStream();
+ }
+}
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/mock/MockedOpenCalaisAnnotator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/mock/MockedOpenCalaisAnnotator.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: uima/sandbox/trunk/OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/mock/MockedOpenCalaisAnnotator.java
------------------------------------------------------------------------------
svn:mime-type = text/plain