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 classContact.PropertiesProperty enumeration for Contact.
-
Constructor Summary
Constructors Constructor Description Contact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contactaffiliation(String affiliation)Builder method for affiliation.ContactelementType(String elementType)Builder method for elementType.Contactemail(String email)Builder method for email.booleanequals(Object o)StringgetAffiliation()The contact's affiliation.@Pattern(regexp="^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$") StringgetEmail()The contact's e-mail address.StringgetName()The contact's name.inthashCode()Contactid(Integer id)Builder method for id.Contactname(String name)Builder method for name.voidsetAffiliation(String affiliation)Set affiliation.voidsetEmail(String email)Set email.voidsetName(String name)Set name.StringtoString()-
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:IndexedElementBuilder method for id.- Overrides:
idin classIndexedElement- Parameters:
id- aIntegerparameter.- Returns:
- IndexedElement
- See Also:
IndexedElement#setId for specification examples,IndexedElement#getId for validation constraints
-
elementType
public Contact elementType(String elementType)
Description copied from class:IndexedElementBuilder method for elementType.- Overrides:
elementTypein classIndexedElement- Parameters:
elementType- aStringparameter.- 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- aStringparameter.- Returns:
- Contact
- See Also:
Contact#setName for specification examples,Contact#getName for validation constraints
-
setName
public void setName(String name)
Set name.- Parameters:
name- aStringparameter.- See Also:
Contact#getName for validation constraints
-
affiliation
public Contact affiliation(String affiliation)
Builder method for affiliation.- Parameters:
affiliation- aStringparameter.- 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- aStringparameter.- See Also:
Contact#getAffiliation for validation constraints
-
email
public Contact email(String email)
Builder method for email.- Parameters:
email- aStringparameter.- 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- aStringparameter.- See Also:
Contact#getEmail for validation constraints
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classIndexedElement
-
hashCode
public int hashCode()
- Overrides:
hashCodein classIndexedElement
-
toString
public String toString()
- Overrides:
toStringin classIndexedElement
-
-