Package uk.ac.ebi.pride.jmztab2.model
Class OptColumnMappingBuilder.IndexedElementOptColumnMappingBuilder
- java.lang.Object
-
- uk.ac.ebi.pride.jmztab2.model.OptColumnMappingBuilder.IndexedElementOptColumnMappingBuilder
-
- All Implemented Interfaces:
IOptColumnMappingBuilder
- Enclosing class:
- OptColumnMappingBuilder
public static class OptColumnMappingBuilder.IndexedElementOptColumnMappingBuilder extends Object
Create a newOptColumnMappingBuilder
forIndexedElement
. Either referencing an indexed element property with a dedicated name, or with a parameter. This applies only to the referenced objects.opt_assay[1]_someProperty ... opt_assay[1]_cv_MS_MS:113123_parameter_name <somePropertyValue> ... <parameter_name_value>
-
-
Constructor Summary
Constructors Constructor Description IndexedElementOptColumnMappingBuilder(Object indexedElement)
Configure this builder to create optional column mapping for an indexed element, such asAssay
,StudyVariable
, orMsRun
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptColumnMapping
build(String value)
Use the current builder state to create an OptColumnMapping with the provided value for e.g. a particular feature (row).OptColumnMappingBuilder.IndexedElementOptColumnMappingBuilder
withName(String name)
OptColumnMappingBuilder.IndexedElementOptColumnMappingBuilder
withParameter(Parameter parameter)
-
-
-
Constructor Detail
-
IndexedElementOptColumnMappingBuilder
public IndexedElementOptColumnMappingBuilder(Object indexedElement)
Configure this builder to create optional column mapping for an indexed element, such asAssay
,StudyVariable
, orMsRun
.- Parameters:
indexedElement
- the indexed element to reference in this optional column.
-
-
Method Detail
-
withName
public OptColumnMappingBuilder.IndexedElementOptColumnMappingBuilder withName(String name)
-
withParameter
public OptColumnMappingBuilder.IndexedElementOptColumnMappingBuilder withParameter(Parameter parameter)
-
build
public OptColumnMapping build(String value)
Description copied from interface:IOptColumnMappingBuilder
Use the current builder state to create an OptColumnMapping with the provided value for e.g. a particular feature (row).- Parameters:
value
- the value for the mapping.- Returns:
- the optional column mapping built from this builder instance.
-
-