|
From: <jg...@us...> - 2006-08-07 12:59:57
|
Revision: 42 Author: jgongo Date: 2006-08-07 05:59:49 -0700 (Mon, 07 Aug 2006) ViewCVS: http://svn.sourceforge.net/surveyforge/?rev=42&view=rev Log Message: ----------- Added default toString implementation Modified Paths: -------------- trunk/surveyforge-classification/src/main/java/org/surveyforge/classification/Item.java Modified: trunk/surveyforge-classification/src/main/java/org/surveyforge/classification/Item.java =================================================================== --- trunk/surveyforge-classification/src/main/java/org/surveyforge/classification/Item.java 2006-08-07 12:59:18 UTC (rev 41) +++ trunk/surveyforge-classification/src/main/java/org/surveyforge/classification/Item.java 2006-08-07 12:59:49 UTC (rev 42) @@ -126,6 +126,7 @@ // TODO: Index entries // TODO: Classification translations - Solved for the moment, we should change the way to access the strings to provide proper // control of languages + // TODO: Check for duplicated codes in constructors /** Constructor provided for persistence engine. */ private Item( ) @@ -481,4 +482,10 @@ { return this.getVersion( ).hashCode( ) ^ this.getCode( ).hashCode( ); } + + @Override + public String toString( ) + { + return this.getOficialTitle( ); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |