Revision: 905
http://treebase.svn.sourceforge.net/treebase/?rev=905&view=rev
Author: rvos
Date: 2011-06-10 14:45:52 +0000 (Fri, 10 Jun 2011)
Log Message:
-----------
Added override of AbstractPersistedObject.getLabel(), which is there to simplify NeXML generation by creating a uniform way of getting the human readable label for things (rather than having to guess between getTitle() or getName())
Modified Paths:
--------------
trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharSet.java
Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharSet.java
===================================================================
--- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharSet.java 2011-06-08 19:44:15 UTC (rev 904)
+++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharSet.java 2011-06-10 14:45:52 UTC (rev 905)
@@ -58,6 +58,16 @@
public String getTitle() {
return mTitle;
}
+
+ /**
+ * This method is here to simplify NeXML generation. It overrides the
+ * method in AbstractPersistedObject
+ * @return
+ */
+ @Transient
+ public String getLabel() {
+ return getTitle();
+ }
/**
* Set the Title field.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|