Class FlatStateTokenizer

  • All Implemented Interfaces:
    FlatStateDelimiters

    public class FlatStateTokenizer
    extends java.lang.Object
    implements FlatStateDelimiters
    This class is used to parse object state string.
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Constructor Detail

      • FlatStateTokenizer

        public FlatStateTokenizer​(java.lang.String pInput)
    • Method Detail

      • hasMoreTokens

        public boolean hasMoreTokens()
        Returns true if more tokens are available. This method shall be used for parsing collections.
        Returns:
        true if more tokens are available.
      • nextStr

        public java.lang.String nextStr()
        Default nextStr() using subtype of NONE when validating return value
      • nextStr

        public java.lang.String nextStr​(FlatStateTokenizer.StrSubtype type)
        Returns next element from the state string. The element can be a simple value or a cortege. The method can also return null value indicating that corresponding string attribute or embedded object is null. Return value is validated according to StrSubtype.
        Returns:
        next element from the state string.
      • nextInt

        public int nextInt()
        Returns next element from the string converted to integer.
        Returns:
        next element from the string converted to integer.
      • nextBoolean

        public boolean nextBoolean()
        Returns next element from the string converted to boolean.
        Returns:
        next element from the string converted to boolean.
      • nextBooleanObj

        public java.lang.Boolean nextBooleanObj()
        Returns next element from the string converted to boolean.
        Returns:
        next element from the string converted to boolean.
        Since:
        MicroStrategy Web 9.0.0
      • nextTokenizer

        public FlatStateTokenizer nextTokenizer()
        Creates a new tokenizer based on the next element in the state string. This method shall be used for parsing collections.
        Returns:
        a new state tokenizer or null if corresponding collection is null.