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 java.lang.String |
description |
private java.lang.String |
externalId |
private boolean |
fileOnly |
private java.util.Set<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 PlatformData |
platform |
private java.lang.String |
rawDataType |
private java.lang.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.
|
java.lang.String |
getDescription()
Get the description for the item.
|
java.lang.String |
getExternalId()
Get the external id for the item.
|
(package private) java.util.Set<PlatformFileTypeData> |
getFileTypes()
The additional file types that can be used on this platform variant.
|
java.lang.String |
getName()
Get the name of the item.
|
PlatformData |
getPlatform()
The parent platform of this variant.
|
java.lang.String |
getRawDataType()
The raw data type this platform variant is locked to, or null.
|
java.lang.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(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.Set<PlatformFileTypeData> fileTypes) |
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setPlatform(PlatformData platform) |
void |
setRawDataType(java.lang.String rawDataType) |
void |
setRemovedBy(java.lang.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 java.lang.String name
private java.lang.String description
private java.lang.Integer removedBy
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 PlatformData platform
private java.util.Set<PlatformFileTypeData> fileTypes
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 java.lang.Integer getRemovedBy()
RemovableData
getRemovedBy
in interface RemovableData
public void setRemovedBy(java.lang.Integer removedBy)
RemovableData
setRemovedBy
in interface RemovableData
public 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 PlatformData getPlatform()
public void setPlatform(PlatformData platform)
java.util.Set<PlatformFileTypeData> getFileTypes()
PlatformFileTypeData.getVariant()
void setFileTypes(java.util.Set<PlatformFileTypeData> fileTypes)