1
2
3
4
5
6
7
8
9 package org.openprovenance.model.printer;
10
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlAttribute;
14 import javax.xml.bind.annotation.XmlType;
15 import org.apache.commons.lang.builder.EqualsBuilder;
16 import org.apache.commons.lang.builder.HashCodeBuilder;
17 import org.apache.commons.lang.builder.ToStringBuilder;
18 import org.jvnet.jaxb2_commons.lang.Equals;
19 import org.jvnet.jaxb2_commons.lang.HashCode;
20 import org.jvnet.jaxb2_commons.lang.ToString;
21 import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
22 import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
23 import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder;
24
25
26 /***
27 * <p>Java class for ArtifactMapEntry complex type.
28 *
29 * <p>The following schema fragment specifies the expected content contained within this class.
30 *
31 * <pre>
32 * <complexType name="ArtifactMapEntry">
33 * <complexContent>
34 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
35 * <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
36 * <attribute name="display" type="{http://www.w3.org/2001/XMLSchema}string" />
37 * </restriction>
38 * </complexContent>
39 * </complexType>
40 * </pre>
41 *
42 *
43 */
44 @XmlAccessorType(XmlAccessType.FIELD)
45 @XmlType(name = "ArtifactMapEntry", namespace = "http://openprovenance.org/model/opmPrinterConfig")
46 public class ArtifactMapEntry
47 implements Equals, HashCode, ToString
48 {
49
50 @XmlAttribute
51 protected String value;
52 @XmlAttribute
53 protected String display;
54
55 /***
56 * Gets the value of the value property.
57 *
58 * @return
59 * possible object is
60 * {@link String }
61 *
62 */
63 public String getValue() {
64 return value;
65 }
66
67 /***
68 * Sets the value of the value property.
69 *
70 * @param value
71 * allowed object is
72 * {@link String }
73 *
74 */
75 public void setValue(String value) {
76 this.value = value;
77 }
78
79 /***
80 * Gets the value of the display property.
81 *
82 * @return
83 * possible object is
84 * {@link String }
85 *
86 */
87 public String getDisplay() {
88 return display;
89 }
90
91 /***
92 * Sets the value of the display property.
93 *
94 * @param value
95 * allowed object is
96 * {@link String }
97 *
98 */
99 public void setDisplay(String value) {
100 this.display = value;
101 }
102
103 public void equals(Object object, EqualsBuilder equalsBuilder) {
104 if (!(object instanceof ArtifactMapEntry)) {
105 equalsBuilder.appendSuper(false);
106 return ;
107 }
108 if (this == object) {
109 return ;
110 }
111 final ArtifactMapEntry that = ((ArtifactMapEntry) object);
112 equalsBuilder.append(this.getValue(), that.getValue());
113 equalsBuilder.append(this.getDisplay(), that.getDisplay());
114 }
115
116 public boolean equals(Object object) {
117 if (!(object instanceof ArtifactMapEntry)) {
118 return false;
119 }
120 if (this == object) {
121 return true;
122 }
123 final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
124 equals(object, equalsBuilder);
125 return equalsBuilder.isEquals();
126 }
127
128 public void hashCode(HashCodeBuilder hashCodeBuilder) {
129 hashCodeBuilder.append(this.getValue());
130 hashCodeBuilder.append(this.getDisplay());
131 }
132
133 public int hashCode() {
134 final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
135 hashCode(hashCodeBuilder);
136 return hashCodeBuilder.toHashCode();
137 }
138
139 public void toString(ToStringBuilder toStringBuilder) {
140 {
141 String theValue;
142 theValue = this.getValue();
143 toStringBuilder.append("value", theValue);
144 }
145 {
146 String theDisplay;
147 theDisplay = this.getDisplay();
148 toStringBuilder.append("display", theDisplay);
149 }
150 }
151
152 public String toString() {
153 final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
154 toString(toStringBuilder);
155 return toStringBuilder.toString();
156 }
157
158 }