public final class CustomAttribute
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CustomAttribute.CustomAttributeType |
static class |
CustomAttribute.Value |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
displayKey
Localized attribute name.
|
private java.lang.String |
key
Non-localized key.
|
private boolean |
singleValue
If this is true, the "values" array will contain exactly 1 element.
|
private CustomAttribute.CustomAttributeType |
type
Data type, one of: string|number|bool|url|datetime|date|time".
|
private java.util.List<CustomAttribute.Value> |
values
There is one such object for each value.
|
Constructor and Description |
---|
CustomAttribute() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayKey() |
java.lang.String |
getKey() |
CustomAttribute.CustomAttributeType |
getType() |
java.util.List<CustomAttribute.Value> |
getValues() |
boolean |
isSingleValue() |
void |
setDisplayKey(java.lang.String displayKey) |
void |
setKey(java.lang.String key) |
void |
setSingleValue(boolean singleValue) |
void |
setType(CustomAttribute.CustomAttributeType type) |
void |
setValues(java.util.List<CustomAttribute.Value> values) |
private java.lang.String key
private java.lang.String displayKey
private boolean singleValue
If false, "values" can have 0..n elements.
private CustomAttribute.CustomAttributeType type
private java.util.List<CustomAttribute.Value> values
singleValue
public java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getDisplayKey()
public void setDisplayKey(java.lang.String displayKey)
public boolean isSingleValue()
public void setSingleValue(boolean singleValue)
public CustomAttribute.CustomAttributeType getType()
public void setType(CustomAttribute.CustomAttributeType type)
public java.util.List<CustomAttribute.Value> getValues()
public void setValues(java.util.List<CustomAttribute.Value> values)