Package de.isas.mztab2.model
Class Contact
- java.lang.Object
-
- de.isas.mztab2.model.Contact
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2021-01-02T19:26:21.550+01:00") public class Contact extends Object
The contact’s name, affiliation and e-mail. Several contacts can be given by indicating the number in the square brackets after "contact". A contact has to be supplied in the format [first name] [initials] [last name].mzTab-M specification example(s):
MTD contact[1]-name James D. Watson MTD contact[1]-affiliation Cambridge University, UK MTD contact[1]-email watson@cam.ac.uk MTD contact[2]-name Francis Crick MTD contact[2]-affiliation Cambridge University, UK MTD contact[2]-email crick@cam.ac.uk
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Contact.Properties
Property enumeration for Contact.
-
Constructor Summary
Constructors Constructor Description Contact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contact
affiliation(String affiliation)
Builder method for affiliation.Contact
email(String email)
Builder method for email.boolean
equals(Object o)
String
getAffiliation()
The contact's affiliation.@Pattern(regexp="^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$") String
getEmail()
The contact's e-mail address.@Min(1L) Integer
getId()
Get id.String
getName()
The contact's name.int
hashCode()
Contact
id(Integer id)
Builder method for id.Contact
name(String name)
Builder method for name.void
setAffiliation(String affiliation)
Set affiliation.void
setEmail(String email)
Set email.void
setId(Integer id)
Set id.void
setName(String name)
Set name.String
toString()
-
-
-
Constructor Detail
-
Contact
public Contact()
-
-
Method Detail
-
id
public Contact id(Integer id)
Builder method for id.- Parameters:
id
- aInteger
parameter.- Returns:
- Contact
- See Also:
Contact#setId for specification examples
,Contact#getId for validation constraints
-
setId
public void setId(Integer id)
Set id.- Parameters:
id
- aInteger
parameter.- See Also:
Contact#getId for validation constraints
-
name
public Contact name(String name)
Builder method for name.- Parameters:
name
- aString
parameter.- Returns:
- Contact
- See Also:
Contact#setName for specification examples
,Contact#getName for validation constraints
-
setName
public void setName(String name)
Set name.- Parameters:
name
- aString
parameter.- See Also:
Contact#getName for validation constraints
-
affiliation
public Contact affiliation(String affiliation)
Builder method for affiliation.- Parameters:
affiliation
- aString
parameter.- Returns:
- Contact
- See Also:
Contact#setAffiliation for specification examples
,Contact#getAffiliation for validation constraints
-
getAffiliation
public String getAffiliation()
The contact's affiliation.- Returns:
- affiliation
-
setAffiliation
public void setAffiliation(String affiliation)
Set affiliation.- Parameters:
affiliation
- aString
parameter.- See Also:
Contact#getAffiliation for validation constraints
-
email
public Contact email(String email)
Builder method for email.- Parameters:
email
- aString
parameter.- Returns:
- Contact
- See Also:
Contact#setEmail for specification examples
,Contact#getEmail for validation constraints
-
getEmail
@Pattern(regexp="^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$") public @Pattern(regexp="^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$") String getEmail()
The contact's e-mail address.- Returns:
-
setEmail
public void setEmail(String email)
Set email.- Parameters:
email
- aString
parameter.- See Also:
Contact#getEmail for validation constraints
-
-