it.uniroma2.art.coda.core
Class UIMACODAUtilities

java.lang.Object
  extended by it.uniroma2.art.coda.core.UIMACODAUtilities

public class UIMACODAUtilities
extends java.lang.Object

This class contains some methid that can be used as utilities regarding the use of UIMA in CODA

Author:
Andrea Turbati

Constructor Summary
UIMACODAUtilities()
           
 
Method Summary
 java.util.List<java.lang.String> getValueOfFeatureFromFeatPath(org.apache.uima.jcas.tcas.Annotation ann, PlaceholderStruct placeholder)
          Get a list of values in a particular annotation following the feature path contained in the placeholder
 java.util.List<java.lang.String> getValueOfFeatureFromFeatPath(org.apache.uima.jcas.tcas.Annotation ann, java.lang.String uimaTypeAndFeat)
          Get a list of values in a particular annotation following the feature path represented by uimaTypeAndFeat
 java.lang.String getValueOfFeatureFromFeatPathOneValue(org.apache.uima.jcas.tcas.Annotation ann, PlaceholderStruct placeholder)
          Get a value (normally the first if more than one is present) in a particular annotation following the feature path contained in the placeholder
 java.lang.String getValueOfFeatureFromFeatPathOneValue(org.apache.uima.jcas.tcas.Annotation ann, java.lang.String uimaTypeAndFeat)
          Get a value (normally the first if more than one is present) in a particular annotation following the feature path represented by uimaTypeAndFeat
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIMACODAUtilities

public UIMACODAUtilities()
Method Detail

getValueOfFeatureFromFeatPathOneValue

public java.lang.String getValueOfFeatureFromFeatPathOneValue(org.apache.uima.jcas.tcas.Annotation ann,
                                                              PlaceholderStruct placeholder)
Get a value (normally the first if more than one is present) in a particular annotation following the feature path contained in the placeholder

Parameters:
ann - the annotation where the value will be taken from
placeholder - the placeholder containing the feature path
Returns:
the one (just one) corresponding to the feature path or null if there is no value

getValueOfFeatureFromFeatPathOneValue

public java.lang.String getValueOfFeatureFromFeatPathOneValue(org.apache.uima.jcas.tcas.Annotation ann,
                                                              java.lang.String uimaTypeAndFeat)
Get a value (normally the first if more than one is present) in a particular annotation following the feature path represented by uimaTypeAndFeat

Parameters:
ann - the annotation where the value will be taken from
uimaTypeAndFeat - the feature path
Returns:
the one (just one) corresponding to the feature path or null if there is no value

getValueOfFeatureFromFeatPath

public java.util.List<java.lang.String> getValueOfFeatureFromFeatPath(org.apache.uima.jcas.tcas.Annotation ann,
                                                                      PlaceholderStruct placeholder)
Get a list of values in a particular annotation following the feature path contained in the placeholder

Parameters:
ann - the annotation where the value will be taken from
placeholder - the placeholder containing the feature path
Returns:
the list of values corresponding to the feature path or null if there is no value

getValueOfFeatureFromFeatPath

public java.util.List<java.lang.String> getValueOfFeatureFromFeatPath(org.apache.uima.jcas.tcas.Annotation ann,
                                                                      java.lang.String uimaTypeAndFeat)
Get a list of values in a particular annotation following the feature path represented by uimaTypeAndFeat

Parameters:
ann - the annotation where the value will be taken from
uimaTypeAndFeat - the feature path
Returns:
the list of values corresponding to the feature path or null if there is no value