public class ItemSubtypeData extends BasicData implements NameableData, RemovableData, RegisteredData, SystemData
SubtypableData
interface. For a given item type the name
of the subtype should be unique.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description |
private java.util.Date |
entryDate |
private java.util.Map<DataFileTypeData,ItemSubtypeFileTypeData> |
fileTypes |
private int |
itemType |
private java.lang.String |
name |
private java.util.Set<ItemSubtypeData> |
parents |
private boolean |
pushAnnotations |
private java.util.Map<java.lang.Integer,ItemSubtypeData> |
relatedSubtypes |
private boolean |
removed |
private java.lang.String |
systemId |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
MAX_SYSTEM_ID_LENGTH
Constructor and Description |
---|
ItemSubtypeData() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the description for the item.
|
java.util.Date |
getEntryDate()
Get the date this item was added to the database.
|
java.util.Map<DataFileTypeData,ItemSubtypeFileTypeData> |
getFileTypes()
The file types that can be used on items of this subtype.
|
int |
getItemType()
Get the item type this subtype can be applied to.
|
java.lang.String |
getName()
Get the name of the subtype which must be unique for subtypes related to a given item type.
|
(package private) java.util.Set<ItemSubtypeData> |
getParents()
This is the inverse end.
|
boolean |
getPushAnnotations()
If this flag is set, the annotations on items of this subtype should be
enabled for pushing to the parent item.
|
java.util.Map<java.lang.Integer,ItemSubtypeData> |
getRelatedSubtypes() |
java.lang.String |
getSystemId()
Override the property definition since we may have to update the system id
during installation.
|
boolean |
isRemoved()
Check if the removed flag is set for this item.
|
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setEntryDate(java.util.Date entryDate) |
(package private) void |
setFileTypes(java.util.Map<DataFileTypeData,ItemSubtypeFileTypeData> fileTypes) |
void |
setItemType(int itemType) |
void |
setName(java.lang.String name)
Set the name of the item.
|
(package private) void |
setParents(java.util.Set<ItemSubtypeData> parents) |
void |
setPushAnnotations(boolean pushAnnotations) |
(package private) void |
setRelatedSubtypes(java.util.Map<java.lang.Integer,ItemSubtypeData> relatedSubtypes) |
void |
setRemoved(boolean removed)
Set the removed flag for this item.
|
void |
setSystemId(java.lang.String systemId) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private java.lang.String name
private java.lang.String description
private boolean removed
private java.util.Date entryDate
private java.lang.String systemId
private int itemType
private boolean pushAnnotations
private java.util.Map<java.lang.Integer,ItemSubtypeData> relatedSubtypes
private java.util.Set<ItemSubtypeData> parents
private java.util.Map<DataFileTypeData,ItemSubtypeFileTypeData> fileTypes
public java.lang.String getName()
getName
in interface NameableData
String
with the name of the itempublic void setName(java.lang.String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic java.lang.String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(java.lang.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 otherwisepublic java.util.Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(java.util.Date entryDate)
public java.lang.String getSystemId()
getSystemId
in interface SystemData
public void setSystemId(java.lang.String systemId)
public int getItemType()
public void setItemType(int itemType)
public boolean getPushAnnotations()
public void setPushAnnotations(boolean pushAnnotations)
public java.util.Map<java.lang.Integer,ItemSubtypeData> getRelatedSubtypes()
void setRelatedSubtypes(java.util.Map<java.lang.Integer,ItemSubtypeData> relatedSubtypes)
java.util.Set<ItemSubtypeData> getParents()
getRelatedSubtypes()
.void setParents(java.util.Set<ItemSubtypeData> parents)
public java.util.Map<DataFileTypeData,ItemSubtypeFileTypeData> getFileTypes()
ItemSubtypeFileTypeData.getItemSubtype()
void setFileTypes(java.util.Map<DataFileTypeData,ItemSubtypeFileTypeData> fileTypes)