package de.mpicbg.knime.hcs.core.model;

/**
 * This class makes the connection between the Plate attribute names and the something readable. It's also a way to
 * what attributes are available (Could not find a decent way to derive this directly form the Plate class.
 * TODO: There is surly a neater way to do this. I don't like the fact, that if the Plate class changes, this might fail...
 *
 * @author Felix Meyenofer
 *         12/22/12
 */

public enum PlateAttribute implements java.io.Serializable {

    SCREENED_AT             ("screenedAt", "Date of Acquisition"),
    LIBRARY_PLATE_NUMBER    ("libraryPlateNumber", "Library Plate Number"),
    BARCODE                 ("barcode", "Barcode"),
    ASSAY                   ("assay", "Assay"),
    LIBRARY_CODE            ("libraryCode", "Library Code"),
    BATCH_NAME              ("batchName", "Batch Name"),
    REPLICATE               ("replicate", "Replicate");

    private final String name;
    private final String title;

    PlateAttribute(String name, String title) {
        this.name = name;
        this.title = title;
    }

    public String getName() {
        return this.name;
    }

    public String getTitle() {
        return this.title;
    }

}

@@ -555,23 +555,8 @@
 Date
- of Acquisition
 %22),%0A

change plate attribute "Date of Acquisition" into "Date"