public class WGContentItemDefinition
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WGContentItemDefinition.Type
Content items data types
|
Constructor and Description |
---|
WGContentItemDefinition() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getInitialValue()
Returns the initial value(s) to set for the item when the content is created.
|
java.lang.String |
getName()
Returns the name of the item
|
WGContentItemDefinition.Type |
getType()
Returns the data type of the defined content item
|
boolean |
hasInitialValue()
Returns if an initial value is defined
|
boolean |
isList()
Returns if the item should be a list item.
|
void |
setInitialValue(java.lang.Object value)
Sets the initial value for the item as a single value.
|
void |
setInitialValueList(java.util.List<java.lang.Object> initialValues)
Sets the initial value for the item as a value list.
|
void |
setList(boolean list)
Sets if the item should be a list item.
|
void |
setName(java.lang.String name)
Sets the name of the item
|
void |
setType(WGContentItemDefinition.Type type)
Sets the data type of the defined content item
|
public java.lang.String getName()
public void setName(java.lang.String name)
public WGContentItemDefinition.Type getType()
public void setType(WGContentItemDefinition.Type type)
public java.lang.Object getInitialValue()
isList()
public boolean hasInitialValue()
public void setInitialValueList(java.util.List<java.lang.Object> initialValues)
isList()
is true.public void setInitialValue(java.lang.Object value)
isList()
is false.public boolean isList()
public void setList(boolean list)