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 String |
description |
private String |
externalId |
private boolean |
fileOnly |
private 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 String |
name |
private String |
rawDataType |
private Integer |
removedBy |
private 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.
|
String |
getDescription()
Get the description for the item.
|
String |
getExternalId()
Get the external id for the item.
|
Map<FileTypeIndex,PlatformFileTypeData> |
getFileTypes()
The file types that can be used on this platform.
|
String |
getName()
Get the name of the item.
|
String |
getRawDataType()
The raw data type this platform is locked to, or null.
|
Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
(package private) Set<PlatformVariantData> |
getVariants()
The variants of this platform.
|
boolean |
isFileOnly()
If this platform can only be used with files.
|
void |
setChannels(int channels) |
void |
setDescription(String description)
Set the description for the item.
|
void |
setExternalId(String externalId) |
void |
setFileOnly(boolean fileOnly) |
(package private) void |
setFileTypes(Map<FileTypeIndex,PlatformFileTypeData> fileTypes) |
void |
setName(String name)
Set the name of the item.
|
void |
setRawDataType(String rawDataType) |
void |
setRemovedBy(Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
(package private) void |
setVariants(Set<PlatformVariantData> variants) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private String name
private String description
private Integer removedBy
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate String externalId
private boolean fileOnly
private String rawDataType
private int channels
private Map<FileTypeIndex,PlatformFileTypeData> fileTypes
private Set<PlatformVariantData> variants
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 Integer getRemovedBy()
RemovableData
getRemovedBy
in interface RemovableData
public void setRemovedBy(Integer removedBy)
RemovableData
setRemovedBy
in interface RemovableData
public String getExternalId()
public void setExternalId(String externalId)
public boolean isFileOnly()
public void setFileOnly(boolean fileOnly)
public String getRawDataType()
public void setRawDataType(String rawDataType)
public int getChannels()
public void setChannels(int channels)
public Map<FileTypeIndex,PlatformFileTypeData> getFileTypes()
PlatformFileTypeData.getPlatform()
void setFileTypes(Map<FileTypeIndex,PlatformFileTypeData> fileTypes)
Set<PlatformVariantData> getVariants()
PlatformVariantData.getPlatform()
void setVariants(Set<PlatformVariantData> variants)