Class FeatureArray


  • public class FeatureArray
    extends java.lang.Object
    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.
    Since:
    MicroStrategy Web 8.0.0
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static FeatureArray getArray​(java.lang.String featureString)
      The main entry point for accessing an instance of the FeatureArray class.
      java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getArray

        public static FeatureArray getArray​(java.lang.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.
      • size

        public int size()
        Returns the size of the FeatureArray.
        Returns:
        the size of the FeatureArray.
      • getName

        public java.lang.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.
      • getValue

        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.