View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-792 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2010.09.16 at 12:50:49 AM BST 
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   * &lt;complexType name="ArtifactMapEntry">
33   *   &lt;complexContent>
34   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
35   *       &lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
36   *       &lt;attribute name="display" type="{http://www.w3.org/2001/XMLSchema}string" />
37   *     &lt;/restriction>
38   *   &lt;/complexContent>
39   * &lt;/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 }