001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 2.3.0, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.codehaus.modello.test.features; 007 008 //---------------------------------/ 009 //- Imported classes and packages -/ 010//---------------------------------/ 011 012import org.codehaus.modello.test.features.other.PackageNameFeature; 013import org.codehaus.modello.test.features.other.SubInterfaceInPackage; 014 015/** 016 * A simple class for association demo. 017 * 018 * @version $Revision$ $Date$ 019 */ 020@SuppressWarnings( "all" ) 021public class Reference 022 implements java.io.Serializable 023{ 024 025 //--------------------------/ 026 //- Class/Member Variables -/ 027 //--------------------------/ 028 029 /** 030 * Field id. 031 */ 032 private String id; 033 034 035 //-----------/ 036 //- Methods -/ 037 //-----------/ 038 039 /** 040 * Method equals. 041 * 042 * @param other a other object. 043 * @return boolean 044 */ 045 public boolean equals( Object other ) 046 { 047 if ( this == other ) 048 { 049 return true; 050 } 051 052 if ( !( other instanceof Reference ) ) 053 { 054 return false; 055 } 056 057 Reference that = (Reference) other; 058 boolean result = true; 059 060 result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) ); 061 062 return result; 063 } //-- boolean equals( Object ) 064 065 /** 066 * Get the id field. 067 * 068 * @return String 069 */ 070 public String getId() 071 { 072 return this.id; 073 } //-- String getId() 074 075 /** 076 * Method hashCode. 077 * 078 * @return int 079 */ 080 public int hashCode() 081 { 082 int result = 17; 083 084 result = 37 * result + ( id != null ? id.hashCode() : 0 ); 085 086 return result; 087 } //-- int hashCode() 088 089 /** 090 * Set the id field. 091 * 092 * @param id a id object. 093 */ 094 public void setId( String id ) 095 { 096 this.id = id; 097 } //-- void setId( String ) 098 099 /** 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}