Class AbstractViewReader

    • Constructor Detail

      • AbstractViewReader

        protected AbstractViewReader​(Options options)
        Constructs a new reader
        Parameters:
        options - configuration options
    • Method Detail

      • getOptions

        public Options getOptions()
      • onReadView

        protected abstract void onReadView()
                                    throws Exception
        Notifies the recipient that it should read the textual representation, invoking callbacks as necessary to create the event stream for the view.
        Throws:
        Exception
      • discriminator

        protected final void discriminator​(Object value)
        Adds a subtype discriminator to the view.
        Parameters:
        value - discriminator value
      • meta

        protected final void meta​(String name,
                                  Object value)
        Adds a metadata value to a view.
        Parameters:
        name - metadata name
        value - metadata value
      • value

        protected final void value​(String name,
                                   String value)
        Adds a string value to the view.
        Parameters:
        name - name of the value
        value - string value (not null)
      • value

        protected final void value​(String name,
                                   Number value)
        Adds a numeric value to the view.
        Parameters:
        name - name of the value
        value - numeric value (not null)
      • value

        protected final void value​(String name,
                                   Boolean value)
        Adds a boolean value to the view.
        Parameters:
        name - name of the value
        value - boolean value (not null)
      • nullValue

        protected final void nullValue​(String name)
        Adds a null value to the view.
        Parameters:
        name - name of the value