View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.3.0,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.codehaus.modello.test.features;
7   
8     //---------------------------------/
9    //- Imported classes and packages -/
10  //---------------------------------/
11  
12  import org.codehaus.modello.test.features.other.PackageNameFeature;
13  import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
14  
15  /**
16   * A simple class for association demo.
17   * 
18   * @version $Revision$ $Date$
19   */
20  @SuppressWarnings( "all" )
21  public class Reference
22      implements java.io.Serializable
23  {
24  
25        //--------------------------/
26       //- Class/Member Variables -/
27      //--------------------------/
28  
29      /**
30       * Field id.
31       */
32      private String id;
33  
34  
35        //-----------/
36       //- Methods -/
37      //-----------/
38  
39      /**
40       * Method equals.
41       * 
42       * @param other a other object.
43       * @return boolean
44       */
45      public boolean equals( Object other )
46      {
47          if ( this == other )
48          {
49              return true;
50          }
51  
52          if ( !( other instanceof Reference ) )
53          {
54              return false;
55          }
56  
57          Reference./../../../../org/codehaus/modello/test/features/Reference.html#Reference">Reference that = (Reference) other;
58          boolean result = true;
59  
60          result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
61  
62          return result;
63      } //-- boolean equals( Object )
64  
65      /**
66       * Get the id field.
67       * 
68       * @return String
69       */
70      public String getId()
71      {
72          return this.id;
73      } //-- String getId()
74  
75      /**
76       * Method hashCode.
77       * 
78       * @return int
79       */
80      public int hashCode()
81      {
82          int result = 17;
83  
84          result = 37 * result + ( id != null ? id.hashCode() : 0 );
85  
86          return result;
87      } //-- int hashCode()
88  
89      /**
90       * Set the id field.
91       * 
92       * @param id a id object.
93       */
94      public void setId( String id )
95      {
96          this.id = id;
97      } //-- void setId( String )
98  
99      /**
100      * Method toString.
101      * 
102      * @return String
103      */
104     public java.lang.String toString()
105     {
106         StringBuilder buf = new StringBuilder( 128 );
107 
108         buf.append( "id = '" );
109         buf.append( getId() );
110         buf.append( "'" );
111 
112         return buf.toString();
113     } //-- java.lang.String toString()
114 
115 }