com.ibm.tivoli.maximo.miniapps.treegrid

Interface TGJsonWriter

  • All Known Implementing Classes:
    StreamingDataBuilder, TGGsonStreamWriter, TGIBMJsonWriter


    public interface TGJsonWriter
    Provides an Abstract way to use the "Streaming" JSON model to write to an in-memory JSON model. This is used because in some cases in TreeGrid we "stream" the model and in other cases, when the there isn't a large amount of data we laod it in-memory and send it back as 'changes'
    • Method Detail

      • beginArray

        TGJsonWriter beginArray()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • beginObject

        TGJsonWriter beginObject()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • endArray

        TGJsonWriter endArray()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • endObject

        TGJsonWriter endObject()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • name

        TGJsonWriter name(java.lang.String name)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • value

        TGJsonWriter value(boolean value)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • value

        TGJsonWriter value(double value)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • value

        TGJsonWriter value(long value)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • value

        TGJsonWriter value(java.lang.Number value)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • value

        TGJsonWriter value(java.lang.String value)
                    throws java.io.IOException
        Throws:
        java.io.IOException