public class PlatformVariantData extends BasicData implements NameableData, RemovableData
PlatformVariant
,
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 Set<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 PlatformData |
platform |
private String |
rawDataType |
private Integer |
removedBy |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
PlatformVariantData() |
Modifier and Type | Method and Description |
---|---|
int |
getChannels()
The number of channels this platform variant uses.
|
String |
getDescription()
Get the description for the item.
|
String |
getExternalId()
Get the external id for the item.
|
(package private) Set<PlatformFileTypeData> |
getFileTypes()
The additional file types that can be used on this platform variant.
|
String |
getName()
Get the name of the item.
|
PlatformData |
getPlatform()
The parent platform of this variant.
|
String |
getRawDataType()
The raw data type this platform variant is locked to, or null.
|
Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
boolean |
isFileOnly()
If this platform variant 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(Set<PlatformFileTypeData> fileTypes) |
void |
setName(String name)
Set the name of the item.
|
void |
setPlatform(PlatformData platform) |
void |
setRawDataType(String rawDataType) |
void |
setRemovedBy(Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
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 PlatformData platform
private Set<PlatformFileTypeData> fileTypes
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 PlatformData getPlatform()
public void setPlatform(PlatformData platform)
Set<PlatformFileTypeData> getFileTypes()
PlatformFileTypeData.getVariant()
void setFileTypes(Set<PlatformFileTypeData> fileTypes)