Class FlatStateTokenizer
- java.lang.Object
-
- com.microstrategy.utils.serialization.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FlatStateTokenizer.StrSubtype
-
Constructor Summary
Constructors Constructor Description FlatStateTokenizer(java.lang.String pInput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreTokens()
Returns true if more tokens are available.boolean
nextBoolean()
Returns next element from the string converted to boolean.java.lang.Boolean
nextBooleanObj()
Returns next element from the string converted to boolean.int
nextInt()
Returns next element from the string converted to integer.java.lang.String
nextStr()
Default nextStr() using subtype of NONE when validating return valuejava.lang.String
nextStr(FlatStateTokenizer.StrSubtype type)
Returns next element from the state string.FlatStateTokenizer
nextTokenizer()
Creates a new tokenizer based on the next element in the state string.
-
-
-
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.
-
-