X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=cms%2Forg.argeo.slc.repo%2Fsrc%2Forg%2Feclipse%2Faether%2Fversion%2FVersionScheme.java;fp=cms%2Forg.argeo.slc.repo%2Fsrc%2Forg%2Feclipse%2Faether%2Fversion%2FVersionScheme.java;h=0000000000000000000000000000000000000000;hb=6fc94d69efe089414ac9e63bde3efab1cbf7b7ca;hp=c19177a229f97eb8b9237edf8ea1b1f8d7120fda;hpb=b36c62642bd0db11b3133b369cc026fd4b7a1ec6;p=gpl%2Fargeo-slc.git diff --git a/cms/org.argeo.slc.repo/src/org/eclipse/aether/version/VersionScheme.java b/cms/org.argeo.slc.repo/src/org/eclipse/aether/version/VersionScheme.java deleted file mode 100644 index c19177a22..000000000 --- a/cms/org.argeo.slc.repo/src/org/eclipse/aether/version/VersionScheme.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2011 Sonatype, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Sonatype, Inc. - initial API and implementation - *******************************************************************************/ -package org.eclipse.aether.version; - -/** - * A version scheme that handles interpretation of version strings to facilitate their comparison. - */ -public interface VersionScheme -{ - - /** - * Parses the specified version string, for example "1.0". - * - * @param version The version string to parse, must not be {@code null}. - * @return The parsed version, never {@code null}. - * @throws InvalidVersionSpecificationException If the string violates the syntax rules of this scheme. - */ - Version parseVersion( String version ) - throws InvalidVersionSpecificationException; - - /** - * Parses the specified version range specification, for example "[1.0,2.0)". - * - * @param range The range specification to parse, must not be {@code null}. - * @return The parsed version range, never {@code null}. - * @throws InvalidVersionSpecificationException If the range specification violates the syntax rules of this scheme. - */ - VersionRange parseVersionRange( String range ) - throws InvalidVersionSpecificationException; - - /** - * Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0),(2.0,)". - * - * @param constraint The constraint specification to parse, must not be {@code null}. - * @return The parsed version constraint, never {@code null}. - * @throws InvalidVersionSpecificationException If the constraint specification violates the syntax rules of this - * scheme. - */ - VersionConstraint parseVersionConstraint( final String constraint ) - throws InvalidVersionSpecificationException; - -}