public abstract class AbstractModelItem extends Object implements ModelItem
| Modifier and Type | Field and Description |
|---|---|
private I18nizableText |
_description |
private Set<ItemCheckerDescriptor> |
_itemCheckers |
private I18nizableText |
_label |
private Model |
_model |
private String |
_name |
private ModelItemGroup |
_parent |
ITEM_PATH_SEPARATOR| Constructor and Description |
|---|
AbstractModelItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemChecker(ItemCheckerDescriptor itemChecker)
Add an item checker to the group
|
int |
compareTo(ModelItem item) |
boolean |
equals(Object obj) |
I18nizableText |
getDescription()
Retrieves the description.
|
Set<ItemCheckerDescriptor> |
getItemCheckers()
Returns the
ItemCheckerDescriptors associated with this group. |
I18nizableText |
getLabel()
Retrieves the label.
|
Model |
getModel()
Retrieves the model of the item
|
String |
getName()
Get the name.
|
ModelItemGroup |
getParent()
Retrieves the parent of the item
|
String |
getPath()
Retrieves the path of the model item
|
int |
hashCode() |
void |
setDescription(I18nizableText description)
Set the description.
|
void |
setLabel(I18nizableText label)
Set the label.
|
void |
setModel(Model model)
Sets the model of the element
|
void |
setName(String name)
Set the name.
|
void |
setParent(ModelItemGroup parent)
Sets the parent of the item
|
Map<String,Object> |
toJSON()
Converts the model item in a JSON map
|
String |
toString() |
private I18nizableText _label
private I18nizableText _description
private Set<ItemCheckerDescriptor> _itemCheckers
private ModelItemGroup _parent
public AbstractModelItem()
public void setName(String name)
ModifiableLabelablesetName in interface ModifiableLabelablename - the name.public I18nizableText getLabel()
Labelablepublic void setLabel(I18nizableText label)
ModifiableLabelablesetLabel in interface ModifiableLabelablelabel - the label.public I18nizableText getDescription()
LabelablegetDescription in interface Labelablepublic void setDescription(I18nizableText description)
ModifiableLabelablesetDescription in interface ModifiableLabelabledescription - the description.public void addItemChecker(ItemCheckerDescriptor itemChecker)
ModelItemaddItemChecker in interface ModelItemitemChecker - the item checker to addpublic Set<ItemCheckerDescriptor> getItemCheckers()
ModelItemItemCheckerDescriptors associated with this group.getItemCheckers in interface ModelItemItemCheckerDescriptors associated with this group.public String getPath()
ModelItempublic Model getModel()
ModelItempublic void setModel(Model model)
ModelItempublic ModelItemGroup getParent()
ModelItempublic void setParent(ModelItemGroup parent)
ModelItempublic Map<String,Object> toJSON() throws ProcessingException
ModelItemtoJSON in interface ModelItemProcessingException - If an error occurs when converting the model itempublic int compareTo(ModelItem item)
compareTo in interface Comparable<ModelItem>