public class Global extends RequestListActions implements JsonConstructable
This list holds the set of global variables exchanged between your application and bbmcore. The list uses string keys and mixed-type values. The key is the variable name. The set of valid variables and their meaning is documented in the 'globals' section.
Modifier and Type | Field and Description |
---|---|
Existence |
exists
Determines whether the data in this object is valid.
|
java.lang.String |
name
String name of the global variable.
|
Constructor and Description |
---|
Global()
Creates a new instance with default values
|
Global(Global toCopy)
Creates a shallow copy of the argument.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Existence |
getExists()
See
Existence |
java.lang.String |
getPrimaryKey()
Provides the unique key for this Global
|
int |
hashCode() |
Global |
setAttributes(JSONObject json)
Updates the the attributes of the Global based on the values in the JSONObject
|
void |
setExists(Existence exists)
See
Existence |
JsonConstructable |
shallowCopy()
Creates a shallow copy of the receiver
|
java.lang.String |
toString() |
requestListAdd, requestListChange, requestListRemove
public java.lang.String name
public Existence exists
public Global()
public Global(Global toCopy)
toCopy
- the object to copypublic java.lang.String getPrimaryKey()
getPrimaryKey
in interface JsonConstructable
public Global setAttributes(JSONObject json)
setAttributes
in interface JsonConstructable
json
- The JSONObject used to update the attributes of this Globalpublic JsonConstructable shallowCopy()
JsonConstructable
shallowCopy
in interface JsonConstructable
public void setExists(Existence exists)
JsonConstructable
Existence
setExists
in interface JsonConstructable
exists
- sets the expected Existence value on the object.public Existence getExists()
JsonConstructable
Existence
getExists
in interface JsonConstructable
Existence.MAYBE
, Existence.YES
or Existence.NO
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object