Package de.isas.mztab2.model
Class Database
- java.lang.Object
-
- de.isas.mztab2.model.Database
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2021-01-02T19:26:21.550+01:00") public class Database extends Object
Specification of databases. (empty): The description of databases used. For cases, where a known database has not been used for identification, a userParam SHOULD be inserted to describe any identification performed e.g. de novo. If no identification has been performed at all then "no database" should be inserted followed by null. prefix: The prefix used in the “identifier” column of data tables. For the “no database” case "null" must be used. version: The database version is mandatory where identification has been performed. This may be a formal version number e.g. “1.4.1”, a date of access “2016-10-27” (ISO-8601 format) or “Unknown” if there is no suitable version that can be annotated. uri: The URI to the database. For the “no database” case, "null" must be reported.mzTab-M specification example(s):
MTD database[1] [MIRIAM, MIR:00100079, HMDB, ] MTD database[1]-prefix hmdb MTD database[1]-version 3.6 MTD database[1]-uri http://www.hmdb.ca/ MTD database[2] [,, "de novo", ] MTD database[2]-prefix dn MTD database[2]-version Unknown MTD database[2]-uri null MTD database[3] [,, "no database", null ] MTD database[3]-prefix null MTD database[3]-version Unknown MTD database[3]-uri null
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Database.Properties
Property enumeration for Database.
-
Constructor Summary
Constructors Constructor Description Database()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@Min(1L) Integer
getId()
Get id.@NotNull @Valid Parameter
getParam()
The parameter to identify this database.@NotNull String
getPrefix()
The database prefix.@NotNull String
getUri()
The URI to the online database.@NotNull String
getVersion()
The database version.int
hashCode()
Database
id(Integer id)
Builder method for id.Database
param(Parameter param)
Builder method for param.Database
prefix(String prefix)
Builder method for prefix.void
setId(Integer id)
Set id.void
setParam(Parameter param)
Set param.void
setPrefix(String prefix)
Set prefix.void
setUri(String uri)
Set uri.void
setVersion(String version)
Set version.String
toString()
Database
uri(String uri)
Builder method for uri.Database
version(String version)
Builder method for version.
-
-
-
Constructor Detail
-
Database
public Database()
-
-
Method Detail
-
id
public Database id(Integer id)
Builder method for id.- Parameters:
id
- aInteger
parameter.- Returns:
- Database
- See Also:
Database#setId for specification examples
,Database#getId for validation constraints
-
setId
public void setId(Integer id)
Set id.- Parameters:
id
- aInteger
parameter.- See Also:
Database#getId for validation constraints
-
param
public Database param(Parameter param)
Builder method for param.- Parameters:
param
- aParameter
parameter.- Returns:
- Database
- See Also:
Database#setParam for specification examples
,Database#getParam for validation constraints
-
getParam
@NotNull @Valid public @NotNull @Valid Parameter getParam()
The parameter to identify this database.- Returns:
- param
-
setParam
public void setParam(Parameter param)
Set param.- Parameters:
param
- aParameter
parameter.- See Also:
Database#getParam for validation constraints
-
prefix
public Database prefix(String prefix)
Builder method for prefix.- Parameters:
prefix
- aString
parameter.- Returns:
- Database
- See Also:
Database#setPrefix for specification examples
,Database#getPrefix for validation constraints
-
setPrefix
public void setPrefix(String prefix)
Set prefix.- Parameters:
prefix
- aString
parameter.- See Also:
Database#getPrefix for validation constraints
-
version
public Database version(String version)
Builder method for version.- Parameters:
version
- aString
parameter.- Returns:
- Database
- See Also:
Database#setVersion for specification examples
,Database#getVersion for validation constraints
-
getVersion
@NotNull public @NotNull String getVersion()
The database version.- Returns:
- version
-
setVersion
public void setVersion(String version)
Set version.- Parameters:
version
- aString
parameter.- See Also:
Database#getVersion for validation constraints
-
uri
public Database uri(String uri)
Builder method for uri.- Parameters:
uri
- aString
parameter.- Returns:
- Database
- See Also:
Database#setUri for specification examples
,Database#getUri for validation constraints
-
setUri
public void setUri(String uri)
Set uri.- Parameters:
uri
- aString
parameter.- See Also:
Database#getUri for validation constraints
-
-