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.XmlSchemaType;
15  import javax.xml.bind.annotation.XmlType;
16  import org.apache.commons.lang.builder.EqualsBuilder;
17  import org.apache.commons.lang.builder.HashCodeBuilder;
18  import org.apache.commons.lang.builder.ToStringBuilder;
19  import org.jvnet.jaxb2_commons.lang.Equals;
20  import org.jvnet.jaxb2_commons.lang.HashCode;
21  import org.jvnet.jaxb2_commons.lang.ToString;
22  import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
23  import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
24  import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder;
25  
26  
27  /***
28   * <p>Java class for Profile complex type.
29   * 
30   * <p>The following schema fragment specifies the expected content contained within this class.
31   * 
32   * <pre>
33   * &lt;complexType name="Profile">
34   *   &lt;complexContent>
35   *     &lt;extension base="{http://openprovenance.org/model/v1.1.a}EmbeddedAnnotation">
36   *       &lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
37   *     &lt;/extension>
38   *   &lt;/complexContent>
39   * &lt;/complexType>
40   * </pre>
41   * 
42   * 
43   */
44  @XmlAccessorType(XmlAccessType.FIELD)
45  @XmlType(name = "Profile", namespace = "http://openprovenance.org/model/v1.1.a")
46  public class Profile
47      extends EmbeddedAnnotation
48      implements Equals, HashCode, ToString
49  {
50  
51      @XmlAttribute
52      @XmlSchemaType(name = "anyURI")
53      protected String value;
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      public void equals(Object object, EqualsBuilder equalsBuilder) {
80          if (!(object instanceof Profile)) {
81              equalsBuilder.appendSuper(false);
82              return ;
83          }
84          if (this == object) {
85              return ;
86          }
87          super.equals(object, equalsBuilder);
88          final Profile that = ((Profile) object);
89          equalsBuilder.append(this.getValue(), that.getValue());
90      }
91  
92      public boolean equals(Object object) {
93          if (!(object instanceof Profile)) {
94              return false;
95          }
96          if (this == object) {
97              return true;
98          }
99          final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
100         equals(object, equalsBuilder);
101         return equalsBuilder.isEquals();
102     }
103 
104     public void hashCode(HashCodeBuilder hashCodeBuilder) {
105         super.hashCode(hashCodeBuilder);
106         hashCodeBuilder.append(this.getValue());
107     }
108 
109     public int hashCode() {
110         final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
111         hashCode(hashCodeBuilder);
112         return hashCodeBuilder.toHashCode();
113     }
114 
115     public void toString(ToStringBuilder toStringBuilder) {
116         super.toString(toStringBuilder);
117         {
118             String theValue;
119             theValue = this.getValue();
120             toStringBuilder.append("value", theValue);
121         }
122     }
123 
124     public String toString() {
125         final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
126         toString(toStringBuilder);
127         return toStringBuilder.toString();
128     }
129 
130 }