Snowplow Android Tracker 3.1.2
Public Member Functions | List of all members
com.snowplowanalytics.snowplow.payload.SelfDescribingJson Class Reference
Inheritance diagram for com.snowplowanalytics.snowplow.payload.SelfDescribingJson:
com.snowplowanalytics.snowplow.entity.DeepLink com.snowplowanalytics.snowplow.entity.LifecycleEntity

Public Member Functions

 SelfDescribingJson (@NonNull String schema)
 
 SelfDescribingJson (@NonNull String schema, @NonNull TrackerPayload data)
 
 SelfDescribingJson (@NonNull String schema, @NonNull SelfDescribingJson data)
 
 SelfDescribingJson (@NonNull String schema, @NonNull Object data)
 
SelfDescribingJson setSchema (@NonNull String schema)
 
SelfDescribingJson setData (@Nullable TrackerPayload trackerPayload)
 
SelfDescribingJson setData (@Nullable Object data)
 
SelfDescribingJson setData (@Nullable SelfDescribingJson selfDescribingJson)
 
Map< String, Object > getMap ()
 
String toString ()
 
long getByteSize ()
 

Detailed Description

Returns a SelfDescribingJson object which will contain both the Schema and Data.

Definition at line 33 of file SelfDescribingJson.java.

Constructor & Destructor Documentation

◆ SelfDescribingJson() [1/4]

com.snowplowanalytics.snowplow.payload.SelfDescribingJson.SelfDescribingJson ( @NonNull String  schema)

Builds a SelfDescribingJson object

Parameters
schemathe schema string

Definition at line 43 of file SelfDescribingJson.java.

◆ SelfDescribingJson() [2/4]

com.snowplowanalytics.snowplow.payload.SelfDescribingJson.SelfDescribingJson ( @NonNull String  schema,
@NonNull TrackerPayload  data 
)

Builds a SelfDescribingJson object

Parameters
schemathe schema string
datato nest into the object as a TrackerPayload

Definition at line 54 of file SelfDescribingJson.java.

◆ SelfDescribingJson() [3/4]

com.snowplowanalytics.snowplow.payload.SelfDescribingJson.SelfDescribingJson ( @NonNull String  schema,
@NonNull SelfDescribingJson  data 
)

Builds a SelfDescribingJson object

Parameters
schemathe schema string
datato nest into the object as a SelfDescribingJson

Definition at line 66 of file SelfDescribingJson.java.

◆ SelfDescribingJson() [4/4]

com.snowplowanalytics.snowplow.payload.SelfDescribingJson.SelfDescribingJson ( @NonNull String  schema,
@NonNull Object  data 
)

Builds a SelfDescribingJson object

Parameters
schemathe schema string
datato nest into the object as a POJO

Definition at line 78 of file SelfDescribingJson.java.

Member Function Documentation

◆ getByteSize()

long com.snowplowanalytics.snowplow.payload.SelfDescribingJson.getByteSize ( )

Definition at line 156 of file SelfDescribingJson.java.

◆ getMap()

Map< String, Object > com.snowplowanalytics.snowplow.payload.SelfDescribingJson.getMap ( )

Definition at line 147 of file SelfDescribingJson.java.

◆ setData() [1/3]

SelfDescribingJson com.snowplowanalytics.snowplow.payload.SelfDescribingJson.setData ( @Nullable Object  data)

Adds data to the SelfDescribingJson

  • Accepts a POJO
Parameters
datathe data to be added to the SelfDescribingJson
Returns
itself

Definition at line 122 of file SelfDescribingJson.java.

◆ setData() [2/3]

SelfDescribingJson com.snowplowanalytics.snowplow.payload.SelfDescribingJson.setData ( @Nullable SelfDescribingJson  selfDescribingJson)

Allows us to add data from one SelfDescribingJson into another without copying over the Schema.

Parameters
selfDescribingJsonthe payload to add to the SelfDescribingJson
Returns
itself

Definition at line 138 of file SelfDescribingJson.java.

◆ setData() [3/3]

SelfDescribingJson com.snowplowanalytics.snowplow.payload.SelfDescribingJson.setData ( @Nullable TrackerPayload  trackerPayload)

Adds data to the SelfDescribingJson

Parameters
trackerPayloadthe data to be added to the SelfDescribingJson
Returns
itself

Definition at line 106 of file SelfDescribingJson.java.

◆ setSchema()

SelfDescribingJson com.snowplowanalytics.snowplow.payload.SelfDescribingJson.setSchema ( @NonNull String  schema)

Sets the Schema for the SelfDescribingJson

Parameters
schemaa valid schema string
Returns
itself if it passes precondition checks

Definition at line 91 of file SelfDescribingJson.java.

◆ toString()

String com.snowplowanalytics.snowplow.payload.SelfDescribingJson.toString ( )

Definition at line 152 of file SelfDescribingJson.java.


The documentation for this class was generated from the following file: