Changeset 7618
- Timestamp:
- Mar 4, 2019, 7:46:01 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/core/net/sf/basedb/plugins/batchimport/AnnotationTypeImporter.java
r7331 r7618 114 114 115 115 /** 116 Column mapping parameter for "Is identifier" flag. 117 */ 118 private static final PluginParameter<String> isIdentifierColumnMapping = 119 new PluginParameter<String>( 120 "isIdentifierColumnMapping", 121 "Is identifier", 122 "Mapping that picks the 'Is identifier' flag from the data columns. " + 123 "Example: \\Is identifier\\", 124 optionalColumnMapping 125 ); 126 127 /** 116 128 Column mapping parameter for "Required for MIAME" flag. 117 129 */ … … 314 326 private Mapper multiplicityMapper; 315 327 private Mapper defaultValueMapper; 328 private Mapper isIdentifierMapper; 316 329 private Mapper miameMapper; 317 330 private Mapper protocolParameterMapper; … … 366 379 parameters.add(multiplicityColumnMapping); 367 380 parameters.add(defaultValueColumnMapping); 381 parameters.add(isIdentifierColumnMapping); 368 382 parameters.add(miameColumnMapping); 369 383 parameters.add(protocolParameterColumnMapping); … … 405 419 defaultValueMapper = getMapper(ffp, (String)job.getValue("defaultValueColumnMapping"), 406 420 cropStrings ? AnnotationType.MAX_DEFAULT_VALUE_LENGTH : null, null); 421 isIdentifierMapper = getMapper(ffp, (String)job.getValue("isIdentifierColumnMapping"), null, null); 407 422 miameMapper = getMapper(ffp, (String)job.getValue("miameColumnMapping"), null, null); 408 423 protocolParameterMapper = getMapper(ffp, (String)job.getValue("protocolParameterColumnMapping"), null, null); … … 444 459 if (multiplicityMapper != null) at.setMultiplicity(multiplicityMapper.getInt(data)); 445 460 if (defaultValueMapper != null) at.setDefaultValue(defaultValueMapper.getValue(data)); 461 if (isIdentifierMapper != null) at.setIdentifier(Values.getBoolean(isIdentifierMapper.getValue(data))); 446 462 if (miameMapper != null) at.setRequiredForMiame(Values.getBoolean(miameMapper.getValue(data))); 447 463 if (protocolParameterMapper != null) at.setProtocolParameter(Values.getBoolean(protocolParameterMapper.getValue(data)));
Note: See TracChangeset
for help on using the changeset viewer.