public class

FeatureArray

extends Object
java.lang.Object
   ↳ com.microstrategy.web.beans.FeatureArray

Class Overview

The purpose of this class is to act as a container for an arbitrary list of feature "segments". Each segment is a feature name with an optional exclamation point preceding it. This FeatureArray is evaluated one feature at a time in the various isFeatureAvaiable method implementations.

Summary

Public Methods
static FeatureArray getArray(String featureString)
The main entry point for accessing an instance of the FeatureArray class.
String getName(int index)
Returns the name of the ith feature in this string.
boolean getValue(int index)
Returns the value of the ith feature in this string.
int size()
Returns the size of the FeatureArray.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static FeatureArray getArray (String featureString)

The main entry point for accessing an instance of the FeatureArray class. These class are thread-safe and intended to be used in a multithreaded environment.

Parameters
featureString The (single- or multi-valued) feature string that you wish a FeatureArray instance for.
Returns
  • An instance of the FeatureArray class for the supplied feature string.

public String getName (int index)

Returns the name of the ith feature in this string.

Parameters
index A value from 0 to size()-1.
Returns
  • The name of the ith feature.

public boolean getValue (int index)

Returns the value of the ith feature in this string.

Parameters
index A value from 0 to size()-1.
Returns
  • The value of the ith feature. A value of 'true' indicates the absence of the negation character. A value of 'false' indicates that the negation character precedes the feature name.

public int size ()

Returns the size of the FeatureArray.

Returns
  • the size of the FeatureArray.