|FeatureValue||getFeatureValue (String aName)|
|void||setFeatureValue (String aName, FeatureValue aValue)|
|void||setId (String aId)|
|void||setIndexed (boolean aIndexed)|
|void||setIndexed (int aIndexed)|
|void||setType (String aType)|
An object in the CAS. Each FeatureStructure has an optional ID, a type (represented as a string), and a collection of features, which are attribute-value pairs. Feature names are strings, and their values may be primitives (String, integer, float) or references (via ID) to another FeatureStuctures. Circular references are allowed.
Arrays are represented by the subtypes PrimitiveArrayFS and ReferenceArrayFS. Arrays are not primitive values. This means that if the value of a feature is conceptually, for example, an integer array, this will be represented in the CasData as a reference, via ID, to a PrimitiveArrayFS object that actually contains the integer array value.
FeatureStructures also have a property
indexed, which determines whether the FeatureStructure should be added to the CAS's indexes if the CAS Data is converted to a CAS Object. The CasData itself does not provide indexes.