View Javadoc
1   package org.kuali.ole.describe.bo;
2   
3   import org.kuali.rice.core.api.util.ConcreteKeyValue;
4   import org.kuali.rice.core.api.util.KeyValue;
5   import org.kuali.rice.krad.keyvalues.KeyValuesBase;
6   
7   import java.util.ArrayList;
8   import java.util.List;
9   
10  /**
11   * DublinElementValuesFinder used to render element values for Dublin Editor
12   */
13  public class DublinElementValuesFinder extends KeyValuesBase {
14      /**
15       * This method returns the List of ConcreteKeyValue,,
16       * ConcreteKeyValue has two argument MethodCode and
17       * MethodName.
18       *
19       * @return List<KeyValue>
20       */
21      @Override
22      public List<KeyValue> getKeyValues() {
23          List<KeyValue> options = new ArrayList<KeyValue>();
24          options.add(new ConcreteKeyValue("default", "Select an Element"));
25          options.add(new ConcreteKeyValue("dc:contributor", "Contributor"));
26          options.add(new ConcreteKeyValue("dc:coverage", "Coverage"));
27          options.add(new ConcreteKeyValue("dc:creator", "Creator"));
28          options.add(new ConcreteKeyValue("dc:date", "Date"));
29          options.add(new ConcreteKeyValue("dc:description", "Description"));
30          options.add(new ConcreteKeyValue("dc:format", "Format"));
31          options.add(new ConcreteKeyValue("dc:identifier", "identifier"));
32          options.add(new ConcreteKeyValue("dc:language", "Language"));
33          options.add(new ConcreteKeyValue("dc:publisher", "Publisher"));
34          options.add(new ConcreteKeyValue("dc:relation", "Relation"));
35          options.add(new ConcreteKeyValue("dc:rights", "Rights"));
36          options.add(new ConcreteKeyValue("dc:source", "Source"));
37          options.add(new ConcreteKeyValue("dc:subject", "Subject"));
38          options.add(new ConcreteKeyValue("dc:title", "Title"));
39          options.add(new ConcreteKeyValue("dc:type", "Type"));
40          return options;
41      }
42  }