@Test public void testIsSnapshot() { Artifact a = new DefaultArtifact( "gid:aid:ext:cls:1.0" ); assertFalse( a.getVersion(), a.isSnapshot() ); a = new DefaultArtifact( "gid:aid:ext:cls:1.0-SNAPSHOT" ); assertTrue( a.getVersion(), a.isSnapshot() ); a = new DefaultArtifact( "gid:aid:ext:cls:1.0-20101116.150650-3" ); assertTrue( a.getVersion(), a.isSnapshot() ); a = new DefaultArtifact( "gid:aid:ext:cls:1.0-20101116x150650-3" ); assertFalse( a.getVersion(), a.isSnapshot() ); }
public String getVersion() { return version; }
DefaultArtifact extends AbstractArtifact { public String getVersion() { return version; } }
DefaultArtifact extends AbstractArtifact { public String getVersion() { return version; } DefaultArtifact( String coords );  DefaultArtifact( String coords, Map<String, String> properties );  DefaultArtifact( String groupId, String artifactId, String extension, String version );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            ArtifactType type );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            Map<String, String> properties, ArtifactType type );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            Map<String, String> properties, File file );   DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version, File file,
                     Map<String, String> properties ); }
DefaultArtifact extends AbstractArtifact { public String getVersion() { return version; } DefaultArtifact( String coords );  DefaultArtifact( String coords, Map<String, String> properties );  DefaultArtifact( String groupId, String artifactId, String extension, String version );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            ArtifactType type );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            Map<String, String> properties, ArtifactType type );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            Map<String, String> properties, File file );   DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version, File file,
                     Map<String, String> properties ); String getGroupId(); String getArtifactId(); String getVersion(); String getClassifier(); String getExtension(); File getFile(); Map<String, String> getProperties(); }
DefaultArtifact extends AbstractArtifact { public String getVersion() { return version; } DefaultArtifact( String coords );  DefaultArtifact( String coords, Map<String, String> properties );  DefaultArtifact( String groupId, String artifactId, String extension, String version );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            ArtifactType type );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            Map<String, String> properties, ArtifactType type );  DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version,
                            Map<String, String> properties, File file );   DefaultArtifact( String groupId, String artifactId, String classifier, String extension, String version, File file,
                     Map<String, String> properties ); String getGroupId(); String getArtifactId(); String getVersion(); String getClassifier(); String getExtension(); File getFile(); Map<String, String> getProperties();  }