001package org.kuali.ole.describe.bo;
002
003import org.kuali.rice.core.api.util.ConcreteKeyValue;
004import org.kuali.rice.core.api.util.KeyValue;
005import org.kuali.rice.krad.keyvalues.KeyValuesBase;
006
007import java.util.ArrayList;
008import java.util.List;
009
010/**
011 * DublinElementValuesFinder used to render element values for Dublin Editor
012 */
013public class WorkDublinElementValuesFinder
014        extends KeyValuesBase {
015    /**
016     * This method returns the List of ConcreteKeyValue,,
017     * ConcreteKeyValue has two argument MethodCode and
018     * MethodName.
019     *
020     * @return List<KeyValue>
021     */
022    @Override
023    public List<KeyValue> getKeyValues() {
024        List<KeyValue> options = new ArrayList<KeyValue>();
025        options.add(new ConcreteKeyValue("default", "Select an Element"));
026
027        // Dublin
028//        options.add(new ConcreteKeyValue("contributor", "Contributor"));
029//        options.add(new ConcreteKeyValue("coverage", "Coverage"));
030//        options.add(new ConcreteKeyValue("creator", "Creator"));
031//        options.add(new ConcreteKeyValue("date", "Date"));
032//        options.add(new ConcreteKeyValue("description", "Description"));
033//        options.add(new ConcreteKeyValue("format", "Format"));
034//        options.add(new ConcreteKeyValue("identifier", "identifier"));
035//        options.add(new ConcreteKeyValue("language", "Language"));
036//        options.add(new ConcreteKeyValue("publisher", "Publisher"));
037//        options.add(new ConcreteKeyValue("relation", "Relation"));
038//        options.add(new ConcreteKeyValue("rights", "Rights"));
039//        options.add(new ConcreteKeyValue("source", "Source"));
040//        options.add(new ConcreteKeyValue("subject", "Subject"));
041//        options.add(new ConcreteKeyValue("title", "Title"));
042//        options.add(new ConcreteKeyValue("type", "Type"));
043
044        // Dublin Unq
045        options.add(new ConcreteKeyValue("dc:contributor", "Contributor"));
046        options.add(new ConcreteKeyValue("dc:coverage", "Coverage"));
047        options.add(new ConcreteKeyValue("dc:creator", "Creator"));
048        options.add(new ConcreteKeyValue("dc:date", "Date"));
049        options.add(new ConcreteKeyValue("dc:description", "Description"));
050        options.add(new ConcreteKeyValue("dc:format", "Format"));
051        options.add(new ConcreteKeyValue("dc:identifier", "identifier"));
052        options.add(new ConcreteKeyValue("dc:language", "Language"));
053        options.add(new ConcreteKeyValue("dc:publisher", "Publisher"));
054        options.add(new ConcreteKeyValue("dc:relation", "Relation"));
055        options.add(new ConcreteKeyValue("dc:rights", "Rights"));
056        options.add(new ConcreteKeyValue("dc:source", "Source"));
057        options.add(new ConcreteKeyValue("dc:subject", "Subject"));
058        options.add(new ConcreteKeyValue("dc:title", "Title"));
059        options.add(new ConcreteKeyValue("dc:type", "Type"));
060
061        //Dublin values
062        return options;
063    }
064}