krysalis-version/src/java/org/apache/depot/version VersionMarker.java,1.1,1.2
Nick Chalko <[email protected]>
| Newsgroups | gmane.comp.krysalis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/krysalis/krysalis-version/src/java/org/apache/depot/version
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4708/src/java/org/apache/depot/version
Modified Files:
VersionMarker.java
Log Message:
More basic work.
Index: VersionMarker.java
===================================================================
RCS file: /cvsroot/krysalis/krysalis-version/src/java/org/apache/depot/version/VersionMarker.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** VersionMarker.java 4 Nov 2004 08:32:31 -0000 1.1
--- VersionMarker.java 4 Nov 2004 08:42:13 -0000 1.2
***************
*** 15,19 ****
*/
-
package org.apache.depot.version;
--- 15,18 ----
***************
*** 21,25 ****
import java.util.Map;
-
// :TODO: Based upon thoughts from Anou..
//
--- 20,23 ----
***************
*** 34,49 ****
// Collecting --- brute force look-ups/extraction
// (Is "collecting" part of resolving?)
! // Parse --- could be put into the Version(String ) ctor.
// Others? Dep/Constr? etc.?
//
/**
! * WHAT IS THIS INTERFACCE FOR.
! * Version is just a "number" a VersionMarker. Is associated with a ID and therefer a program ?
! * What is the differnce between Attributes and Annontations
! *
! * NOTE: VersionMarker should be implemented as a Immutable object.
*
-
* @author $Author$
* @version $Revision$
--- 32,47 ----
// Collecting --- brute force look-ups/extraction
// (Is "collecting" part of resolving?)
! // Parse --- could be put into the Version(String ) ctor.
// Others? Dep/Constr? etc.?
//
/**
! * WHAT IS THIS INTERFACCE FOR. Version is just a "number" a VersionMarker. Is
! * associated with a ID and therefer a program ? What is the differnce between
! * Attributes and Annontations
! *
! * NOTE: VersionMarker should be implemented as a Immutable object.
! *
*
* @author $Author$
* @version $Revision$
***************
*** 51,60 ****
public interface VersionMarker extends Comparable {
/**
! * Get the globaly unique id for the Product. (org.apache.version)
! * This should be a SAFE name without special chars of spaces.
* @return String
*/
--- 49,104 ----
public interface VersionMarker extends Comparable {
+ public final static VersionMarker UNKNOWN = new VersionMarker() {
+ public String getId() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+ public Version getVersion() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getShortVersion() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getLongVersion() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getDefaultVersion() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Map getAttributes() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List getAnnotations() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public VersionSpecification getSpecification() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public int compareTo(Object arg0) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+ };
/**
! * Get the globaly unique id for the Product. (org.apache.version) This
! * should be a SAFE name without special chars of spaces.
! *
* @return String
*/
***************
*** 63,66 ****
--- 107,111 ----
/**
* Version (1.2.7)
+ *
* @return Version
*/
***************
*** 69,72 ****
--- 114,118 ----
/**
* Short Version (1.2)
+ *
* @return String
*/
***************
*** 75,89 ****
/**
* Long Version 1.2.7 (fred) built June 7,1981
* @return String
*/
! String getLongVersion(); // TODO: Rename as asLongFormat
-
/**
* Default Version 1.2.7 (fred) built June 7,1981
* @return String
*/
! String getDefaultVersion(); // TODO: Rename as asLongFormat
!
/**
* Get any associated attributes, or null if none.
--- 121,136 ----
/**
* Long Version 1.2.7 (fred) built June 7,1981
+ *
* @return String
*/
! String getLongVersion(); // TODO: Rename as asLongFormat
/**
* Default Version 1.2.7 (fred) built June 7,1981
+ *
* @return String
*/
! String getDefaultVersion(); // TODO: Rename as asLongFormat
!
/**
* Get any associated attributes, or null if none.
***************
*** 95,102 ****
*/
List getAnnotations();
!
!
/**
* The specifiaction used for this version.
* @return VersionSpecification
*/
--- 142,149 ----
*/
List getAnnotations();
!
/**
* The specifiaction used for this version.
+ *
* @return VersionSpecification
*/
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click