org.apache.uima.collection.impl.cpm.engine
Class ConsumerCasUtils
java.lang.Object
org.apache.uima.collection.impl.cpm.engine.ConsumerCasUtils
public class ConsumerCasUtils
- extends java.lang.Object
Method Summary |
static int |
getIntFeatValue(CAS aCasView,
java.lang.String aTypeS,
java.lang.String aFeatS)
Returns an int value of a given Feature Structure |
static java.lang.String |
getStringFeatValue(CAS aCasView,
java.lang.String aTypeS,
java.lang.String aFeatS)
Returns a string value of a given Feature Structure |
static FeatureStructure |
getTcasFS(CAS aCasView,
java.lang.String aTypeS)
Returns a Feature Structure of a given type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumerCasUtils
public ConsumerCasUtils()
getIntFeatValue
public static int getIntFeatValue(CAS aCasView,
java.lang.String aTypeS,
java.lang.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 java.lang.String getStringFeatValue(CAS aCasView,
java.lang.String aTypeS,
java.lang.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,
java.lang.String aTypeS)
- Returns a Feature Structure of a given type
- Parameters:
aCasView
- -
CAS instance to retrieve data fromaTypeS
- -
Feature Type
- Returns:
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.