Class Context

java.lang.Object
org.json.JSONObject
com.openfin.desktop.fdc3.Context

public class Context
extends org.json.JSONObject
Context can be summarised as: Having a unique type identifier, used for routing. Optionally providing a name. Optionally providing a map of equivalent identifiers. Any other properties or metadata.
Author:
Anthony
  • Field Summary

    Fields inherited from class org.json.JSONObject

    NULL
  • Constructor Summary

    Constructors 
    Constructor Description
    Context​(java.lang.String type)  
    Context​(java.lang.String type, java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    static Context fromJson​(org.json.JSONObject jsonObject)  
    java.lang.String getName()  
    java.lang.String getType()  
    void setId​(org.json.JSONObject id)  

    Methods inherited from class org.json.JSONObject

    accumulate, append, clear, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Context

      public Context​(java.lang.String type)
    • Context

      public Context​(java.lang.String type, java.lang.String name)
  • Method Details

    • getType

      public java.lang.String getType()
    • getName

      public java.lang.String getName()
    • setId

      public void setId​(org.json.JSONObject id)
    • fromJson

      public static Context fromJson​(org.json.JSONObject jsonObject)