Class FlatStateSerializer
- java.lang.Object
-
- com.microstrategy.utils.serialization.FlatStateSerializer
-
- All Implemented Interfaces:
FlatStateDelimiters
public class FlatStateSerializer extends java.lang.Object implements FlatStateDelimiters
This class is used to build a string representing object state.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Constructor Summary
Constructors Constructor Description FlatStateSerializer()
FlatStateSerializer(java.lang.StringBuffer _buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBoolean(boolean value)
Adds boolean value to the state string.void
addBooleanObj(java.lang.Boolean value)
Adds boolean value to the state string.void
addInt(int value)
Adds integer value to the state string.void
addObject(Persistable ob)
Adds embedded object state to the state string.void
addObject(Persistable ob, int stateFlag)
Adds embedded object state to the state string.void
addObjects(java.util.Collection objects)
Adds the embedded object collection state to the state string.void
addObjects(java.util.Enumeration objects)
Adds the embedded object collection state to the state string.void
addStr(java.lang.String value)
Adds string value to the state stringvoid
addValues(java.util.Collection values)
Adds the embedded values collection to the state string.void
addValues(java.util.Enumeration values)
Adds the embedded values collection to the state string.java.lang.String
getState()
Returns the object state string.
-
-
-
Method Detail
-
getState
public java.lang.String getState()
Returns the object state string.- Returns:
- the object state string.
-
addStr
public void addStr(java.lang.String value)
Adds string value to the state string- Parameters:
value
- string value
-
addInt
public final void addInt(int value)
Adds integer value to the state string.- Parameters:
value
- integer value
-
addBoolean
public final void addBoolean(boolean value)
Adds boolean value to the state string.- Parameters:
value
- boolean value
-
addBooleanObj
public final void addBooleanObj(java.lang.Boolean value)
Adds boolean value to the state string.- Parameters:
value
- boolean value- Since:
- MicroStrategy Web 9.0.0
-
addObject
public void addObject(Persistable ob)
Adds embedded object state to the state string.- Parameters:
ob
- embedded object
-
addObject
public void addObject(Persistable ob, int stateFlag)
Adds embedded object state to the state string.- Parameters:
ob
- embedded objectstateFlag
- fromEnumWebStateFlags
-
addObjects
public void addObjects(java.util.Collection objects)
Adds the embedded object collection state to the state string.- Parameters:
objects
- an embedded object collection
-
addObjects
public void addObjects(java.util.Enumeration objects)
Adds the embedded object collection state to the state string.- Parameters:
objects
- an enumeration of embedded objects
-
addValues
public void addValues(java.util.Collection values)
Adds the embedded values collection to the state string.- Parameters:
values
- a collection of values
-
addValues
public void addValues(java.util.Enumeration values)
Adds the embedded values collection to the state string.- Parameters:
values
- an enumeration of values
-
-