|
3.0.1: 2011-11-10 | ||||||||
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.MimeTypeData
public class MimeTypeData
This class holds information about mimetypes
MimeType
,
Developer documentation: Files and directoriesField Summary | |
---|---|
private boolean |
autoCompress
|
private String |
description
|
private Date |
entryDate
|
private String |
extension
|
private ItemSubtypeData |
fileType
|
static int |
MAX_EXTENSION_LENGTH
|
private String |
name
|
private boolean |
removed
|
Fields inherited from interface net.sf.basedb.core.data.NameableData |
---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
Constructor Summary | |
---|---|
MimeTypeData()
|
Method Summary | |
---|---|
boolean |
getAutoCompress()
If files of this MIME type should use auto-compression or not. |
String |
getDescription()
Get the description for the item. |
Date |
getEntryDate()
Get the date this item was added to the database. |
String |
getExtension()
Get the extension for this MimeType item. |
ItemSubtypeData |
getFileType()
Get the associated ItemSubtypeData item. |
String |
getName()
Get the name of the item. |
boolean |
isRemoved()
Check if the removed flag is set for this item. |
void |
setAutoCompress(boolean autoCompress)
|
void |
setDescription(String description)
Set the description for the item. |
void |
setEntryDate(Date entryDate)
|
void |
setExtension(String extension)
|
void |
setFileType(ItemSubtypeData fileType)
|
void |
setName(String name)
Set the name of the item. |
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 |
---|
public static final int MAX_EXTENSION_LENGTH
private String name
private String description
private boolean removed
private Date entryDate
private String extension
private ItemSubtypeData fileType
private boolean autoCompress
Constructor Detail |
---|
public MimeTypeData()
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 Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(Date entryDate)
public String getExtension()
MimeType
item.
public void setExtension(String extension)
public ItemSubtypeData getFileType()
ItemSubtypeData
item.
public void setFileType(ItemSubtypeData fileType)
public boolean getAutoCompress()
public void setAutoCompress(boolean autoCompress)
|
3.0.1: 2011-11-10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |