Package de.isas.mztab2.model
Class Contact
- java.lang.Object
-
- de.isas.mztab2.model.IndexedElement
-
- de.isas.mztab2.model.Contact
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2020-02-11T15:11:41.249+01:00") public class Contact extends IndexedElement
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
elementType(String elementType)
Builder method for elementType.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.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
setName(String name)
Set name.String
toString()
-
Methods inherited from class de.isas.mztab2.model.IndexedElement
getElementType, getId, setElementType, setId
-
-
-
-
Constructor Detail
-
Contact
public Contact()
-
-
Method Detail
-
id
public Contact id(Integer id)
Description copied from class:IndexedElement
Builder method for id.- Overrides:
id
in classIndexedElement
- Parameters:
id
- aInteger
parameter.- Returns:
- IndexedElement
- See Also:
IndexedElement#setId for specification examples
,IndexedElement#getId for validation constraints
-
elementType
public Contact elementType(String elementType)
Description copied from class:IndexedElement
Builder method for elementType.- Overrides:
elementType
in classIndexedElement
- Parameters:
elementType
- aString
parameter.- Returns:
- IndexedElement
- See Also:
IndexedElement#setElementType for specification examples
,IndexedElement#getElementType 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
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classIndexedElement
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classIndexedElement
-
toString
public String toString()
- Overrides:
toString
in classIndexedElement
-
-