org.apache.uima.cas_data

## Interface PrimitiveValue

- All Superinterfaces:
    FeatureValue, Serializable

      public interface PrimitiveValue
      extends FeatureValue

  Represents a primitive feature value - a string, integer, or float. Arrays are represented as FeatureStructures, not as primitive values.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `toFloat()` Gets this value as a float.
    `int` | `toInt()` Gets this value as an integer.
    `String` | `toString()` Gets this value as a string.

    - ### Methods inherited from interface org.apache.uima.cas_data.FeatureValue

      `get`

- - ### Method Detail

    - #### toString

          String toString()

      Gets this value as a string.
      Overrides:
        `toString` in class `Object`
      Returns:
        string value

    - #### toInt

          int toInt()

      Gets this value as an integer.
      Returns:
        integer value, 0 if a non-integer

    - #### toFloat

          float toFloat()

      Gets this value as a float.
      Returns:
        float value, 0 if a non-number.

Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.