cfboom.gson.models

Class GsonService

lucee.Component
    extended by cfboom.lang.Object
      extended by cfboom.gson.models.GsonService

A wrapper facade to the gson project (https://www.javadoc.io/doc/com.google.code.gson/gson/).

Class Attributes:
  • singleton
  •  
  • output : false
  •  
  • displayname : Class GsonService
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
  • author : Joel Tobey
  •  
    Property Summary
    type property default serializable required
    any wirebox


    • access = public
    • returntype = any
    • inject = wirebox
    true false
    Constructor Summary
    init()
    Method Summary
    any array()
    any bigDecimal([numeric bigdecimal])
    any bigInteger([numeric biginteger])
    any boolean([boolean bit])
    any byte([any byte])
    any char([any char])
    private any create(string class)
         Creates Java objects by using either createObject() or javaLoader.
    any double([numeric double])
    any float([numeric float])
    any fromJson(string json)
    any int([numeric integer])
    any long([numeric long])
    any null()
    any object()
    void onDIComplete()
    any parse(string json)
    any primitive([any value])
    any short([numeric short])
    any string([string value])
     
    Methods inherited from class cfboom.lang.Object
    $equals, getComponentName, getIdentityHashCode, getIdentityString, getMeta, hashCode, toString
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Property Detail

    wirebox

    property any wirebox

    Attributes:
    access - public
    required - false
    returntype - any
    inject - wirebox
    serializable - true

    Method Detail

    array

    public any array()


    bigDecimal

    public any bigDecimal([numeric bigdecimal])

    Parameters:
    bigdecimal

    bigInteger

    public any bigInteger([numeric biginteger])

    Parameters:
    biginteger

    boolean

    public any boolean([boolean bit])

    Parameters:
    bit

    byte

    public any byte([any byte])

    Parameters:
    byte

    char

    public any char([any char])

    Parameters:
    char

    create

    private any create(string class)

    Creates Java objects by using either createObject() or javaLoader.

    Parameters:
    class

    double

    public any double([numeric double])

    Parameters:
    double

    float

    public any float([numeric float])

    Parameters:
    float

    fromJson

    public any fromJson(string json)

    Parameters:
    json

    int

    public any int([numeric integer])

    Parameters:
    integer

    long

    public any long([numeric long])

    Parameters:
    long

    null

    public any null()


    object

    public any object()


    onDIComplete

    public void onDIComplete()


    parse

    public any parse(string json)

    Parameters:
    json

    primitive

    public any primitive([any value])

    Parameters:
    value

    short

    public any short([numeric short])

    Parameters:
    short

    string

    public any string([string value])

    Parameters:
    value