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

[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-serv11553/src/java/org/krysalis/version/internal/data/util

Modified Files:
	VersionDataComparison.java 
Log Message:
Docs

Index: VersionDataComparison.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/internal/data/util/VersionDataComparison.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** VersionDataComparison.java	16 Feb 2003 14:43:20 -0000	1.5
--- VersionDataComparison.java	17 Feb 2003 06:27:26 -0000	1.6
***************
*** 284,350 ****
  
      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;
  
!         if ("<".equals(type))
              typeVal = TYPE_LESS_THAN;
!         else if ("<=".equals(type))
              typeVal = TYPE_LESS_THAN_OR_EQUAL;
!         else if ("=".equals(type))
              typeVal = TYPE_EQUAL;
!         else if ("!=".equals(type))
              typeVal = TYPE_NOT_EQUAL;
!         else if (">".equals(type))
              typeVal = TYPE_GREATER_THAN;
!         else if (">=".equals(type))
              typeVal = TYPE_GREATER_THAN_OR_EQUAL;
          else
--- 284,354 ----
  
      private String getWordForType() {
!         String representation = "Unknown";
  
!         switch (m_type) {
!             case TYPE_UNSET :
!                 {
!                     representation = "Unset";
!                     break;
!                 }
  
!             case TYPE_LESS_THAN :
!                 {
!                     representation = "LessThan";
!                     break;
!                 }
  
!             case TYPE_LESS_THAN_OR_EQUAL :
!                 {
!                     representation = "ThankThanOrEqualTo";
!                     break;
!                 }
  
!             case TYPE_EQUAL :
!                 {
!                     representation = "EqualTo";
!                     break;
!                 }
  
!             case TYPE_NOT_EQUAL :
!                 {
!                     representation = "NotEqualTo";
!                     break;
!                 }
  
!             case TYPE_GREATER_THAN :
!                 {
!                     representation = "GreaterThan";
!                     break;
!                 }
  
!             case TYPE_GREATER_THAN_OR_EQUAL :
!                 {
!                     representation = "GreaterThanOrEqualTo";
!                     break;
!                 }
!         }
  
!         return representation;
!     }
  
      private int getTypeForString(String type) throws VersionException {
          int typeVal = TYPE_UNSET;
  
!         if ("<".equals(type) || "LessThan".equalsIgnoreCase(type))
              typeVal = TYPE_LESS_THAN;
!         else if (
!             "<=".equals(type)
!                 || "LessThanOrEqualTo".equalsIgnoreCase(type))
              typeVal = TYPE_LESS_THAN_OR_EQUAL;
!         else if ("=".equals(type) || "EqualTo".equalsIgnoreCase(type))
              typeVal = TYPE_EQUAL;
!         else if ("!=".equals(type) || "NotEqualTo".equalsIgnoreCase(type))
              typeVal = TYPE_NOT_EQUAL;
!         else if (">".equals(type) || "GreaterThan".equalsIgnoreCase(type))
              typeVal = TYPE_GREATER_THAN;
!         else if (
!             ">=".equals(type)
!                 || "GreaterThanOrEqualTo".equalsIgnoreCase(type))
              typeVal = TYPE_GREATER_THAN_OR_EQUAL;
          else




-------------------------------------------------------
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.