public interface ModelItem extends ModifiableLabelable, Comparable<ModelItem>
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_PATH_SEPARATOR
Separator used for item paths in definitions
|
Modifier and Type | Method and Description |
---|---|
void |
addItemChecker(ItemCheckerDescriptor itemChecker)
Add an item checker to the group
|
Set<ItemCheckerDescriptor> |
getItemCheckers()
Returns the
ItemCheckerDescriptor s associated with this group. |
Model |
getModel()
Retrieves the model of the item
|
ModelItemGroup |
getParent()
Retrieves the parent of the item
|
String |
getPath()
Retrieves the path of the model item
|
ModelItemType |
getType()
Retrieves the type.
|
void |
setModel(Model model)
Sets the model of the element
|
void |
setParent(ModelItemGroup parent)
Sets the parent of the item
|
void |
setType(ModelItemType type)
Set the type.
|
Map<String,Object> |
toJSON()
Converts the model item in a JSON map
|
setDescription, setLabel, setName
getDescription, getLabel, getName
compareTo
static final String ITEM_PATH_SEPARATOR
Set<ItemCheckerDescriptor> getItemCheckers()
ItemCheckerDescriptor
s associated with this group.ItemCheckerDescriptor
s associated with this group.void addItemChecker(ItemCheckerDescriptor itemChecker)
itemChecker
- the item checker to addvoid setModel(Model model)
model
- the model to setModelItemGroup getParent()
void setParent(ModelItemGroup parent)
parent
- the parent to setMap<String,Object> toJSON() throws ProcessingException
ProcessingException
- If an error occurs when converting the model itemModelItemType getType()
void setType(ModelItemType type)
type
- the type.