public class

FlatStateTokenizer

extends Object
implements FlatStateDelimiters
java.lang.Object
   ↳ com.microstrategy.utils.serialization.FlatStateTokenizer

Class Overview

This class is used to parse object state string.

Summary

[Expand]
Inherited Constants
From interface com.microstrategy.utils.serialization.FlatStateDelimiters
Public Constructors
FlatStateTokenizer(String pInput)
Public Methods
boolean hasMoreTokens()
Returns true if more tokens are available.
boolean nextBoolean()
Returns next element from the string converted to boolean.
Boolean nextBooleanObj()
Returns next element from the string converted to boolean.
int nextInt()
Returns next element from the string converted to integer.
String nextStr()
Returns next element from the state string.
FlatStateTokenizer nextTokenizer()
Creates a new tokenizer based on the next element in the state string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FlatStateTokenizer (String pInput)

Public Methods

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.

public boolean nextBoolean ()

Returns next element from the string converted to boolean.

Returns
  • next element from the string converted to boolean.

public Boolean nextBooleanObj ()

Returns next element from the string converted to boolean.

Returns
  • next element from the string converted to boolean.

public int nextInt ()

Returns next element from the string converted to integer.

Returns
  • next element from the string converted to integer.

public String nextStr ()

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.

Returns
  • next element from the state string.

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.