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 |
---|---|
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.
|
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 |
setOp(MetadataTemplate.Operation op)
Sets the operation.
|
clearPendingChanges, getPendingChanges, getPendingChangesAsJsonObject
public FieldOperation()
public FieldOperation(String json)
json
- the json encoded metadate template field.public MetadataTemplate.Operation getOp()
public MetadataTemplate.Field getData()
public String getFieldKey()
public List<String> getFieldKeys()
public List<String> getEnumOptionKeys()
public void setOp(MetadataTemplate.Operation op)
op
- the operationpublic void setData(MetadataTemplate.Field data)
data
- the Field object representing the datapublic void setFieldKey(String fieldKey)
fieldKey
- the key of the fieldpublic void setFieldKeys(List<String> fieldKeys)
fieldKeys
- the list of stringspublic void setEnumOptionKeys(List<String> enumOptionKeys)
enumOptionKeys
- the list of Stringspublic String getEnumOptionKey()
public void setEnumOptionKey(String enumOptionKey)
enumOptionKey
- the enum option key