You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2006/11/22 18:10:08 UTC
svn commit: r478244 [1/18] - in /incubator/uima/uimaj/trunk/uimaj-tools/src:
main/java/org/apache/uima/klt/ main/java/org/apache/uima/tools/
main/java/org/apache/uima/tools/annot_view/
main/java/org/apache/uima/tools/annot_view/ts_editor/ main/java/org...
Author: alally
Date: Wed Nov 22 09:10:04 2006
New Revision: 478244
URL: http://svn.apache.org/viewvc?view=rev&rev=478244
Log:
UIMA-48: reformatted code and fixed trivial compiler warnings
Modified:
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation_Type.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity_Type.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence_Type.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence_Type.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link_Type.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Referent.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Referent_Type.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/RelationAnnotation.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/RelationAnnotation_Type.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/RelationArgs.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/RelationArgs_Type.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/AnnotationFeaturesViewer.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/ValidateDescriptor.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/XCasAnnotationViewerMain.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/AnnotationDisplayCustomizationFrame.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/AnnotationExtent.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/ArrayNode.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/ColorIcon.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/FSNode.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/FSTreeModel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/FSTreeNode.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/Gladis.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/IndexTreeNode.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/LogFileViewer.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/MainFrame.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/MarkupExtent.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/MultiAnnotViewerFrame.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/MultiMarkup.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/SplashScreen.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/TypeTreeNode.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/ts_editor/FeatureTableModel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/annot_view/ts_editor/MainFrame.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/AnalysisEnginePanel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/ConfigField.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/ConsumerPanel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/CpmFrame.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/CpmPanel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/ElapsedTimeFormatter.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/JTabbedPaneWithCloseIcons.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/MetaDataPanel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/PerformanceReportDialog.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/TabClosedListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cpm/TaePanel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/docanalyzer/DocumentAnalyzer.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/docanalyzer/FileSelector.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/docanalyzer/FileSelectorListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/docanalyzer/PrefsMediator.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/docanalyzer/TfDocumentListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/docanalyzer/TfFileSelectorListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/docanalyzer/TfFocusListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/docanalyzer/XCasAnnotationViewerDialog.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/images/Images.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/GUI.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/GuiErrorImpl.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/GuiProgressMonitor.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/IError.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/IMerge.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/IProgressMonitor.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/JCasTypeTemplate.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/JCas_TypeTemplate.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/Jg.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/LogThrowErrorImpl.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/Prefs.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/TypeInfo.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/UimaLoggerProgressMonitor.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/Waiter.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/pear/install/InstallPear.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/pear/merger/PMController.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/pear/merger/PMControllerHelper.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/pear/merger/PMUimaAgent.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/AnTreeListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/AnnotationFeaturesViewer.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/ColorEditor.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/ColorParser.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/ColorRenderer.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/LabelCellEditor.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/MyCellRenderer.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/StyleConstants.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/StyleMapEditor.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/StyleMapEntry.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/StyleMapTable.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/StyleMapTableModel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/StyleMapXmlParser.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/TableDropAdapter.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/TableGUIMediator.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/stylemap/TableSelectionListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/Caption.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/FileChooserBugWorkarounds.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/FileSelector.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/FileSelectorListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/FormPanel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/ImageButton.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/IntegerField.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/ListSelector.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/SliderField.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/SplashScreenDialog.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/SpringUtilities.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/SwingWorker.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/TransportControlListener.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/TransportControlPanel.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/gui/XMLFileFilter.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/util/htmlview/AnnotationViewGenerator.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/viewer/CasAnnotationViewer.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/viewer/CasAnnotationViewerApplet.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/viewer/CasTreeViewer.java
incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/viewer/CasTreeViewerApplet.java
incubator/uima/uimaj/trunk/uimaj-tools/src/test/java/org/apache/uima/tools/pear/merger/PearMergerTest.java
incubator/uima/uimaj/trunk/uimaj-tools/src/test/java/org/apache/uima/tools/viewer/CasAnnotationViewerTest.java
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity.java Wed Nov 22 09:10:04 2006
@@ -19,55 +19,69 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.impl.JCas;
+/**
+ * An atomic referent, e.g., a person, place, thing, event, idea. Updated by JCasGen Thu Apr 21
+ * 11:20:08 EDT 2005 XML source: descriptors/types/hutt.xml
+ *
+ * @generated
+ */
+public class Entity extends Referent {
+ public final static String INDEX = "kltEntityIndex";
+ public String toString() {
+ return toString("ENTITY");
+ }
-/** An atomic referent, e.g., a person, place, thing, event, idea.
- * Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
- * XML source: descriptors/types/hutt.xml
- * @generated */
-public class Entity extends Referent {
- public final static String INDEX = "kltEntityIndex";
- public String toString() {
- return toString("ENTITY");
- }
-
- /** @generated
- * @ordered
+ /**
+ * @generated
+ * @ordered
*/
public final static int typeIndexID = JCas.getNextIndex();
- /** @generated
- * @ordered
+
+ /**
+ * @generated
+ * @ordered
*/
public final static int type = typeIndexID;
- /** @generated */
- public int getTypeIndexID() {return typeIndexID;}
-
- /** Never called. Disable default constructor
- * @generated */
- protected Entity() {}
-
- /** Internal - constructor used by generator
- * @generated */
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected Entity() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
public Entity(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
-
+
/** @generated */
public Entity(JCas jcas) {
super(jcas);
- readObject();
- }
+ readObject();
+ }
- /** <!-- begin-user-doc -->
- * Write your own initialization here
- * <!-- end-user-doc -->
- @generated modifiable */
- private void readObject() {}
-
-}
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
-
+}
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation.java Wed Nov 22 09:10:04 2006
@@ -19,117 +19,161 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
+import org.apache.uima.jcas.cas.FSList;
import org.apache.uima.jcas.cas.TOP_Type;
-
+import org.apache.uima.jcas.impl.JCas;
import org.apache.uima.jcas.tcas.Annotation;
-import org.apache.uima.jcas.cas.FSList;
-
-/** An annotation of a span of text that refers to some entity
- * Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
- * XML source: descriptors/types/hutt.xml
- * @generated */
+/**
+ * An annotation of a span of text that refers to some entity Updated by JCasGen Thu Apr 21 11:20:08
+ * EDT 2005 XML source: descriptors/types/hutt.xml
+ *
+ * @generated
+ */
public class EntityAnnotation extends Annotation {
- public String toString() {
- return "(ENTITY-ANN \"" + getCoveredText() + "\" " + getComponentId() + " " + getClass().getName() + ":" + getMentionType() + ")";
- }
-
- /** @generated
- * @ordered
+ public String toString() {
+ return "(ENTITY-ANN \"" + getCoveredText() + "\" " + getComponentId() + " "
+ + getClass().getName() + ":" + getMentionType() + ")";
+ }
+
+ /**
+ * @generated
+ * @ordered
*/
public final static int typeIndexID = JCas.getNextIndex();
- /** @generated
- * @ordered
+
+ /**
+ * @generated
+ * @ordered
*/
public final static int type = typeIndexID;
- /** @generated */
- public int getTypeIndexID() {return typeIndexID;}
-
- /** Never called. Disable default constructor
- * @generated */
- protected EntityAnnotation() {}
-
- /** Internal - constructor used by generator
- * @generated */
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected EntityAnnotation() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
public EntityAnnotation(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
-
+
/** @generated */
public EntityAnnotation(JCas jcas) {
super(jcas);
- readObject();
- }
-
+ readObject();
+ }
+
public EntityAnnotation(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: links
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
+
+ // *--------------*
+ // * Feature: links
- /** getter for links - gets
- * @generated */
+ /**
+ * getter for links - gets
+ *
+ * @generated
+ */
public FSList getLinks() {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_links == null)
+ if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type) jcasType).casFeat_links == null)
JCas.throwFeatMissing("links", "org.apache.uima.klt.EntityAnnotation");
- return (FSList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_links)));}
-
- /** setter for links - sets
- * @generated */
+ return (FSList) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
+ ((EntityAnnotation_Type) jcasType).casFeatCode_links)));
+ }
+
+ /**
+ * setter for links - sets
+ *
+ * @generated
+ */
public void setLinks(FSList v) {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_links == null)
+ if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type) jcasType).casFeat_links == null)
JCas.throwFeatMissing("links", "org.apache.uima.klt.EntityAnnotation");
- jcasType.ll_cas.ll_setRefValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_links, jcasType.ll_cas.ll_getFSRef(v));}
-
-
- //*--------------*
- //* Feature: componentId
+ jcasType.ll_cas.ll_setRefValue(addr, ((EntityAnnotation_Type) jcasType).casFeatCode_links,
+ jcasType.ll_cas.ll_getFSRef(v));
+ }
- /** getter for componentId - gets
- * @generated */
+ // *--------------*
+ // * Feature: componentId
+
+ /**
+ * getter for componentId - gets
+ *
+ * @generated
+ */
public String getComponentId() {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_componentId == null)
+ if (EntityAnnotation_Type.featOkTst
+ && ((EntityAnnotation_Type) jcasType).casFeat_componentId == null)
JCas.throwFeatMissing("componentId", "org.apache.uima.klt.EntityAnnotation");
- return jcasType.ll_cas.ll_getStringValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_componentId);}
-
- /** setter for componentId - sets
- * @generated */
+ return jcasType.ll_cas.ll_getStringValue(addr,
+ ((EntityAnnotation_Type) jcasType).casFeatCode_componentId);
+ }
+
+ /**
+ * setter for componentId - sets
+ *
+ * @generated
+ */
public void setComponentId(String v) {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_componentId == null)
+ if (EntityAnnotation_Type.featOkTst
+ && ((EntityAnnotation_Type) jcasType).casFeat_componentId == null)
JCas.throwFeatMissing("componentId", "org.apache.uima.klt.EntityAnnotation");
- jcasType.ll_cas.ll_setStringValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_componentId, v);}
-
-
- //*--------------*
- //* Feature: mentionType
+ jcasType.ll_cas.ll_setStringValue(addr,
+ ((EntityAnnotation_Type) jcasType).casFeatCode_componentId, v);
+ }
+
+ // *--------------*
+ // * Feature: mentionType
- /** getter for mentionType - gets
- * @generated */
+ /**
+ * getter for mentionType - gets
+ *
+ * @generated
+ */
public String getMentionType() {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_mentionType == null)
+ if (EntityAnnotation_Type.featOkTst
+ && ((EntityAnnotation_Type) jcasType).casFeat_mentionType == null)
JCas.throwFeatMissing("mentionType", "org.apache.uima.klt.EntityAnnotation");
- return jcasType.ll_cas.ll_getStringValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_mentionType);}
-
- /** setter for mentionType - sets
- * @generated */
+ return jcasType.ll_cas.ll_getStringValue(addr,
+ ((EntityAnnotation_Type) jcasType).casFeatCode_mentionType);
+ }
+
+ /**
+ * setter for mentionType - sets
+ *
+ * @generated
+ */
public void setMentionType(String v) {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_mentionType == null)
+ if (EntityAnnotation_Type.featOkTst
+ && ((EntityAnnotation_Type) jcasType).casFeat_mentionType == null)
JCas.throwFeatMissing("mentionType", "org.apache.uima.klt.EntityAnnotation");
- jcasType.ll_cas.ll_setStringValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_mentionType, v);}
+ jcasType.ll_cas.ll_setStringValue(addr,
+ ((EntityAnnotation_Type) jcasType).casFeatCode_mentionType, v);
}
-
-
+}
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation_Type.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation_Type.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/EntityAnnotation_Type.java Wed Nov 22 09:10:04 2006
@@ -19,120 +19,136 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
-import org.apache.uima.cas.impl.CASImpl;
-import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.Feature;
import org.apache.uima.cas.FeatureStructure;
-import org.apache.uima.cas.impl.TypeImpl;
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.Feature;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.jcas.impl.JCas;
import org.apache.uima.jcas.tcas.Annotation_Type;
-/** An annotation of a span of text that refers to some entity
- * Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
- * @generated */
+/**
+ * An annotation of a span of text that refers to some entity Updated by JCasGen Thu Apr 21 11:20:08
+ * EDT 2005
+ *
+ * @generated
+ */
public class EntityAnnotation_Type extends Annotation_Type {
/** @generated */
- protected FSGenerator getFSGenerator() {return fsGenerator;}
+ 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 EntityAnnotation(addr, instanceOf_Type);
- instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
- return fs;
- }
- return fs;
- } else return new EntityAnnotation(addr, instanceOf_Type);
- }
- };
+ 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 EntityAnnotation(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new EntityAnnotation(addr, instanceOf_Type);
+ }
+ };
+
/** @generated */
public final static int typeIndexID = EntityAnnotation.typeIndexID;
- /** @generated
- @modifiable */
+
+ /**
+ * @generated
+ * @modifiable
+ */
public final static boolean featOkTst = JCas.getFeatOkTst("org.apache.uima.klt.EntityAnnotation");
-
+
/** @generated */
final Feature casFeat_links;
+
+ /** @generated */
+ final int casFeatCode_links;
+
/** @generated */
- final int casFeatCode_links;
- /** @generated */
public int getLinks(int addr) {
- if (featOkTst && casFeat_links == null)
+ if (featOkTst && casFeat_links == null)
JCas.throwFeatMissing("links", "org.apache.uima.klt.EntityAnnotation");
return ll_cas.ll_getRefValue(addr, casFeatCode_links);
}
- /** @generated */
+
+ /** @generated */
public void setLinks(int addr, int v) {
- if (featOkTst && casFeat_links == null)
+ if (featOkTst && casFeat_links == null)
JCas.throwFeatMissing("links", "org.apache.uima.klt.EntityAnnotation");
- ll_cas.ll_setRefValue(addr, casFeatCode_links, v);}
-
-
-
+ ll_cas.ll_setRefValue(addr, casFeatCode_links, v);
+ }
+
/** @generated */
final Feature casFeat_componentId;
+
+ /** @generated */
+ final int casFeatCode_componentId;
+
/** @generated */
- final int casFeatCode_componentId;
- /** @generated */
public String getComponentId(int addr) {
- if (featOkTst && casFeat_componentId == null)
+ if (featOkTst && casFeat_componentId == null)
JCas.throwFeatMissing("componentId", "org.apache.uima.klt.EntityAnnotation");
return ll_cas.ll_getStringValue(addr, casFeatCode_componentId);
}
- /** @generated */
+
+ /** @generated */
public void setComponentId(int addr, String v) {
- if (featOkTst && casFeat_componentId == null)
+ if (featOkTst && casFeat_componentId == null)
JCas.throwFeatMissing("componentId", "org.apache.uima.klt.EntityAnnotation");
- ll_cas.ll_setStringValue(addr, casFeatCode_componentId, v);}
-
-
-
+ ll_cas.ll_setStringValue(addr, casFeatCode_componentId, v);
+ }
+
/** @generated */
final Feature casFeat_mentionType;
+
+ /** @generated */
+ final int casFeatCode_mentionType;
+
/** @generated */
- final int casFeatCode_mentionType;
- /** @generated */
public String getMentionType(int addr) {
- if (featOkTst && casFeat_mentionType == null)
+ if (featOkTst && casFeat_mentionType == null)
JCas.throwFeatMissing("mentionType", "org.apache.uima.klt.EntityAnnotation");
return ll_cas.ll_getStringValue(addr, casFeatCode_mentionType);
}
- /** @generated */
+
+ /** @generated */
public void setMentionType(int addr, String v) {
- if (featOkTst && casFeat_mentionType == null)
+ if (featOkTst && casFeat_mentionType == null)
JCas.throwFeatMissing("mentionType", "org.apache.uima.klt.EntityAnnotation");
- ll_cas.ll_setStringValue(addr, casFeatCode_mentionType, v);}
-
-
-
+ ll_cas.ll_setStringValue(addr, casFeatCode_mentionType, v);
+ }
- /** initialize variables to correspond with Cas Type and Features
- * @generated */
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
public EntityAnnotation_Type(JCas jcas, Type casType) {
super(jcas, casType);
- casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
-
casFeat_links = jcas.getRequiredFeatureDE(casType, "links", "uima.cas.FSList", featOkTst);
- casFeatCode_links = (null == casFeat_links) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_links).getCode();
+ casFeatCode_links = (null == casFeat_links) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_links).getCode();
-
- casFeat_componentId = jcas.getRequiredFeatureDE(casType, "componentId", "uima.cas.String", featOkTst);
- casFeatCode_componentId = (null == casFeat_componentId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_componentId).getCode();
-
-
- casFeat_mentionType = jcas.getRequiredFeatureDE(casType, "mentionType", "uima.cas.String", featOkTst);
- casFeatCode_mentionType = (null == casFeat_mentionType) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_mentionType).getCode();
+ casFeat_componentId = jcas.getRequiredFeatureDE(casType, "componentId", "uima.cas.String",
+ featOkTst);
+ casFeatCode_componentId = (null == casFeat_componentId) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_componentId).getCode();
+
+ casFeat_mentionType = jcas.getRequiredFeatureDE(casType, "mentionType", "uima.cas.String",
+ featOkTst);
+ casFeatCode_mentionType = (null == casFeat_mentionType) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_mentionType).getCode();
}
}
-
-
-
-
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity_Type.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity_Type.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Entity_Type.java Wed Nov 22 09:10:04 2006
@@ -19,51 +19,59 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
+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.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
-import org.apache.uima.cas.Type;
+import org.apache.uima.jcas.impl.JCas;
-/** An atomic referent, e.g., a person, place, thing, event, idea.
- * Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
- * @generated */
+/**
+ * An atomic referent, e.g., a person, place, thing, event, idea. Updated by JCasGen Thu Apr 21
+ * 11:20:08 EDT 2005
+ *
+ * @generated
+ */
public class Entity_Type extends Referent_Type {
/** @generated */
- protected FSGenerator getFSGenerator() {return fsGenerator;}
+ 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 Entity(addr, instanceOf_Type);
- instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
- return fs;
- }
- return fs;
- } else return new Entity(addr, instanceOf_Type);
- }
- };
+ 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 Entity(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new Entity(addr, instanceOf_Type);
+ }
+ };
+
/** @generated */
public final static int typeIndexID = Entity.typeIndexID;
- /** @generated
- @modifiable */
- public final static boolean featOkTst = JCas.getFeatOkTst("org.apache.uima.klt.Entity");
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCas.getFeatOkTst("org.apache.uima.klt.Entity");
- /** initialize variables to correspond with Cas Type and Features
- * @generated */
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
public Entity_Type(JCas jcas, Type casType) {
super(jcas, casType);
- casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
}
}
-
-
-
-
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence.java Wed Nov 22 09:10:04 2006
@@ -19,50 +19,62 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.impl.JCas;
-
-
-/**
- * Updated by JCasGen Mon Apr 18 17:02:17 PDT 2005
- * XML source: descriptors/types/hutt.xml
- * @generated */
+/**
+ * Updated by JCasGen Mon Apr 18 17:02:17 PDT 2005 XML source: descriptors/types/hutt.xml
+ *
+ * @generated
+ */
public class HasEvidence extends Link {
- /** @generated
- * @ordered
+ /**
+ * @generated
+ * @ordered
*/
public final static int typeIndexID = JCas.getNextIndex();
- /** @generated
- * @ordered
+
+ /**
+ * @generated
+ * @ordered
*/
public final static int type = typeIndexID;
- /** @generated */
- public int getTypeIndexID() {return typeIndexID;}
-
- /** Never called. Disable default constructor
- * @generated */
- protected HasEvidence() {}
-
- /** Internal - constructor used by generator
- * @generated */
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected HasEvidence() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
public HasEvidence(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
-
+
/** @generated */
public HasEvidence(JCas jcas) {
super(jcas);
- readObject();
- }
+ readObject();
+ }
- /** <!-- begin-user-doc -->
- * Write your own initialization here
- * <!-- end-user-doc -->
- @generated modifiable */
- private void readObject() {}
-
-}
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
-
+}
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence_Type.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence_Type.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasEvidence_Type.java Wed Nov 22 09:10:04 2006
@@ -19,51 +19,58 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
+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.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
-import org.apache.uima.cas.Type;
+import org.apache.uima.jcas.impl.JCas;
-/**
+/**
* Updated by JCasGen Mon Apr 18 17:02:17 PDT 2005
- * @generated */
+ *
+ * @generated
+ */
public class HasEvidence_Type extends Link_Type {
/** @generated */
- protected FSGenerator getFSGenerator() {return fsGenerator;}
+ 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 HasEvidence(addr, instanceOf_Type);
- instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
- return fs;
- }
- return fs;
- } else return new HasEvidence(addr, instanceOf_Type);
- }
- };
+ 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 HasEvidence(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new HasEvidence(addr, instanceOf_Type);
+ }
+ };
+
/** @generated */
public final static int typeIndexID = HasEvidence.typeIndexID;
- /** @generated
- @modifiable */
- public final static boolean featOkTst = JCas.getFeatOkTst("org.apache.uima.klt.HasEvidence");
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCas.getFeatOkTst("org.apache.uima.klt.HasEvidence");
- /** initialize variables to correspond with Cas Type and Features
- * @generated */
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
public HasEvidence_Type(JCas jcas, Type casType) {
super(jcas, casType);
- casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
}
}
-
-
-
-
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence.java Wed Nov 22 09:10:04 2006
@@ -19,50 +19,64 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.impl.JCas;
-
-
-/** A link from an Entity to an EntityAnnotation or from a Relation to a RelationAnnotation; indicates that the latter covers text that refers to the former
- * Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
- * XML source: descriptors/types/hutt.xml
- * @generated */
+/**
+ * A link from an Entity to an EntityAnnotation or from a Relation to a RelationAnnotation;
+ * indicates that the latter covers text that refers to the former Updated by JCasGen Thu Apr 21
+ * 11:20:08 EDT 2005 XML source: descriptors/types/hutt.xml
+ *
+ * @generated
+ */
public class HasOccurrence extends Link {
- /** @generated
- * @ordered
+ /**
+ * @generated
+ * @ordered
*/
public final static int typeIndexID = JCas.getNextIndex();
- /** @generated
- * @ordered
+
+ /**
+ * @generated
+ * @ordered
*/
public final static int type = typeIndexID;
- /** @generated */
- public int getTypeIndexID() {return typeIndexID;}
-
- /** Never called. Disable default constructor
- * @generated */
- protected HasOccurrence() {}
-
- /** Internal - constructor used by generator
- * @generated */
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected HasOccurrence() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
public HasOccurrence(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
-
+
/** @generated */
public HasOccurrence(JCas jcas) {
super(jcas);
- readObject();
- }
+ readObject();
+ }
- /** <!-- begin-user-doc -->
- * Write your own initialization here
- * <!-- end-user-doc -->
- @generated modifiable */
- private void readObject() {}
-
-}
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
-
+}
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence_Type.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence_Type.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/HasOccurrence_Type.java Wed Nov 22 09:10:04 2006
@@ -19,51 +19,60 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
+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.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
-import org.apache.uima.cas.Type;
+import org.apache.uima.jcas.impl.JCas;
-/** A link from an Entity to an EntityAnnotation or from a Relation to a RelationAnnotation; indicates that the latter covers text that refers to the former
- * Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
- * @generated */
+/**
+ * A link from an Entity to an EntityAnnotation or from a Relation to a RelationAnnotation;
+ * indicates that the latter covers text that refers to the former Updated by JCasGen Thu Apr 21
+ * 11:20:08 EDT 2005
+ *
+ * @generated
+ */
public class HasOccurrence_Type extends Link_Type {
/** @generated */
- protected FSGenerator getFSGenerator() {return fsGenerator;}
+ 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 HasOccurrence(addr, instanceOf_Type);
- instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
- return fs;
- }
- return fs;
- } else return new HasOccurrence(addr, instanceOf_Type);
- }
- };
+ 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 HasOccurrence(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new HasOccurrence(addr, instanceOf_Type);
+ }
+ };
+
/** @generated */
public final static int typeIndexID = HasOccurrence.typeIndexID;
- /** @generated
- @modifiable */
- public final static boolean featOkTst = JCas.getFeatOkTst("org.apache.uima.klt.HasOccurrence");
+ /**
+ * @generated
+ * @modifiable
+ */
+ public final static boolean featOkTst = JCas.getFeatOkTst("org.apache.uima.klt.HasOccurrence");
- /** initialize variables to correspond with Cas Type and Features
- * @generated */
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
public HasOccurrence_Type(JCas jcas, Type casType) {
super(jcas, casType);
- casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
}
}
-
-
-
-
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link.java Wed Nov 22 09:10:04 2006
@@ -20,241 +20,278 @@
package org.apache.uima.klt;
import org.apache.uima.cas.CASException;
-import org.apache.uima.jcas.impl.JCas;
import org.apache.uima.jcas.cas.EmptyFSList;
import org.apache.uima.jcas.cas.FSList;
import org.apache.uima.jcas.cas.NonEmptyFSList;
+import org.apache.uima.jcas.cas.TOP;
import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.impl.JCas;
-import org.apache.uima.jcas.cas.TOP;
+/**
+ * A directional link between two instances Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005 XML
+ * source: descriptors/types/hutt.xml
+ *
+ * @generated
+ */
+public class Link extends TOP {
+ protected static java.util.LinkedList getLinks(FSList aLinks, Class aClass) {
+ java.util.LinkedList retval = new java.util.LinkedList();
+ if (aLinks != null)
+ while (aLinks instanceof NonEmptyFSList) {
+ NonEmptyFSList nLinks = (NonEmptyFSList) aLinks;
+ Link link = (Link) nLinks.getHead();
+ if (aClass.isInstance(link))
+ retval.add(link);
+ aLinks = nLinks.getTail();
+ }
+ return retval;
+ }
+ public static java.util.LinkedList getFromValues(FSList aLinks, Class aClass) {
+ java.util.LinkedList retval = new java.util.LinkedList();
+ if (aLinks != null)
+ while (aLinks instanceof NonEmptyFSList) {
+ NonEmptyFSList nLinks = (NonEmptyFSList) aLinks;
+ Link link = (Link) nLinks.getHead();
+ if (aClass.isInstance(link))
+ retval.add(link.getFrom());
+ aLinks = nLinks.getTail();
+ }
+ return retval;
+ }
-/** A directional link between two instances
- * Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
- * XML source: descriptors/types/hutt.xml
- * @generated */
-public class Link extends TOP {
- protected static java.util.LinkedList getLinks(
- FSList aLinks,
- Class aClass) {
- java.util.LinkedList retval = new java.util.LinkedList();
- if (aLinks != null)
- while (aLinks instanceof NonEmptyFSList) {
- NonEmptyFSList nLinks = (NonEmptyFSList)aLinks;
- Link link = (Link) nLinks.getHead();
- if (aClass.isInstance(link))
- retval.add(link);
- aLinks = nLinks.getTail();
- }
- return retval;
- }
- public static java.util.LinkedList getFromValues(
- FSList aLinks,
- Class aClass) {
- java.util.LinkedList retval = new java.util.LinkedList();
- if (aLinks != null)
- while (aLinks instanceof NonEmptyFSList) {
- NonEmptyFSList nLinks = (NonEmptyFSList)aLinks;
- Link link = (Link) nLinks.getHead();
- if (aClass.isInstance(link))
- retval.add(link.getFrom());
- aLinks = nLinks.getTail();
- }
- return retval;
- }
- public static java.util.LinkedList getToValues(
- FSList aLinks,
- Class aClass) {
- java.util.LinkedList retval = new java.util.LinkedList();
- if (aLinks != null)
- while (aLinks instanceof NonEmptyFSList) {
- NonEmptyFSList nLinks = (NonEmptyFSList)aLinks;
- Link link = (Link) nLinks.getHead();
- if (aClass.isInstance(link))
- retval.add(link.getTo());
- aLinks = nLinks.getTail();
- }
- return retval;
- }
- public static FSList getLinks(TOP obj) {
- if (obj instanceof EntityAnnotation)
- return ((EntityAnnotation) obj).getLinks();
- else if (obj instanceof RelationAnnotation)
- return ((RelationAnnotation) obj).getLinks();
- else if (obj instanceof Referent)
- return ((Referent) obj).getLinks();
- else
- return null;
- }
- public static void setLinks(TOP obj, FSList links) {
- if (obj instanceof EntityAnnotation)
- ((EntityAnnotation) obj).setLinks(links);
- else if (obj instanceof RelationAnnotation)
- ((RelationAnnotation) obj).setLinks(links);
- else if (obj instanceof Referent)
- ((Referent) obj).setLinks(links);
- }
- public static Link addLink(
- TOP aFrom,
- TOP aTo,
- Class linkClass,
- String aComponentId) {
- Link newLink = null;
- try {
- JCas jcas = aFrom.getCAS().getJCas();
- java.lang.reflect.Constructor linkConstructor =
- linkClass.getConstructor(new Class[] { JCas.class });
- newLink =
- (Link) linkConstructor.newInstance(new Object[] { jcas });
- } catch (Exception e) {
- }
- if (newLink != null) {
- newLink.setFrom(aFrom);
- newLink.setTo(aTo);
- newLink.setComponentId(aComponentId);
- addLink(aFrom, newLink);
- addLink(aTo, newLink);
- }
- return newLink;
- }
+ public static java.util.LinkedList getToValues(FSList aLinks, Class aClass) {
+ java.util.LinkedList retval = new java.util.LinkedList();
+ if (aLinks != null)
+ while (aLinks instanceof NonEmptyFSList) {
+ NonEmptyFSList nLinks = (NonEmptyFSList) aLinks;
+ Link link = (Link) nLinks.getHead();
+ if (aClass.isInstance(link))
+ retval.add(link.getTo());
+ aLinks = nLinks.getTail();
+ }
+ return retval;
+ }
- public static void addLink(TOP obj, Link link) {
- JCas jcas = null;
- NonEmptyFSList newLinks = null;
- try {
- jcas = link.getCAS().getJCas();
- newLinks = new NonEmptyFSList(jcas);
- } catch (CASException e) {
- return;
- }
- FSList oldLinks = getLinks(obj);
- newLinks.setHead(link);
- if ((oldLinks == null) || (oldLinks instanceof EmptyFSList)) {
- setLinks(obj, newLinks);
- newLinks.setTail(new EmptyFSList(jcas));
- } else {
- NonEmptyFSList currentLinks = (NonEmptyFSList) oldLinks;
- while (!(currentLinks.getTail() instanceof EmptyFSList))
- currentLinks = (NonEmptyFSList) currentLinks.getTail();
- newLinks.setTail(currentLinks.getTail());
- currentLinks.setTail(newLinks);
- }
- }
- /**
- * Destructive mechanism for removing a link from an FSList of links.
- * @param obj The object containing the link
- * @param link The link
- */
- public static void removeLink(TOP obj, Link link) {
- FSList list = Link.getLinks(obj);
- if (list instanceof NonEmptyFSList) {
- NonEmptyFSList pointer = (NonEmptyFSList) list;
- if (link.equals(pointer.getHead())) {
- Link.setLinks(obj, pointer.getTail());
- return;
- }
- while (pointer.getTail() instanceof NonEmptyFSList) {
- NonEmptyFSList nextPointer = (NonEmptyFSList)pointer.getTail();
- if (nextPointer.getHead().equals(link)) {
- pointer.setTail(nextPointer.getTail());
- return;
- }
- pointer = nextPointer;
- }
- }
- }
- public String toString() {
- return "(LINK: " + getFrom() + ", " + getTo() + ")";
+ public static FSList getLinks(TOP obj) {
+ if (obj instanceof EntityAnnotation)
+ return ((EntityAnnotation) obj).getLinks();
+ else if (obj instanceof RelationAnnotation)
+ return ((RelationAnnotation) obj).getLinks();
+ else if (obj instanceof Referent)
+ return ((Referent) obj).getLinks();
+ else
+ return null;
+ }
+
+ public static void setLinks(TOP obj, FSList links) {
+ if (obj instanceof EntityAnnotation)
+ ((EntityAnnotation) obj).setLinks(links);
+ else if (obj instanceof RelationAnnotation)
+ ((RelationAnnotation) obj).setLinks(links);
+ else if (obj instanceof Referent)
+ ((Referent) obj).setLinks(links);
+ }
+
+ public static Link addLink(TOP aFrom, TOP aTo, Class linkClass, String aComponentId) {
+ Link newLink = null;
+ try {
+ JCas jcas = aFrom.getCAS().getJCas();
+ java.lang.reflect.Constructor linkConstructor = linkClass
+ .getConstructor(new Class[] { JCas.class });
+ newLink = (Link) linkConstructor.newInstance(new Object[] { jcas });
+ } catch (Exception e) {
+ }
+ if (newLink != null) {
+ newLink.setFrom(aFrom);
+ newLink.setTo(aTo);
+ newLink.setComponentId(aComponentId);
+ addLink(aFrom, newLink);
+ addLink(aTo, newLink);
+ }
+ return newLink;
+ }
+
+ public static void addLink(TOP obj, Link link) {
+ JCas jcas = null;
+ NonEmptyFSList newLinks = null;
+ try {
+ jcas = link.getCAS().getJCas();
+ newLinks = new NonEmptyFSList(jcas);
+ } catch (CASException e) {
+ return;
+ }
+ FSList oldLinks = getLinks(obj);
+ newLinks.setHead(link);
+ if ((oldLinks == null) || (oldLinks instanceof EmptyFSList)) {
+ setLinks(obj, newLinks);
+ newLinks.setTail(new EmptyFSList(jcas));
+ } else {
+ NonEmptyFSList currentLinks = (NonEmptyFSList) oldLinks;
+ while (!(currentLinks.getTail() instanceof EmptyFSList))
+ currentLinks = (NonEmptyFSList) currentLinks.getTail();
+ newLinks.setTail(currentLinks.getTail());
+ currentLinks.setTail(newLinks);
+ }
+ }
+
+ /**
+ * Destructive mechanism for removing a link from an FSList of links.
+ *
+ * @param obj
+ * The object containing the link
+ * @param link
+ * The link
+ */
+ public static void removeLink(TOP obj, Link link) {
+ FSList list = Link.getLinks(obj);
+ if (list instanceof NonEmptyFSList) {
+ NonEmptyFSList pointer = (NonEmptyFSList) list;
+ if (link.equals(pointer.getHead())) {
+ Link.setLinks(obj, pointer.getTail());
+ return;
+ }
+ while (pointer.getTail() instanceof NonEmptyFSList) {
+ NonEmptyFSList nextPointer = (NonEmptyFSList) pointer.getTail();
+ if (nextPointer.getHead().equals(link)) {
+ pointer.setTail(nextPointer.getTail());
+ return;
}
-
- /** @generated
- * @ordered
+ pointer = nextPointer;
+ }
+ }
+ }
+
+ public String toString() {
+ return "(LINK: " + getFrom() + ", " + getTo() + ")";
+ }
+
+ /**
+ * @generated
+ * @ordered
*/
public final static int typeIndexID = JCas.getNextIndex();
- /** @generated
- * @ordered
+
+ /**
+ * @generated
+ * @ordered
*/
public final static int type = typeIndexID;
- /** @generated */
- public int getTypeIndexID() {return typeIndexID;}
-
- /** Never called. Disable default constructor
- * @generated */
- protected Link() {}
-
- /** Internal - constructor used by generator
- * @generated */
+
+ /** @generated */
+ public int getTypeIndexID() {
+ return typeIndexID;
+ }
+
+ /**
+ * Never called. Disable default constructor
+ *
+ * @generated
+ */
+ protected Link() {
+ }
+
+ /**
+ * Internal - constructor used by generator
+ *
+ * @generated
+ */
public Link(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
-
+
/** @generated */
public Link(JCas jcas) {
super(jcas);
- readObject();
- }
+ readObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+ *
+ * @generated modifiable
+ */
+ private void readObject() {
+ }
- /** <!-- begin-user-doc -->
- * Write your own initialization here
- * <!-- end-user-doc -->
- @generated modifiable */
- private void readObject() {}
-
-
-
- //*--------------*
- //* Feature: from
+ // *--------------*
+ // * Feature: from
- /** getter for from - gets
- * @generated */
+ /**
+ * getter for from - gets
+ *
+ * @generated
+ */
public TOP getFrom() {
- if (Link_Type.featOkTst && ((Link_Type)jcasType).casFeat_from == null)
+ if (Link_Type.featOkTst && ((Link_Type) jcasType).casFeat_from == null)
JCas.throwFeatMissing("from", "org.apache.uima.klt.Link");
- return (TOP)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Link_Type)jcasType).casFeatCode_from)));}
-
- /** setter for from - sets
- * @generated */
+ return (TOP) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
+ ((Link_Type) jcasType).casFeatCode_from)));
+ }
+
+ /**
+ * setter for from - sets
+ *
+ * @generated
+ */
public void setFrom(TOP v) {
- if (Link_Type.featOkTst && ((Link_Type)jcasType).casFeat_from == null)
+ if (Link_Type.featOkTst && ((Link_Type) jcasType).casFeat_from == null)
JCas.throwFeatMissing("from", "org.apache.uima.klt.Link");
- jcasType.ll_cas.ll_setRefValue(addr, ((Link_Type)jcasType).casFeatCode_from, jcasType.ll_cas.ll_getFSRef(v));}
-
-
- //*--------------*
- //* Feature: to
+ jcasType.ll_cas.ll_setRefValue(addr, ((Link_Type) jcasType).casFeatCode_from, jcasType.ll_cas
+ .ll_getFSRef(v));
+ }
+
+ // *--------------*
+ // * Feature: to
- /** getter for to - gets
- * @generated */
+ /**
+ * getter for to - gets
+ *
+ * @generated
+ */
public TOP getTo() {
- if (Link_Type.featOkTst && ((Link_Type)jcasType).casFeat_to == null)
+ if (Link_Type.featOkTst && ((Link_Type) jcasType).casFeat_to == null)
JCas.throwFeatMissing("to", "org.apache.uima.klt.Link");
- return (TOP)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Link_Type)jcasType).casFeatCode_to)));}
-
- /** setter for to - sets
- * @generated */
+ return (TOP) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
+ ((Link_Type) jcasType).casFeatCode_to)));
+ }
+
+ /**
+ * setter for to - sets
+ *
+ * @generated
+ */
public void setTo(TOP v) {
- if (Link_Type.featOkTst && ((Link_Type)jcasType).casFeat_to == null)
+ if (Link_Type.featOkTst && ((Link_Type) jcasType).casFeat_to == null)
JCas.throwFeatMissing("to", "org.apache.uima.klt.Link");
- jcasType.ll_cas.ll_setRefValue(addr, ((Link_Type)jcasType).casFeatCode_to, jcasType.ll_cas.ll_getFSRef(v));}
- //*--------------*
- //* Feature: componentId
+ jcasType.ll_cas.ll_setRefValue(addr, ((Link_Type) jcasType).casFeatCode_to, jcasType.ll_cas
+ .ll_getFSRef(v));
+ }
+
+ // *--------------*
+ // * Feature: componentId
- /** getter for componentId - gets
- * @generated */
+ /**
+ * getter for componentId - gets
+ *
+ * @generated
+ */
public String getComponentId() {
- if (Link_Type.featOkTst && ((Link_Type)jcasType).casFeat_componentId == null)
+ if (Link_Type.featOkTst && ((Link_Type) jcasType).casFeat_componentId == null)
JCas.throwFeatMissing("componentId", "org.apache.uima.klt.Link");
- return jcasType.ll_cas.ll_getStringValue(addr, ((Link_Type)jcasType).casFeatCode_componentId);}
-
- /** setter for componentId - sets The unique ID of the component that created this instance
- * @generated */
+ return jcasType.ll_cas.ll_getStringValue(addr, ((Link_Type) jcasType).casFeatCode_componentId);
+ }
+
+ /**
+ * setter for componentId - sets The unique ID of the component that created this instance
+ *
+ * @generated
+ */
public void setComponentId(String v) {
- if (Link_Type.featOkTst && ((Link_Type)jcasType).casFeat_componentId == null)
+ if (Link_Type.featOkTst && ((Link_Type) jcasType).casFeat_componentId == null)
JCas.throwFeatMissing("componentId", "org.apache.uima.klt.Link");
- jcasType.ll_cas.ll_setStringValue(addr, ((Link_Type)jcasType).casFeatCode_componentId, v);}
-
-
-}
+ jcasType.ll_cas.ll_setStringValue(addr, ((Link_Type) jcasType).casFeatCode_componentId, v);
+ }
-
+}
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link_Type.java?view=diff&rev=478244&r1=478243&r2=478244
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link_Type.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/klt/Link_Type.java Wed Nov 22 09:10:04 2006
@@ -19,120 +19,134 @@
package org.apache.uima.klt;
-import org.apache.uima.jcas.impl.JCas;
-import org.apache.uima.cas.impl.CASImpl;
-import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.Feature;
import org.apache.uima.cas.FeatureStructure;
-import org.apache.uima.cas.impl.TypeImpl;
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.Feature;
+import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.impl.JCas;
-/** A directional link between two instances
- * Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
- * @generated */
+/**
+ * A directional link between two instances Updated by JCasGen Thu Apr 21 11:20:08 EDT 2005
+ *
+ * @generated
+ */
public class Link_Type extends TOP_Type {
/** @generated */
- protected FSGenerator getFSGenerator() {return fsGenerator;}
+ 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 Link(addr, instanceOf_Type);
- instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
- return fs;
- }
- return fs;
- } else return new Link(addr, instanceOf_Type);
- }
- };
+ 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 Link(addr, instanceOf_Type);
+ instanceOf_Type.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else
+ return new Link(addr, instanceOf_Type);
+ }
+ };
+
/** @generated */
public final static int typeIndexID = Link.typeIndexID;
- /** @generated
- @modifiable */
+
+ /**
+ * @generated
+ * @modifiable
+ */
public final static boolean featOkTst = JCas.getFeatOkTst("org.apache.uima.klt.Link");
-
+
/** @generated */
final Feature casFeat_from;
+
+ /** @generated */
+ final int casFeatCode_from;
+
/** @generated */
- final int casFeatCode_from;
- /** @generated */
public int getFrom(int addr) {
- if (featOkTst && casFeat_from == null)
+ if (featOkTst && casFeat_from == null)
JCas.throwFeatMissing("from", "org.apache.uima.klt.Link");
return ll_cas.ll_getRefValue(addr, casFeatCode_from);
}
- /** @generated */
+
+ /** @generated */
public void setFrom(int addr, int v) {
- if (featOkTst && casFeat_from == null)
+ if (featOkTst && casFeat_from == null)
JCas.throwFeatMissing("from", "org.apache.uima.klt.Link");
- ll_cas.ll_setRefValue(addr, casFeatCode_from, v);}
-
-
-
+ ll_cas.ll_setRefValue(addr, casFeatCode_from, v);
+ }
+
/** @generated */
final Feature casFeat_to;
+
+ /** @generated */
+ final int casFeatCode_to;
+
/** @generated */
- final int casFeatCode_to;
- /** @generated */
public int getTo(int addr) {
- if (featOkTst && casFeat_to == null)
+ if (featOkTst && casFeat_to == null)
JCas.throwFeatMissing("to", "org.apache.uima.klt.Link");
return ll_cas.ll_getRefValue(addr, casFeatCode_to);
}
- /** @generated */
+
+ /** @generated */
public void setTo(int addr, int v) {
- if (featOkTst && casFeat_to == null)
+ if (featOkTst && casFeat_to == null)
JCas.throwFeatMissing("to", "org.apache.uima.klt.Link");
- ll_cas.ll_setRefValue(addr, casFeatCode_to, v);}
-
-
-
+ ll_cas.ll_setRefValue(addr, casFeatCode_to, v);
+ }
/** @generated */
final Feature casFeat_componentId;
+
+ /** @generated */
+ final int casFeatCode_componentId;
+
/** @generated */
- final int casFeatCode_componentId;
- /** @generated */
public String getComponentId(int addr) {
- if (featOkTst && casFeat_componentId == null)
+ if (featOkTst && casFeat_componentId == null)
JCas.throwFeatMissing("componentId", "org.apache.uima.klt.Link");
return ll_cas.ll_getStringValue(addr, casFeatCode_componentId);
}
- /** @generated */
+
+ /** @generated */
public void setComponentId(int addr, String v) {
- if (featOkTst && casFeat_componentId == null)
+ if (featOkTst && casFeat_componentId == null)
JCas.throwFeatMissing("componentId", "org.apache.uima.klt.Link");
- ll_cas.ll_setStringValue(addr, casFeatCode_componentId, v);}
-
-
-
- /** initialize variables to correspond with Cas Type and Features
- * @generated */
+ ll_cas.ll_setStringValue(addr, casFeatCode_componentId, v);
+ }
+
+ /**
+ * initialize variables to correspond with Cas Type and Features
+ *
+ * @generated
+ */
public Link_Type(JCas jcas, Type casType) {
super(jcas, casType);
- casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
-
- casFeat_componentId = jcas.getRequiredFeatureDE(casType, "componentId", "uima.cas.String", featOkTst);
- casFeatCode_componentId = (null == casFeat_componentId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_componentId).getCode();
+ casFeat_componentId = jcas.getRequiredFeatureDE(casType, "componentId", "uima.cas.String",
+ featOkTst);
+ casFeatCode_componentId = (null == casFeat_componentId) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_componentId).getCode();
-
casFeat_from = jcas.getRequiredFeatureDE(casType, "from", "uima.cas.TOP", featOkTst);
- casFeatCode_from = (null == casFeat_from) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_from).getCode();
+ casFeatCode_from = (null == casFeat_from) ? JCas.INVALID_FEATURE_CODE
+ : ((FeatureImpl) casFeat_from).getCode();
-
casFeat_to = jcas.getRequiredFeatureDE(casType, "to", "uima.cas.TOP", featOkTst);
- casFeatCode_to = (null == casFeat_to) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_to).getCode();
+ casFeatCode_to = (null == casFeat_to) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_to)
+ .getCode();
}
}
-
-
-
-