incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 36804 - incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump
Date Tue, 24 Aug 2004 04:54:46 GMT
Author: nickchalko
Date: Mon Aug 23 21:54:46 2004
New Revision: 36804

Added:
   incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersion.java
   incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersionFormat.java
   incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersionSpecification.java
Log:
Added GumpVersion

Added: incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersion.java
==============================================================================
--- (empty file)
+++ incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersion.java
Mon Aug 23 21:54:46 2004
@@ -0,0 +1,83 @@
+/*
+ * Copyright  2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.depot.version.impl.gump;
+
+import java.util.Comparator;
+
+import org.apache.depot.version.Version;
+import org.apache.depot.version.VersionException;
+import org.apache.depot.version.specification.VersionSpecification;
+
+/**
+ * 
+ */
+public class GumpVersion implements Version {
+
+	public final static VersionSpecification SPECIFICATION = new GumpVersionSpecification();
+	
+	private final long buildNumber;
+	
+
+	/**
+	 * @param versionString
+	 */
+	public GumpVersion(String versionString) {
+		versionString=versionString.trim();
+		buildNumber=Long.parseLong(versionString);
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.Version#isCompatible(org.apache.depot.version.Version)
+	 */
+	public boolean isCompatible(Version version) {
+		
+		return false;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.Version#increment(java.lang.String)
+	 */
+	public Version increment(String level) throws VersionException {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.Version#getComparator()
+	 */
+	public Comparator getComparator() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	/* (non-Javadoc)
+	 * @see java.lang.Comparable#compareTo(java.lang.Object)
+	 */
+	public int compareTo(Object o) {
+		// TODO Auto-generated method stub
+		return 0;
+	}
+	
+	/**
+	 * Returns the format.
+	 * 
+	 * @return VersionSpecification
+	 */
+	public VersionSpecification getSpecification() {
+		return SPECIFICATION ;
+	}
+
+}

Added: incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersionFormat.java
==============================================================================
--- (empty file)
+++ incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersionFormat.java
Mon Aug 23 21:54:46 2004
@@ -0,0 +1,77 @@
+/*
+ * Copyright  2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */package org.apache.depot.version.impl.gump;
+
+import java.io.PrintWriter;
+
+import org.apache.depot.version.impl.data.VersionData;
+import org.apache.depot.version.specification.formatting.VersionFormat;
+import org.apache.depot.version.specification.formatting.VersionFormatException;
+
+/**
+ *
+ */
+public class GumpVersionFormat implements VersionFormat {
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.formatting.VersionFormat#getFormatId()
+	 */
+	public String getFormatId() {
+		
+		return "org.apache.gump.version.format";
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.formatting.VersionFormat#getVersionFormatDescription()
+	 */
+	public String getVersionFormatDescription() {
+		// TODO Auto-generated method stub
+		return "gumped projects";
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.formatting.VersionFormat#parseVersion(java.lang.String)
+	 */
+	public VersionData parseVersionData(String version)
+			throws VersionFormatException {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.formatting.VersionFormat#toVersionString(org.apache.depot.version.impl.data.VersionData)
+	 */
+	public String toVersionString(VersionData data) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.formatting.VersionFormat#format(org.apache.depot.version.impl.data.VersionData,
java.lang.String)
+	 */
+	public String format(VersionData data, String styleName) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.common.util.debug.Dumpable#dump(java.io.PrintWriter, int, boolean)
+	 */
+	public void dump(PrintWriter out, int depth, boolean verbose) {
+		// TODO Auto-generated method stub
+
+	}
+
+}

Added: incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersionSpecification.java
==============================================================================
--- (empty file)
+++ incubator/depot/trunk/version/src/java/org/apache/depot/version/impl/gump/GumpVersionSpecification.java
Mon Aug 23 21:54:46 2004
@@ -0,0 +1,80 @@
+/*
+ * Copyright  2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.depot.version.impl.gump;
+
+import java.io.PrintWriter;
+import java.util.Map;
+
+import org.apache.depot.version.VersionException;
+import org.apache.depot.version.VersionMarker;
+import org.apache.depot.version.impl.VersionIdentifier;
+import org.apache.depot.version.specification.VersionSpecification;
+import org.apache.depot.version.specification.formatting.VersionFormat;
+
+/**
+ */
+public class GumpVersionSpecification implements VersionSpecification {
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.VersionSpecification#getId()
+	 */
+	public String getId() {
+		
+		return "org.apache.gump.version";
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.VersionSpecification#getDescription()
+	 */
+	public String getDescription() {
+		// TODO Auto-generated method stub
+		return "Gump built project,  DO NOT TRUST";
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.VersionSpecification#getElementMask()
+	 */
+	public int getElementMask() {
+		// TODO Auto-generated method stub
+		return 0;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.VersionSpecification#getVersionFormat()
+	 */
+	public VersionFormat getVersionFormat() {
+		
+		return new GumpVersionFormat();
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.version.specification.VersionSpecification#createVersionMarker(org.apache.depot.version.impl.VersionIdentifier,
java.lang.String, java.util.Map)
+	 */
+	public VersionMarker createVersionMarker(VersionIdentifier id,
+			String versionString, Map properties) throws VersionException {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	/* (non-Javadoc)
+	 * @see org.apache.depot.common.util.debug.Dumpable#dump(java.io.PrintWriter, int, boolean)
+	 */
+	public void dump(PrintWriter out, int depth, boolean verbose) {
+		// TODO Auto-generated method stub
+
+	}
+
+}

Mime
View raw message