public class CommunicationItem
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
CommunicationItem(java.lang.String _type,
java.lang.String _name,
java.lang.String _folder,
java.util.UUID _id)
Constructs new CommunicationItem object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(CommunicationItem _subItem)
Adds new sub item to the current one.
|
void |
addProperty(java.lang.String key,
java.lang.String value)
Adds new property of the item.
|
java.lang.String |
getFolder() |
java.util.UUID |
getId() |
java.util.List<CommunicationItem> |
getItemsList() |
java.lang.String |
getName() |
java.lang.String |
getProperty(java.lang.String key)
Returns specific property value by given key.
|
java.lang.String |
getType() |
public CommunicationItem(java.lang.String _type,
java.lang.String _name,
java.lang.String _folder,
java.util.UUID _id)
_type - type of the item_name - name of the item_folder - folder of the item_id - id of the itempublic java.lang.String getName()
public java.lang.String getType()
public java.lang.String getFolder()
public java.util.UUID getId()
public void addProperty(java.lang.String key,
java.lang.String value)
key - the key of the property.value - the value of the property.public java.lang.String getProperty(java.lang.String key)
key - the key that will be used to get the current property value.public void addItem(CommunicationItem _subItem)
_subItem - the sub item that will be added.public java.util.List<CommunicationItem> getItemsList()