View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  /**
18   * Package for Dublin Format documents handling.
19   *
20   */
21  package org.kuali.ole.pojo.dublin;
22  
23  
24  /**
25   * Class to represent data entity DC Value of Work Bib Dublin Core Document.
26   *
27   * @author Rajesh Chowdary K
28   */
29  public class DCValue {
30      private String element   = null;
31      private String qualifier = null;
32      private String value     = null;
33  
34      public DCValue() {
35      }
36  
37      public DCValue(String element) {
38          this.element = element;
39      }
40  
41      public String getElement() {
42          return element;
43      }
44  
45      public void setElement(String element) {
46          this.element = element;
47      }
48  
49      public String getQualifier() {
50          return qualifier;
51      }
52  
53      public void setQualifier(String qualifier) {
54          this.qualifier = qualifier;
55      }
56  
57      public String getValue() {
58          return value;
59      }
60  
61      public void setValue(String value) {
62          this.value = value;
63      }
64  
65      @Override
66      public String toString() {
67          return "element=" + element + ", qualifier=" + qualifier + ", value=" + value;
68      }
69  
70      @Override
71      public boolean equals(Object obj) {
72          if (obj instanceof DCValue) {
73              DCValue dcValue = (DCValue) obj;
74              if (dcValue.getElement().equals(this.getElement())) {
75                  return true;
76              }
77              else {
78                  return false;
79              }
80          }
81          else {
82              return false;
83          }
84      }
85  }