|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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
,
Data API - Experimental platformsField Summary | |
---|---|
private String |
description
|
private String |
extension
|
private String |
externalId
|
private FileTypeData |
genericType
|
private int |
itemType
|
static int |
MAX_CLASSNAME_LENGTH
The maximum length of the class name that can be stored in the database. |
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. |
static int |
MAX_JARPATH_LENGTH
|
private Set<FileSetMemberData> |
members
|
private String |
metadataReaderClass
|
private String |
metadataReaderJarPath
|
private String |
name
|
private Set<PlatformFileTypeData> |
platforms
|
private boolean |
removed
|
private String |
validatorClass
|
private String |
validatorJarPath
|
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. |
FileTypeData |
getGenericType()
Get the generic file type of files with this member type. |
int |
getItemType()
The item type this file type can be associated with. |
String |
getMetadataReaderClass()
Get the class name of the Java class that extracts metadata from this file type. |
String |
getMetadataReaderJarPath()
Get the path to the JAR file where the validator class is located. |
String |
getName()
Get the name of the item. |
(package private) Set<PlatformFileTypeData> |
getPlatforms()
This is the inverse end. |
String |
getValidatorClass()
Get the class name of the Java class that is the validator for this file type. |
String |
getValidatorJarPath()
Get the path to the JAR file where the validator class is located. |
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(FileTypeData genericType)
|
void |
setItemType(int itemType)
|
void |
setMetadataReaderClass(String metadataReaderClass)
|
void |
setMetadataReaderJarPath(String metadataReaderJarPath)
|
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. |
void |
setValidatorClass(String validatorClass)
|
void |
setValidatorJarPath(String validatorJarPath)
|
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
public static final int MAX_CLASSNAME_LENGTH
private String validatorClass
public static final int MAX_JARPATH_LENGTH
private String validatorJarPath
private String metadataReaderClass
private String metadataReaderJarPath
private int itemType
private FileTypeData 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 String getValidatorClass()
DataFileValidator
interface. Null if there is no validator for this file type.
public void setValidatorClass(String validatorClass)
public String getValidatorJarPath()
public void setValidatorJarPath(String validatorJarPath)
public String getMetadataReaderClass()
DataFileMetadataReader
interface. Null if there is no extractor for this file type.
public void setMetadataReaderClass(String metadataReaderClass)
public String getMetadataReaderJarPath()
public void setMetadataReaderJarPath(String metadataReaderJarPath)
public int getItemType()
public void setItemType(int itemType)
public FileTypeData getGenericType()
public void setGenericType(FileTypeData genericType)
Set<PlatformFileTypeData> getPlatforms()
PlatformFileTypeData.getDataFileType()
void setPlatforms(Set<PlatformFileTypeData> platforms)
Set<FileSetMemberData> getFileSetMembers()
FileSetMemberData.getDataFileType()
void setFileSetMembers(Set<FileSetMemberData> members)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |