Package de.isas.mztab2.model
Class Instrument
- java.lang.Object
-
- de.isas.mztab2.model.Instrument
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2021-01-02T19:25:37.430+01:00") public class Instrument extends Object
The name, source, analyzer and detector of the instruments used in the experiment. Multiple instruments are numbered [1-n].mzTab-M specification example(s):
MTD instrument[1]-name [MS, MS:1000449, LTQ Orbitrap,] MTD instrument[1]-source [MS, MS:1000073, ESI,] … MTD instrument[2]-source [MS, MS:1000598, ETD,] MTD instrument[1]-analyzer[1] [MS, MS:1000291, linear ion trap,] … MTD instrument[2]-analyzer[1] [MS, MS:1000484, orbitrap,] MTD instrument[1]-detector [MS, MS:1000253, electron multiplier,] … MTD instrument[2]-detector [MS, MS:1000348, focal plane collector,]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Instrument.Properties
Property enumeration for Instrument.
-
Constructor Summary
Constructors Constructor Description Instrument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instrument
addAnalyzerItem(Parameter analyzerItem)
Add a single analyzerItem to the analyzer collection.Instrument
analyzer(List<Parameter> analyzer)
Builder method for analyzer.Instrument
detector(Parameter detector)
Builder method for detector.boolean
equals(Object o)
@Valid List<Parameter>
getAnalyzer()
The instrument's mass analyzer, as defined by the parameter.@Valid Parameter
getDetector()
The instrument's detector, as defined by the parameter.@Min(1L) Integer
getId()
Get id.@Valid Parameter
getName()
Get name.@Valid Parameter
getSource()
The instrument's source, as defined by the parameter.int
hashCode()
Instrument
id(Integer id)
Builder method for id.Instrument
name(Parameter name)
Builder method for name.void
setAnalyzer(List<Parameter> analyzer)
Set analyzer.void
setDetector(Parameter detector)
Set detector.void
setId(Integer id)
Set id.void
setName(Parameter name)
Set name.void
setSource(Parameter source)
Set source.Instrument
source(Parameter source)
Builder method for source.String
toString()
-
-
-
Constructor Detail
-
Instrument
public Instrument()
-
-
Method Detail
-
id
public Instrument id(Integer id)
Builder method for id.- Parameters:
id
- aInteger
parameter.- Returns:
- Instrument
- See Also:
Instrument#setId for specification examples
,Instrument#getId for validation constraints
-
setId
public void setId(Integer id)
Set id.- Parameters:
id
- aInteger
parameter.- See Also:
Instrument#getId for validation constraints
-
name
public Instrument name(Parameter name)
Builder method for name.- Parameters:
name
- aParameter
parameter.- Returns:
- Instrument
- See Also:
Instrument#setName for specification examples
,Instrument#getName for validation constraints
-
setName
public void setName(Parameter name)
Set name.- Parameters:
name
- aParameter
parameter.- See Also:
Instrument#getName for validation constraints
-
source
public Instrument source(Parameter source)
Builder method for source.- Parameters:
source
- aParameter
parameter.- Returns:
- Instrument
- See Also:
Instrument#setSource for specification examples
,Instrument#getSource for validation constraints
-
getSource
@Valid public @Valid Parameter getSource()
The instrument's source, as defined by the parameter.- Returns:
- source
-
setSource
public void setSource(Parameter source)
Set source.- Parameters:
source
- aParameter
parameter.- See Also:
Instrument#getSource for validation constraints
-
analyzer
public Instrument analyzer(List<Parameter> analyzer)
Builder method for analyzer.- Parameters:
analyzer
- aList<Parameter>
parameter.- Returns:
- Instrument
- See Also:
Instrument#setAnalyzer for specification examples
,Instrument#getAnalyzer for validation constraints
-
addAnalyzerItem
public Instrument addAnalyzerItem(Parameter analyzerItem)
Add a single analyzerItem to the analyzer collection.- Parameters:
analyzerItem
- aParameter
parameter.- Returns:
- Instrument
- See Also:
Instrument#getAnalyzer for validation constraints
-
getAnalyzer
@Valid public @Valid List<Parameter> getAnalyzer()
The instrument's mass analyzer, as defined by the parameter.- Returns:
- analyzer
-
setAnalyzer
public void setAnalyzer(List<Parameter> analyzer)
Set analyzer.- Parameters:
analyzer
- aList<Parameter>
parameter.- See Also:
Instrument#getAnalyzer for validation constraints
-
detector
public Instrument detector(Parameter detector)
Builder method for detector.- Parameters:
detector
- aParameter
parameter.- Returns:
- Instrument
- See Also:
Instrument#setDetector for specification examples
,Instrument#getDetector for validation constraints
-
getDetector
@Valid public @Valid Parameter getDetector()
The instrument's detector, as defined by the parameter.- Returns:
- detector
-
setDetector
public void setDetector(Parameter detector)
Set detector.- Parameters:
detector
- aParameter
parameter.- See Also:
Instrument#getDetector for validation constraints
-
-