krysalis-version/src/java/org/krysalis/version/internal/data/util VersionDataComparison.java,1.4,1.5

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/internal/data/util
In directory sc8-pr-cvs1:/tmp/cvs-serv16499/src/java/org/krysalis/version/internal/data/util

Modified Files:
	VersionDataComparison.java 
Log Message:
Try removing directories I thought I'd already removed.
Doc addition
Tinkering...

Index: VersionDataComparison.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/internal/data/util/VersionDataComparison.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** VersionDataComparison.java	16 Feb 2003 00:08:11 -0000	1.4
--- VersionDataComparison.java	16 Feb 2003 14:43:20 -0000	1.5
***************
*** 283,286 ****
--- 283,336 ----
      }
  
+     private String getWordForType() {
+       String representation = "Unknown";
+ 
+       switch (m_type) {
+           case TYPE_UNSET :
+               {
+                   representation = "Unset";
+                   break;
+               }
+ 
+           case TYPE_LESS_THAN :
+               {
+                   representation = "Less Than";
+                   break;
+               }
+ 
+           case TYPE_LESS_THAN_OR_EQUAL :
+               {
+                   representation = "Thank Than or Equal";
+                   break;
+               }
+ 
+           case TYPE_EQUAL :
+               {
+                   representation = "Equal";
+                   break;
+               }
+ 
+           case TYPE_NOT_EQUAL :
+               {
+                   representation = "Not Equal";
+                   break;
+               }
+ 
+           case TYPE_GREATER_THAN :
+               {
+                   representation = "Greater Than";
+                   break;
+               }
+ 
+           case TYPE_GREATER_THAN_OR_EQUAL :
+               {
+                   representation = "Greater Than or Equal";
+                   break;
+               }
+       }
+ 
+       return representation;
+   }
+ 
      private int getTypeForString(String type) throws VersionException {
          int typeVal = TYPE_UNSET;
***************
*** 321,325 ****
  
      public String toString() {
!         return getStringForType() + " " + m_comparisonData;
      }
  }
--- 371,375 ----
  
      public String toString() {
!         return getWordForType() + " : " + m_comparisonData;
      }
  }




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.