Subversion Repositories SmartDukaan

Rev

Rev 81 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 81 Rev 99
Line 28... Line 28...
28
	 * Un-structured free-form part of bullet instance
28
	 * Un-structured free-form part of bullet instance
29
	 */
29
	 */
30
	private FreeformContent freeformContent;
30
	private FreeformContent freeformContent;
31
	
31
	
32
	/**
32
	/**
-
 
33
	 * Reference to Bullet's unit
-
 
34
	 */
-
 
35
	private long unitID;
-
 
36
	
-
 
37
	/**
33
	 * 
38
	 * 
34
	 * @param dataObject mandatory structured data instance
39
	 * @param dataObject mandatory structured data instance
35
	 */
40
	 */
36
	public Bullet(BulletDataObject dataObject) {
41
	public Bullet(BulletDataObject dataObject) {
37
		this.dataObject = dataObject;
42
		this.dataObject = dataObject;
Line 78... Line 83...
78
			return this.dataObject.equals(((Bullet)obj).getDataObject());
83
			return this.dataObject.equals(((Bullet)obj).getDataObject());
79
		}
84
		}
80
		
85
		
81
		return false;
86
		return false;
82
	}
87
	}
-
 
88
 
-
 
89
	/**
-
 
90
	 * @param unitID the unitID to set
-
 
91
	 */
-
 
92
	public void setUnitID(long unitID) {
-
 
93
		this.unitID = unitID;
83
	
94
	}
-
 
95
 
-
 
96
	/**
-
 
97
	 * @return the unitID
-
 
98
	 */
-
 
99
	public long getUnitID() {
-
 
100
		return unitID;
-
 
101
	}
-
 
102
 
84
	/* (non-Javadoc)
103
	/* (non-Javadoc)
85
	 * @see java.lang.Object#toString()
104
	 * @see java.lang.Object#toString()
86
	 */
105
	 */
87
	@Override
106
	@Override
88
	public String toString() {
107
	public String toString() {
89
		return "Bullet [dataObject=" + dataObject + ", freeformContent="
108
		return "Bullet [dataObject=" + dataObject + ", freeformContent="
90
				+ freeformContent + "]";
109
				+ freeformContent + ", unitID=" + unitID + "]";
91
	}
110
	}
92
 
111
 
93
}
112
}