Class ConsumerCasUtils
java.lang.Object
org.apache.uima.collection.impl.cpm.engine.ConsumerCasUtils
The Class ConsumerCasUtils.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getIntFeatValue
(CAS aCasView, String aTypeS, String aFeatS) Returns an int value of a given Feature Structure.static String
getStringFeatValue
(CAS aCasView, String aTypeS, String aFeatS) Returns a string value of a given Feature Structure.static FeatureStructure
Returns a Feature Structure of a given type.
-
Constructor Details
-
ConsumerCasUtils
public ConsumerCasUtils()
-
-
Method Details
-
getIntFeatValue
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
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
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
-