public class ProjectVersionRef extends ProjectRef implements VersionedRef<ProjectVersionRef>, Serializable
Constructor and Description |
---|
ProjectVersionRef(ProjectRef ref,
String versionSpec) |
ProjectVersionRef(ProjectRef ref,
VersionSpec versionSpec) |
ProjectVersionRef(String groupId,
String artifactId,
String versionString) |
ProjectVersionRef(String groupId,
String artifactId,
VersionSpec versionSpec) |
asProjectRef, compareTo, getArtifactId, getGroupId
public ProjectVersionRef(ProjectRef ref, VersionSpec versionSpec)
public ProjectVersionRef(ProjectRef ref, String versionSpec) throws InvalidVersionSpecificationException
public ProjectVersionRef(String groupId, String artifactId, VersionSpec versionSpec)
public ProjectVersionRef(String groupId, String artifactId, String versionString) throws InvalidVersionSpecificationException
public static ProjectVersionRef parse(String gav)
public ProjectVersionRef asProjectVersionRef()
public ArtifactRef asPomArtifact()
public ArtifactRef asArtifactRef(String type, String classifier)
public ArtifactRef asArtifactRef(String type, String classifier, boolean optional)
public ArtifactRef asArtifactRef(TypeAndClassifier tc)
public ArtifactRef asArtifactRef(TypeAndClassifier tc, boolean optional)
public boolean isRelease()
isRelease
in interface VersionedRef<ProjectVersionRef>
public boolean isSpecificVersion()
isSpecificVersion
in interface VersionedRef<ProjectVersionRef>
public boolean matchesVersion(SingleVersion version)
matchesVersion
in interface VersionedRef<ProjectVersionRef>
public ProjectVersionRef selectVersion(String version)
selectVersion
in interface VersionedRef<ProjectVersionRef>
public ProjectVersionRef selectVersion(String version, boolean force)
selectVersion
in interface VersionedRef<ProjectVersionRef>
public ProjectVersionRef selectVersion(SingleVersion version)
selectVersion
in interface VersionedRef<ProjectVersionRef>
public ProjectVersionRef selectVersion(SingleVersion version, boolean force)
selectVersion
in interface VersionedRef<ProjectVersionRef>
protected ProjectVersionRef newRef(String groupId, String artifactId, SingleVersion version)
public VersionSpec getVersionSpec()
getVersionSpec
in interface VersionedRef<ProjectVersionRef>
public int hashCode()
hashCode
in class ProjectRef
public boolean versionlessEquals(ProjectVersionRef other)
public boolean equals(Object obj)
equals
in class ProjectRef
public String toString()
toString
in class ProjectRef
public boolean isCompound()
isCompound
in interface VersionedRef<ProjectVersionRef>
public boolean isSnapshot()
isSnapshot
in interface VersionedRef<ProjectVersionRef>
public String getVersionString()
getVersionString
in interface VersionedRef<ProjectVersionRef>
public boolean isVariableVersion()
Copyright © 2013. All Rights Reserved.