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 |
|---|---|
Boolean |
getCopyInstanceOnItemCopy()
Gets whether the copy operation should copy the metadata along with the item.
|
String |
getDescription()
Gets the description of the field.
|
String |
getDisplayName()
Gets the display name of the field.
|
String |
getID()
Gets the ID of the template 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.
|
List<MetadataTemplate.Option> |
getOptionsObjects()
Gets list of possible options for options type of the field.
|
MetadataTemplate.StaticConfig |
getStaticConfig()
Gets static configuration for the classification.
|
String |
getType()
Gets the data type of the field's value.
|
void |
setCopyInstanceOnItemCopy(Boolean copyInstanceOnItemCopy)
Sets whether the copy operation should copy the metadata along with the item.
|
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 |
setStaticConfig(MetadataTemplate.StaticConfig staticConfig)
Sets static configuration for the classification.
|
void |
setType(String type)
Sets the data type of the field's value.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObjectpublic 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.public List<MetadataTemplate.Option> getOptionsObjects()
public Boolean getCopyInstanceOnItemCopy()
public void setCopyInstanceOnItemCopy(Boolean copyInstanceOnItemCopy)
copyInstanceOnItemCopy - whether the copy operation should copy the metadata along with the item.public MetadataTemplate.StaticConfig getStaticConfig()
public void setStaticConfig(MetadataTemplate.StaticConfig staticConfig)
staticConfig - static configuration for the classification.