Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.uima.cas_data
Interface PrimitiveArrayFS

All Superinterfaces:
  FeatureStructure, Serializable

    public interface PrimitiveArrayFS

extends FeatureStructure

A subtype of FeatureStructure that represents an array of primitive values (Strings, int, or floats).

Method Summary
`int` | `size()` Get the size of this array.
`float[]` | `toFloatArray()` Gets this value as an float array.
`int[]` | `toIntArray()` Gets this value as an integer array.
`String[]` | `toStringArray()` Gets this value as an string array.

Methods inherited from interface org.apache.uima.cas_data.FeatureStructure
`getFeatureNames, getFeatureValue, getId, getIndexed, getType, isIndexed, setFeatureValue, setId, setIndexed, setIndexed, setType`

Method Detail

### size

    int size()

  Get the size of this array.

  Returns:
    the size

### toIntArray

    int[] toIntArray()

  Gets this value as an integer array.

  Returns:
    integer array value, empty array if value is not an array

### toFloatArray

    float[] toFloatArray()

  Gets this value as an float array.

  Returns:
    float array value, empty array if value is not an array

### toStringArray

    String[] toStringArray()

  Gets this value as an string array.

  Returns:
    string array value, empty array if value is not an array

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 The Apache Software Foundation. All Rights Reserved.