Class ConsumerCasUtils
- java.lang.Object
-
- org.apache.uima.collection.impl.cpm.engine.ConsumerCasUtils
-
public class ConsumerCasUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ConsumerCasUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getIntFeatValue(CAS aCasView, String aTypeS, String aFeatS)
Returns an int value of a given Feature Structurestatic String
getStringFeatValue(CAS aCasView, String aTypeS, String aFeatS)
Returns a string value of a given Feature Structurestatic FeatureStructure
getTcasFS(CAS aCasView, String aTypeS)
Returns a Feature Structure of a given type
-
-
-
Method Detail
-
getIntFeatValue
public static int getIntFeatValue(CAS aCasView, String aTypeS, String aFeatS)
Returns an int value of a given Feature Structure- Parameters:
aCasView
- - CAS instance to retrieve data fromaTypeS
- - Feature TypeaFeatS
- - Feature Structure- Returns:
- - feature value as int
-
getStringFeatValue
public static String getStringFeatValue(CAS aCasView, String aTypeS, String aFeatS)
Returns a string value of a given Feature Structure- Parameters:
aCasView
- - CAS view to retrieve data fromaTypeS
- - Feature TypeaFeatS
- - Feature Structure- Returns:
- feature value as string
-
getTcasFS
public static FeatureStructure getTcasFS(CAS aCasView, String aTypeS)
Returns a Feature Structure of a given type- Parameters:
aCasView
- - CAS instance to retrieve data fromaTypeS
- - Feature Type- Returns:
- the first Feature Structure of a given type
-
-