org.apache.uima.tools.cfe
Class CommonFeatureMatcher

java.lang.Object
  extended by org.apache.uima.tools.cfe.CommonFeatureMatcher
Direct Known Subclasses:
RRMFeatureMatcher, UIMAFeatureMatcher

public abstract class CommonFeatureMatcher
extends Object


Field Summary
static int CONSTANT_ANYENCLOSED
           
static int CONSTANT_INGORE
           
static int CONSTANT_INSIDEINSIDE
           
static int CONSTANT_INSIDERIGHT
           
static int CONSTANT_LEFTINSIDE
           
static int CONSTANT_LEFTLEFT
           
static int CONSTANT_LEFTRIGHT
           
static int CONSTANT_RIGHTRIGHT
           
static int CONSTANT_STARTSINSIDE
           
static int CONSTANT_STARTSLEFT
           
static int CONSTANT_STARTSRIGHT
           
 String m_fieldSeparator
           
 boolean m_isAnnotationName
           
 boolean m_isFeatureName
           
 boolean m_isTargetId
           
 String[] m_valueSeparators
           
static String PARAM_CONFIGURATIONFILE
           
static String PARAM_INCLUDEANNOTATIONNAME
           
static String PARAM_INCLUDEFEATURENAME
           
static String PARAM_INCLUDETARGETID
           
static String PARAM_XMLBEANSPARSER
           
 
Method Summary
static String getDocumentId(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation doc_ann)
           
 void initialize(String configfile, boolean isXMLBeansParser)
           
protected static String make_image_position(MatchedAnnotationDescriptor mad)
           
protected  String make_image(MatchedAnnotationDescriptor mad, org.apache.uima.jcas.tcas.Annotation trg)
           
protected abstract  void processFeatureGroup(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation trg, String group_label, Collection<MatchedAnnotationDescriptor> features)
           
 void processJCas(org.apache.uima.jcas.JCas jcas)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_isAnnotationName

public final boolean m_isAnnotationName

m_isFeatureName

public final boolean m_isFeatureName

m_isTargetId

public final boolean m_isTargetId

m_fieldSeparator

public final String m_fieldSeparator

m_valueSeparators

public final String[] m_valueSeparators

PARAM_CONFIGURATIONFILE

public static final String PARAM_CONFIGURATIONFILE
See Also:
Constant Field Values

PARAM_INCLUDETARGETID

public static final String PARAM_INCLUDETARGETID
See Also:
Constant Field Values

PARAM_INCLUDEANNOTATIONNAME

public static final String PARAM_INCLUDEANNOTATIONNAME
See Also:
Constant Field Values

PARAM_INCLUDEFEATURENAME

public static final String PARAM_INCLUDEFEATURENAME
See Also:
Constant Field Values

PARAM_XMLBEANSPARSER

public static final String PARAM_XMLBEANSPARSER
See Also:
Constant Field Values

CONSTANT_INGORE

public static final int CONSTANT_INGORE
See Also:
Constant Field Values

CONSTANT_LEFTLEFT

public static final int CONSTANT_LEFTLEFT
See Also:
Constant Field Values

CONSTANT_LEFTINSIDE

public static final int CONSTANT_LEFTINSIDE
See Also:
Constant Field Values

CONSTANT_LEFTRIGHT

public static final int CONSTANT_LEFTRIGHT
See Also:
Constant Field Values

CONSTANT_INSIDEINSIDE

public static final int CONSTANT_INSIDEINSIDE
See Also:
Constant Field Values

CONSTANT_INSIDERIGHT

public static final int CONSTANT_INSIDERIGHT
See Also:
Constant Field Values

CONSTANT_RIGHTRIGHT

public static final int CONSTANT_RIGHTRIGHT
See Also:
Constant Field Values

CONSTANT_STARTSLEFT

public static final int CONSTANT_STARTSLEFT
See Also:
Constant Field Values

CONSTANT_STARTSINSIDE

public static final int CONSTANT_STARTSINSIDE
See Also:
Constant Field Values

CONSTANT_STARTSRIGHT

public static final int CONSTANT_STARTSRIGHT
See Also:
Constant Field Values

CONSTANT_ANYENCLOSED

public static final int CONSTANT_ANYENCLOSED
See Also:
Constant Field Values
Method Detail

processFeatureGroup

protected abstract void processFeatureGroup(org.apache.uima.jcas.JCas jcas,
                                            org.apache.uima.jcas.tcas.Annotation trg,
                                            String group_label,
                                            Collection<MatchedAnnotationDescriptor> features)
                                     throws IllegalArgumentException,
                                            IllegalAccessException,
                                            InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

initialize

public void initialize(String configfile,
                       boolean isXMLBeansParser)
                throws SecurityException,
                       ClassNotFoundException,
                       NoSuchMethodException,
                       URISyntaxException,
                       IOException,
                       org.apache.xmlbeans.XmlException
Throws:
SecurityException
ClassNotFoundException
NoSuchMethodException
URISyntaxException
IOException
org.apache.xmlbeans.XmlException

make_image_position

protected static String make_image_position(MatchedAnnotationDescriptor mad)

make_image

protected String make_image(MatchedAnnotationDescriptor mad,
                            org.apache.uima.jcas.tcas.Annotation trg)
                     throws IllegalArgumentException,
                            IllegalAccessException,
                            InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getDocumentId

public static String getDocumentId(org.apache.uima.jcas.JCas jcas,
                                   org.apache.uima.jcas.tcas.Annotation doc_ann)

processJCas

public void processJCas(org.apache.uima.jcas.JCas jcas)
                 throws IllegalArgumentException,
                        IllegalAccessException,
                        InvocationTargetException,
                        ClassNotFoundException,
                        SecurityException,
                        NoSuchFieldException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException
ClassNotFoundException
SecurityException
NoSuchFieldException


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.