|
3.0.2: 2012-01-25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.DataFileTypeData
public class DataFileTypeData
This class hols information about individual files attached to items that store data in files instead of in the database.
DataFileType
,
Developer documentation: Experimental platforms and item subtypesField Summary | |
---|---|
private String |
description
|
private String |
extension
|
private String |
externalId
|
private ItemSubtypeData |
genericType
|
private Set<ItemSubtypeFileTypeData> |
itemSubtypes
|
private int |
itemType
|
static int |
MAX_EXTENSION_LENGTH
The maximum length of the file extension that can be stored in the database. |
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external ID that can be stored in the database. |
private Set<FileSetMemberData> |
members
|
private String |
name
|
private Set<PlatformFileTypeData> |
platforms
|
private boolean |
removed
|
Fields inherited from interface net.sf.basedb.core.data.NameableData |
---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
Constructor Summary | |
---|---|
DataFileTypeData()
|
Method Summary | |
---|---|
String |
getDescription()
Get the description for the item. |
String |
getExtension()
Get the extension that files of this type usually have. |
String |
getExternalId()
Get the external id for the item. |
(package private) Set<FileSetMemberData> |
getFileSetMembers()
This is the inverse end. |
ItemSubtypeData |
getGenericType()
Get the generic file type of files with this member type. |
(package private) Set<ItemSubtypeFileTypeData> |
getItemSubtypes()
The subtypes that this file type can be used with. |
int |
getItemType()
The item type this file type can be associated with. |
String |
getName()
Get the name of the item. |
(package private) Set<PlatformFileTypeData> |
getPlatforms()
This is the inverse end. |
boolean |
isRemoved()
Check if the removed flag is set for this item. |
void |
setDescription(String description)
Set the description for the item. |
void |
setExtension(String extension)
|
void |
setExternalId(String externalId)
|
(package private) void |
setFileSetMembers(Set<FileSetMemberData> members)
|
void |
setGenericType(ItemSubtypeData genericType)
|
(package private) void |
setItemSubtypes(Set<ItemSubtypeFileTypeData> itemSubtypes)
|
void |
setItemType(int itemType)
|
void |
setName(String name)
Set the name of the item. |
(package private) void |
setPlatforms(Set<PlatformFileTypeData> platforms)
|
void |
setRemoved(boolean removed)
Set the removed flag for this item. |
Methods inherited from class net.sf.basedb.core.data.BasicData |
---|
equals, getId, getVersion, hashCode, setId, setVersion, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
---|
getId, getVersion |
Field Detail |
---|
private String name
private String description
private boolean removed
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate String externalId
public static final int MAX_EXTENSION_LENGTH
private String extension
private int itemType
private Set<ItemSubtypeFileTypeData> itemSubtypes
private ItemSubtypeData genericType
private Set<PlatformFileTypeData> platforms
private Set<FileSetMemberData> members
Constructor Detail |
---|
public DataFileTypeData()
Method Detail |
---|
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 otherwisepublic String getExternalId()
public void setExternalId(String externalId)
public String getExtension()
public void setExtension(String extension)
public int getItemType()
public void setItemType(int itemType)
Set<ItemSubtypeFileTypeData> getItemSubtypes()
void setItemSubtypes(Set<ItemSubtypeFileTypeData> itemSubtypes)
public ItemSubtypeData getGenericType()
public void setGenericType(ItemSubtypeData genericType)
Set<PlatformFileTypeData> getPlatforms()
PlatformFileTypeData.getDataFileType()
void setPlatforms(Set<PlatformFileTypeData> platforms)
Set<FileSetMemberData> getFileSetMembers()
FileSetMemberData.getDataFileType()
void setFileSetMembers(Set<FileSetMemberData> members)
|
3.0.2: 2012-01-25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |