Author: ruschein
Date: 2011-03-02 15:05:38 -0800 (Wed, 02 Mar 2011)
New Revision: 24294
Modified:
core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTable.java
Log:
Overloaded toString() on the Mutability enum to be more user friendly.
Modified: core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTable.java
===================================================================
--- core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTable.java
2011-03-02 22:23:40 UTC (rev 24293)
+++ core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTable.java
2011-03-02 23:05:38 UTC (rev 24294)
@@ -44,7 +44,18 @@
*/
public interface CyTable extends Identifiable {
public static enum Mutability {
- MUTABLE, PERMANENTLY_IMMUTABLE,
IMMUTABLE_DUE_TO_VIRT_COLUMN_REFERENCES
+ MUTABLE("mutable"),
+ PERMANENTLY_IMMUTABLE("permanently immutable"),
+ IMMUTABLE_DUE_TO_VIRT_COLUMN_REFERENCES("immutable due to
virtual column references");
+
+ private String humanReadableRepresentation;
+
+ Mutability(final String humanReadableRepresentation) {
+ this.humanReadableRepresentation =
humanReadableRepresentation;
+ }
+
+ @Override
+ final public String toString() { return
humanReadableRepresentation; }
}
/**
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.