krysalis-version/src/java/org/krysalis/version/impl KrysalisVersion.java,1.23,1.24

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

Modified Files:
	KrysalisVersion.java 
Log Message:
Starting to expand the capabilities beyond the basic format & data elements
Lots more to do to complete this...

Index: KrysalisVersion.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/impl/KrysalisVersion.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** KrysalisVersion.java	5 Mar 2003 19:57:00 -0000	1.23
--- KrysalisVersion.java	7 Mar 2003 20:01:38 -0000	1.24
***************
*** 71,74 ****
--- 71,75 ----
  import org.krysalis.version.internal.data.VersionDataElement;
  import org.krysalis.version.internal.data.util.VersionDataIncrementor;
+ import org.krysalis.version.util.debug.DebugUtils;
  import org.krysalis.version.util.debug.Dumpable;
  
***************
*** 239,244 ****
       * @param buildNumber
       */
!     public KrysalisVersion(String id, int major, int minor)
!         {
          this(
              id,
--- 240,244 ----
       * @param buildNumber
       */
!     public KrysalisVersion(String id, int major, int minor) {
          this(
              id,
***************
*** 260,264 ****
       * @param buildNumber
       */
!     public KrysalisVersion(String id, int major, int minor, ReleaseLevel releaseLevel)
          throws VersionException {
          this(
--- 260,268 ----
       * @param buildNumber
       */
!     public KrysalisVersion(
!         String id,
!         int major,
!         int minor,
!         ReleaseLevel releaseLevel)
          throws VersionException {
          this(
***************
*** 273,277 ****
      }
  
- 
      /**
       * Constructor for Version.
--- 277,280 ----
***************
*** 282,286 ****
       * @param buildNumber
       */
!     public KrysalisVersion(String id, int major, int minor, ReleaseLevel releaseLevel, int point)
          throws VersionException {
          this(
--- 285,294 ----
       * @param buildNumber
       */
!     public KrysalisVersion(
!         String id,
!         int major,
!         int minor,
!         ReleaseLevel releaseLevel,
!         int point)
          throws VersionException {
          this(
***************
*** 361,384 ****
       * @param buildNumber
       */
!   /*  public KrysalisVersion(
!         String identifier,
!         String major,
!         String minor,
!         String releaseLevel,
!         String point,
!         String buildNumber,
!         Map attributes)
!         throws VersionException {
!         this(
!             identifier,
!             new VersionData(
!                 major,
!                 minor,
!                 releaseLevel,
!                 point,
!                 buildNumber,
!                 attributes));
!     }
! */
      /**
       * Constructor for Version.
--- 369,392 ----
       * @param buildNumber
       */
!     /*  public KrysalisVersion(
!           String identifier,
!           String major,
!           String minor,
!           String releaseLevel,
!           String point,
!           String buildNumber,
!           Map attributes)
!           throws VersionException {
!           this(
!               identifier,
!               new VersionData(
!                   major,
!                   minor,
!                   releaseLevel,
!                   point,
!                   buildNumber,
!                   attributes));
!       }
!     */
      /**
       * Constructor for Version.
***************
*** 496,500 ****
                      + " : "
                      + other.toString());
!        return equal;
      }
  
--- 504,508 ----
                      + " : "
                      + other.toString());
!         return equal;
      }
  
***************
*** 560,611 ****
          return m_data.getAttributes();
      }
!     
      /**
        * Returns the major.
        * @return int
        */
!      public int getMajor() {
!          return m_data.getMajor();
!      }
! 
!      /**
!       * Returns the minor.
!       * @return int
!       */
!      public int getMinor() {
!          return m_data.getMinor();
!      }
  
!      /**
!           * Returns the point.
!           * @return int
!           */
!      public int getPoint() {
!          return m_data.getPoint();
!      }
  
!      /**
           * Returns the point.
!           * @return int
!           */
!      public int getBuildNumber() {
!          return m_data.getBuildNumber();
!      }
  
!      /**
!       * Returns the releaseLevel.
!       * @return ReleaseLevel
!       */
!      public String getReleaseLevel() {
!          return m_data.getReleaseLevelAsString();
!      }
  
!      /**
!       * Returns the releaseQualifier.
!       * @return ReleaseQualifier
!       */
!      public int getReleaseQualifier() {
!          return m_data.getReleaseQualifier();
!      }
  
      /**
--- 568,619 ----
          return m_data.getAttributes();
      }
! 
      /**
        * Returns the major.
        * @return int
        */
!     public int getMajor() {
!         return m_data.getMajor();
!     }
  
!     /**
!      * Returns the minor.
!      * @return int
!      */
!     public int getMinor() {
!         return m_data.getMinor();
!     }
  
!     /**
           * Returns the point.
!          * @return int
!          */
!     public int getPoint() {
!         return m_data.getPoint();
!     }
  
!     /**
!         * Returns the point.
!          * @return int
!          */
!     public int getBuildNumber() {
!         return m_data.getBuildNumber();
!     }
  
!     /**
!      * Returns the releaseLevel.
!      * @return ReleaseLevel
!      */
!     public String getReleaseLevel() {
!         return m_data.getReleaseLevelAsString();
!     }
! 
!     /**
!      * Returns the releaseQualifier.
!      * @return ReleaseQualifier
!      */
!     public int getReleaseQualifier() {
!         return m_data.getReleaseQualifier();
!     }
  
      /**
***************
*** 660,669 ****
  
      public void dump(PrintWriter out, int depth) {
!         if (null != m_identifier)
!             m_identifier.dump(out);
!         if (null != m_data)
!             m_data.dump(out);
!         if (null != m_format)
!             m_format.dump(out);
      }
  }
--- 668,691 ----
  
      public void dump(PrintWriter out, int depth) {
!         final String indent = DebugUtils.getIndent(depth);
! 
!         if (null != m_identifier) {
!             out.print(indent);
!             out.println("Identifier:");
!             m_identifier.dump(out, depth + 1);
!         }
! 
!         if (null != m_format) {
!             out.print(indent);
!             out.println("Format:");
!             m_format.dump(out, depth + 1);
!         }
! 
!         if (null != m_data) {
!             out.print(indent);
!             out.println("Data:");
! 
!             m_data.dump(out, depth + 1);
!         }
      }
  }




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
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.