public class CIMColorSubstitution extends CIMObject
| Constructor and Description |
|---|
CIMColorSubstitution() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMColorSubstitution |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
CIMColor |
getNewColor()
Gets the new color that will replace the old color.
|
CIMColor |
getOldColor()
Gets the old color (the color that will be substituted).
|
void |
serialize(JSONObject jsonObject)
Serializes this object to its JSON representation.
|
void |
setNewColor(CIMColor newColor)
Sets the new color that will replace the old color.
|
void |
setOldColor(CIMColor oldColor)
Sets the old color (the color that will be substituted).
|
java.lang.String |
toJSON()
Creates a JSON encoding of the object and its current state.
|
public CIMColor getOldColor()
public void setOldColor(CIMColor oldColor)
public CIMColor getNewColor()
public void setNewColor(CIMColor newColor)
public static CIMColorSubstitution fromJSON(java.lang.String json) throws CIMJSONException
CIMJSONExceptionpublic java.lang.String toJSON()
public void deserialize(JSONObject jsonObject) throws CIMJSONException
deserialize in class CIMObjectCIMJSONExceptionpublic void serialize(JSONObject jsonObject)