public class RawDataType extends java.lang.Object implements java.lang.Comparable<RawDataType>
raw-data-types.xml
XML file. This file is parsed upon
startup by the RawDataTypes
class.
Raw data types are important for RawBioAssay
:s.
RawDataTypes
,
RawBioAssay
Modifier and Type | Field and Description |
---|---|
private int |
channels |
private java.lang.String |
description |
private boolean |
fileOnly |
private java.util.List<IntensityFormula> |
formulas |
private java.lang.String |
id |
private java.lang.String |
name |
private java.util.Map<java.lang.String,IntensityFormula> |
namedFormulas |
private java.util.Map<java.lang.String,RawDataProperty> |
namedProperties |
private PlatformData |
platform |
private java.util.List<RawDataProperty> |
properties |
private RealTable |
realTable |
private java.lang.String |
table |
private PlatformVariantData |
variant |
Modifier | Constructor and Description |
---|---|
(package private) |
RawDataType(PlatformData platform)
Create a new raw data type representing a file-only platform.
|
(package private) |
RawDataType(PlatformVariantData variant)
Create a new raw data type representing a file-only platform variant.
|
private |
RawDataType(java.lang.String id,
java.lang.String name,
java.lang.String description,
int channels,
boolean fileOnly,
PlatformData platform,
PlatformVariantData variant,
java.lang.String table,
java.util.List<RawDataProperty> properties,
java.util.List<IntensityFormula> formulas) |
(package private) |
RawDataType(java.lang.String id,
java.lang.String name,
java.lang.String description,
int channels,
java.lang.String table,
java.util.List<RawDataProperty> properties,
java.util.List<IntensityFormula> formulas)
Create a new
RawDataType . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RawDataType o)
Compare the id:s of the raw data types.
|
boolean |
equals(java.lang.Object obj) |
int |
getChannels()
The number of channels in this raw data type.
|
java.lang.String |
getDescription()
Get a description of this raw data type.
|
java.lang.String |
getEntityName() |
java.lang.String |
getId()
Get the id of this raw data type.
|
IntensityFormula |
getIntensityFormula(java.lang.String name) |
java.util.List<IntensityFormula> |
getIntensityFormulas() |
java.lang.String |
getName()
Get the name of this raw data type.
|
Platform |
getPlatform(DbControl dc)
Get the platform that this raw data type is associated with.
|
java.util.List<RawDataProperty> |
getProperties()
Get a list of
RawDataProperty :s with definitions for the
extra properties that has been defined for this raw data type. |
RawDataProperty |
getProperty(java.lang.String name) |
RawData |
getRawDataById(DbControl dc,
int id) |
RealTable |
getRealTable() |
java.lang.String |
getTableName()
Get the name of the database table that is used to store the extra
properties of this raw data type.
|
PlatformVariant |
getVariant(DbControl dc)
Get the platform variant that this raw data type is associated with.
|
int |
hashCode() |
boolean |
isStoredInDb()
If the raw data of this raw data type can be stored in the database
or not.
|
(package private) void |
setName(java.lang.String name)
Update the name.
|
java.lang.String |
toString() |
private final java.lang.String id
private java.lang.String name
private final java.lang.String description
private final boolean fileOnly
private final int channels
private final PlatformData platform
private final PlatformVariantData variant
private java.lang.String table
private RealTable realTable
private java.util.List<RawDataProperty> properties
private java.util.Map<java.lang.String,RawDataProperty> namedProperties
private java.util.List<IntensityFormula> formulas
private java.util.Map<java.lang.String,IntensityFormula> namedFormulas
RawDataType(java.lang.String id, java.lang.String name, java.lang.String description, int channels, java.lang.String table, java.util.List<RawDataProperty> properties, java.util.List<IntensityFormula> formulas)
RawDataType
.
See the getter methods for a description of the parametersRawDataType(PlatformData platform)
platform
- The platformRawDataType(PlatformVariantData variant)
variant
- The platform variantprivate RawDataType(java.lang.String id, java.lang.String name, java.lang.String description, int channels, boolean fileOnly, PlatformData platform, PlatformVariantData variant, java.lang.String table, java.util.List<RawDataProperty> properties, java.util.List<IntensityFormula> formulas)
public java.lang.String getId()
id
attribute of the <raw-data-type>
tag in the XML file.public Platform getPlatform(DbControl dc)
isStoredInDb()
returns true this
method will always return null.dc
- The DbControl to use for database accesspublic PlatformVariant getVariant(DbControl dc)
dc
- The DbControl to use for database accesspublic java.lang.String getName()
name
attribute of the <raw-data-type>
tag in the XML file. The name is not used by the core, but should be used
by client applications in the user interface.void setName(java.lang.String name)
public java.lang.String getDescription()
description
attribute of the <raw-data-type>
tag in the XML file. The description is not used by the core, but can be used
by client applications in help texts, etc.public int getChannels()
channels
attribute of the <raw-data-type>
tag in the XML file.public boolean isStoredInDb()
getTableName()
public java.lang.String getTableName()
table
attribute of the <raw-data-type>
tag in the XML file. The table name is normally not useful for
any client application.isStoredInDb()
public java.lang.String getEntityName()
public RealTable getRealTable()
public java.util.List<RawDataProperty> getProperties()
RawDataProperty
:s with definitions for the
extra properties that has been defined for this raw data type.List
object containing RawDataProperty
objectspublic RawDataProperty getProperty(java.lang.String name)
public java.util.List<IntensityFormula> getIntensityFormulas()
public IntensityFormula getIntensityFormula(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public RawData getRawDataById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
public int compareTo(RawDataType o)
compareTo
in interface java.lang.Comparable<RawDataType>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object