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;
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 Label complex type.
28   * 
29   * <p>The following schema fragment specifies the expected content contained within this class.
30   * 
31   * <pre>
32   * &lt;complexType name="Label">
33   *   &lt;complexContent>
34   *     &lt;extension base="{http://openprovenance.org/model/v1.1.a}EmbeddedAnnotation">
35   *       &lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
36   *     &lt;/extension>
37   *   &lt;/complexContent>
38   * &lt;/complexType>
39   * </pre>
40   * 
41   * 
42   */
43  @XmlAccessorType(XmlAccessType.FIELD)
44  @XmlType(name = "Label", namespace = "http://openprovenance.org/model/v1.1.a")
45  public class Label
46      extends EmbeddedAnnotation
47      implements Equals, HashCode, ToString
48  {
49  
50      @XmlAttribute
51      protected String value;
52  
53      /***
54       * Gets the value of the value property.
55       * 
56       * @return
57       *     possible object is
58       *     {@link String }
59       *     
60       */
61      public String getValue() {
62          return value;
63      }
64  
65      /***
66       * Sets the value of the value property.
67       * 
68       * @param value
69       *     allowed object is
70       *     {@link String }
71       *     
72       */
73      public void setValue(String value) {
74          this.value = value;
75      }
76  
77      public void equals(Object object, EqualsBuilder equalsBuilder) {
78          if (!(object instanceof Label)) {
79              equalsBuilder.appendSuper(false);
80              return ;
81          }
82          if (this == object) {
83              return ;
84          }
85          super.equals(object, equalsBuilder);
86          final Label that = ((Label) object);
87          equalsBuilder.append(this.getValue(), that.getValue());
88      }
89  
90      public boolean equals(Object object) {
91          if (!(object instanceof Label)) {
92              return false;
93          }
94          if (this == object) {
95              return true;
96          }
97          final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
98          equals(object, equalsBuilder);
99          return equalsBuilder.isEquals();
100     }
101 
102     public void hashCode(HashCodeBuilder hashCodeBuilder) {
103         super.hashCode(hashCodeBuilder);
104         hashCodeBuilder.append(this.getValue());
105     }
106 
107     public int hashCode() {
108         final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
109         hashCode(hashCodeBuilder);
110         return hashCodeBuilder.toHashCode();
111     }
112 
113     public void toString(ToStringBuilder toStringBuilder) {
114         super.toString(toStringBuilder);
115         {
116             String theValue;
117             theValue = this.getValue();
118             toStringBuilder.append("value", theValue);
119         }
120     }
121 
122     public String toString() {
123         final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
124         toString(toStringBuilder);
125         return toStringBuilder.toString();
126     }
127 
128 }