Author: schor Date: Wed Dec 21 14:35:06 2016 New Revision: 1775443 URL: http://svn.apache.org/viewvc?rev=1775443&view=rev Log: [UIMA-2147] add static fields for type and feature names for built-ins
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation.java Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation.java URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation.java?rev=1775443&r1=1775442&r2=1775443&view=diff ============================================================================== --- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation.java (original) +++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation.java Wed Dec 21 14:35:06 2016 @@ -35,6 +35,11 @@ import org.apache.uima.jcas.cas.Annotati */ public class Annotation extends AnnotationBase implements AnnotationFS { + /* public static string for use where constants are needed, e.g. in some Java Annotations */ + public final static String _TypeName = "org.apache.uima.jcas.cas.Annotation"; + public final static String _FeatName_begin = "begin"; + public final static String _FeatName_end = "end"; + public final static int typeIndexID = JCasRegistry.register(Annotation.class); public final static int type = typeIndexID;