Package org.apache.ivy.plugins.version
Class MavenTimedSnapshotVersionMatcher.MavenSnapshotRevision
- java.lang.Object
-
- org.apache.ivy.plugins.version.MavenTimedSnapshotVersionMatcher.MavenSnapshotRevision
-
- Enclosing class:
- MavenTimedSnapshotVersionMatcher
public static final class MavenTimedSnapshotVersionMatcher.MavenSnapshotRevision extends java.lang.ObjectRepresents a Maven 2 snapshot version, which is either a regular snapshot (for example: 1.0.2-SNAPSHOT) or a timestamped snapshot (for example: 1.0.2-20100925.223013-19)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseRevision()Returns the "base" revision that thisMavenTimedSnapshotVersionMatcher.MavenSnapshotRevisionrepresents.java.lang.StringgetRevision()Returns the complete/whole revision thisMavenTimedSnapshotVersionMatcher.MavenSnapshotRevisionrepresents.booleanisTimestampedSnapshot()Returns true if thisMavenTimedSnapshotVersionMatcher.MavenSnapshotRevisionrepresents a timestamped snapshot version.
-
-
-
Method Detail
-
isTimestampedSnapshot
public boolean isTimestampedSnapshot()
Returns true if thisMavenTimedSnapshotVersionMatcher.MavenSnapshotRevisionrepresents a timestamped snapshot version. Else returns false.- Returns:
- boolean
-
getBaseRevision
public java.lang.String getBaseRevision()
Returns the "base" revision that thisMavenTimedSnapshotVersionMatcher.MavenSnapshotRevisionrepresents. For example, for the regular snapshot revision1.2.3-SNAPSHOT, the base revision is1.2.3. Similarly for timestamped snapshot version1.0.2-20100925.223013-19, the base revision is1.0.2- Returns:
- String
-
getRevision
public java.lang.String getRevision()
Returns the complete/whole revision thisMavenTimedSnapshotVersionMatcher.MavenSnapshotRevisionrepresents. For example, if thisMavenTimedSnapshotVersionMatcher.MavenSnapshotRevisionrepresents a regular snapshot1.3.4-SNAPSHOTrevision then this method returns1.3.4-SNAPSHOT. Similarly, if thisMavenTimedSnapshotVersionMatcher.MavenSnapshotRevisionrepresents a timestamped snapshot1.0.2-20100925.223013-19revision, then this method returns1.0.2-20100925.223013-19- Returns:
- String
-
-