public class PlatformData extends BasicData implements NameableData, RemovableData
Platform
,
Developer documentation: Experimental platforms and item subtypesModifier and Type | Field and Description |
---|---|
private int |
channels |
private java.lang.String |
description |
private java.lang.String |
externalId |
private boolean |
fileOnly |
private java.util.Map<FileTypeIndex,PlatformFileTypeData> |
fileTypes |
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external ID that can be stored in the database.
|
private java.lang.String |
name |
private java.lang.String |
rawDataType |
private boolean |
removed |
private java.util.Set<PlatformVariantData> |
variants |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
PlatformData() |
Modifier and Type | Method and Description |
---|---|
int |
getChannels()
The number of channels this platform uses.
|
java.lang.String |
getDescription()
Get the description for the item.
|
java.lang.String |
getExternalId()
Get the external id for the item.
|
java.util.Map<FileTypeIndex,PlatformFileTypeData> |
getFileTypes()
The file types that can be used on this platform.
|
java.lang.String |
getName()
Get the name of the item.
|
java.lang.String |
getRawDataType()
The raw data type this platform is locked to, or null.
|
(package private) java.util.Set<PlatformVariantData> |
getVariants()
The variants of this platform.
|
boolean |
isFileOnly()
If this platform can only be used with files.
|
boolean |
isRemoved()
Check if the removed flag is set for this item.
|
void |
setChannels(int channels) |
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setExternalId(java.lang.String externalId) |
void |
setFileOnly(boolean fileOnly) |
(package private) void |
setFileTypes(java.util.Map<FileTypeIndex,PlatformFileTypeData> fileTypes) |
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setRawDataType(java.lang.String rawDataType) |
void |
setRemoved(boolean removed)
Set the removed flag for this item.
|
(package private) void |
setVariants(java.util.Set<PlatformVariantData> variants) |
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
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate java.lang.String externalId
private boolean fileOnly
private java.lang.String rawDataType
private int channels
private java.util.Map<FileTypeIndex,PlatformFileTypeData> fileTypes
private java.util.Set<PlatformVariantData> variants
public java.lang.String getName()
NameableData
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.lang.String getExternalId()
public void setExternalId(java.lang.String externalId)
public boolean isFileOnly()
public void setFileOnly(boolean fileOnly)
public java.lang.String getRawDataType()
public void setRawDataType(java.lang.String rawDataType)
public int getChannels()
public void setChannels(int channels)
public java.util.Map<FileTypeIndex,PlatformFileTypeData> getFileTypes()
PlatformFileTypeData.getPlatform()
void setFileTypes(java.util.Map<FileTypeIndex,PlatformFileTypeData> fileTypes)
java.util.Set<PlatformVariantData> getVariants()
PlatformVariantData.getPlatform()
void setVariants(java.util.Set<PlatformVariantData> variants)