Class 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
    • 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 string
      void 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.
      • Methods inherited from class java.lang.Object

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

      • FlatStateSerializer

        public FlatStateSerializer()
      • FlatStateSerializer

        public FlatStateSerializer​(java.lang.StringBuffer _buf)
    • 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 object
        stateFlag - from EnumWebStateFlags
      • 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