public static class MetadataTemplate.FieldOperation extends BoxJSONObject
Constructor and Description |
---|
FieldOperation()
Constructs an empty FieldOperation.
|
FieldOperation(String json)
Constructs a Field operation from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
void |
clearPendingChanges()
Clears any pending changes from this JSON object.
|
MetadataTemplate.Field |
getData()
Gets the data associated with the operation.
|
String |
getEnumOptionKey()
Gets the enum option key.
|
List<String> |
getEnumOptionKeys()
Gets the list of keys of the Enum options.
|
String |
getFieldKey()
Gets the field key.
|
List<String> |
getFieldKeys()
Gets the list of field keys.
|
String |
getMultiSelectOptionKey()
Gets the multi-select option key.
|
List<String> |
getMultiSelectOptionKeys()
Gets the list of multiselect option keys.
|
MetadataTemplate.Operation |
getOp()
Gets the operation.
|
void |
setData(MetadataTemplate.Field data)
Sets the data.
|
void |
setEnumOptionKey(String enumOptionKey)
Sets the enum option key.
|
void |
setEnumOptionKeys(List<String> enumOptionKeys)
Sets the list of the enum option keys.
|
void |
setFieldKey(String fieldKey)
Sets the field key.
|
void |
setFieldKeys(List<String> fieldKeys)
Sets the list of the field keys.
|
void |
setMultiSelectOptionKey(String key)
Sets the multi-select option key.
|
void |
setMultiSelectOptionKeys(List<String> keys)
Sets the multi-select option keys.
|
void |
setOp(MetadataTemplate.Operation op)
Sets the operation.
|
getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public FieldOperation()
public FieldOperation(String json)
json
- the json encoded metadate template field.public MetadataTemplate.Operation getOp()
public void setOp(MetadataTemplate.Operation op)
op
- the operationpublic MetadataTemplate.Field getData()
public void setData(MetadataTemplate.Field data)
data
- the Field object representing the datapublic String getFieldKey()
public void setFieldKey(String fieldKey)
fieldKey
- the key of the fieldpublic List<String> getFieldKeys()
public void setFieldKeys(List<String> fieldKeys)
fieldKeys
- the list of stringspublic List<String> getEnumOptionKeys()
public void setEnumOptionKeys(List<String> enumOptionKeys)
enumOptionKeys
- the list of Stringspublic String getEnumOptionKey()
public void setEnumOptionKey(String enumOptionKey)
enumOptionKey
- the enum option keypublic String getMultiSelectOptionKey()
public void setMultiSelectOptionKey(String key)
key
- the key.public List<String> getMultiSelectOptionKeys()
public void setMultiSelectOptionKeys(List<String> keys)
keys
- the list of keys.public void clearPendingChanges()
BoxJSONObject
clearPendingChanges
in class BoxJSONObject