Class ConsumerCasUtils


  • public class ConsumerCasUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Constructor Detail

      • ConsumerCasUtils

        public ConsumerCasUtils()
    • Method Detail

      • 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 from
        aTypeS - - Feature Type
        aFeatS - - 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 from
        aTypeS - - Feature Type
        aFeatS - - 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 from
        aTypeS - - Feature Type
        Returns:
        the first Feature Structure of a given type