public abstract class CommonData extends SharedData implements NameableData, RemovableData
SharedData
class
and implements the NameableData
and RemovableData
interfaces. This is one of the most common combinations for all
data items.MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
CommonData() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the description for the item.
|
String |
getName()
Get the name of the item.
|
boolean |
isRemoved()
Check if the removed flag is set for this item.
|
void |
setDescription(String description)
Set the description for the item.
|
void |
setName(String name)
Set the name of the item.
|
void |
setRemoved(boolean removed)
Set the removed flag for this item.
|
getItemKey, getProjectKey, setItemKey, setProjectKey
equals, getId, getVersion, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
getOwner, setOwner
public CommonData()
public String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic boolean isRemoved()
RemovableData
isRemoved
in interface RemovableData
public void setRemoved(boolean removed)
RemovableData
setRemoved
in interface RemovableData
removed
- TRUE if the item should be flagged as removed,
FALSE otherwise