public static class MetadataTemplate.Field extends BoxJSONObject
| Constructor and Description |
|---|
Field()
Constructs an empty metadata template.
|
Field(String json)
Constructs a metadate template field from a JSON string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the description of the field.
|
String |
getDisplayName()
Gets the display name of the field.
|
Boolean |
getIsHidden()
Gets is metadata template field hidden.
|
String |
getKey()
Gets the key of the field.
|
List<String> |
getOptions()
Gets list of possible options for enum type of the field.
|
String |
getType()
Gets the data type of the field's value.
|
void |
setDescription(String description)
Sets the description of the field.
|
void |
setDisplayName(String displayName)
Sets the display name of the field.
|
void |
setIsHidden(boolean isHidden)
Sets is metadata template field hidden.
|
void |
setKey(String key)
Sets the key of the field.
|
void |
setOptions(List<String> options)
Sets list of possible options for enum type of the field.
|
void |
setType(String type)
Sets the data type of the field's value.
|
clearPendingChanges, getPendingChanges, getPendingChangesAsJsonObjectpublic Field()
public String getType()
public void setType(String type)
type - the data type of the field's value.public void setKey(String key)
key - the key of the field.public String getDisplayName()
public void setDisplayName(String displayName)
displayName - the display name of the field.public Boolean getIsHidden()
public void setIsHidden(boolean isHidden)
isHidden - is metadata template field hidden?public String getDescription()
public void setDescription(String description)
description - the description of the field.public List<String> getOptions()
public void setOptions(List<String> options)
options - list of possible options for enum type of the field.