public class MavenGavInfo extends Object
| Constructor and Description |
|---|
MavenGavInfo()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static MavenGavInfo |
fromResource(org.apache.maven.wagon.resource.Resource resource)
Parses the resource name and returns the GAV information.
|
String |
getArtifactId() |
String |
getClassifier() |
String |
getFullName() |
String |
getGroupId() |
String |
getHashAlgorithm() |
String |
getName() |
String |
getSnapshotId() |
String |
getType() |
String |
getVersion() |
boolean |
isHash() |
boolean |
isMavenMetaData() |
boolean |
isSnapshot() |
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setFullName(String fullName) |
void |
setGroupId(String groupId) |
void |
setHash(boolean hash) |
void |
setHashAlgorithm(String hashAlgorithm) |
void |
setMavenMetaData(boolean mavenMetaData) |
void |
setName(String name) |
void |
setSnapshot(boolean snapshot) |
void |
setSnapshotId(String snapshotId) |
void |
setType(String type) |
void |
setVersion(String version) |
String |
toString() |
public static MavenGavInfo fromResource(org.apache.maven.wagon.resource.Resource resource)
Parses the resource name and returns the GAV information. An example of a Resource that might be passed in is:
org/example/schema/my-schema/1.3/my-schema-1.3.xsdxsd/XsdDocument/29873-21983-2497822-1989/1.0/29873-21983-2497822-1989-1.0.pomresource - the Wagon Resourcepublic String getGroupId()
public void setGroupId(String groupId)
groupId - the groupId to setpublic String getArtifactId()
public void setArtifactId(String artifactId)
artifactId - the artifactId to setpublic String getVersion()
public void setVersion(String version)
version - the version to setpublic String getType()
public void setType(String type)
type - the type to setpublic String toString()
toString in class ObjectObject.toString()public String getClassifier()
public void setClassifier(String classifier)
classifier - the classifier to setpublic String getName()
public void setName(String name)
name - the name to setpublic boolean isHash()
public void setHash(boolean hash)
hash - the hash to setpublic boolean isSnapshot()
public void setSnapshot(boolean snapshot)
snapshot - the snapshot to setpublic String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId - the snapshotId to setpublic String getFullName()
public void setFullName(String fullName)
fullName - the fullName to setpublic boolean isMavenMetaData()
public void setMavenMetaData(boolean mavenMetaData)
mavenMetaData - the mavenMetaData to setpublic String getHashAlgorithm()
public void setHashAlgorithm(String hashAlgorithm)
hashAlgorithm - the hashAlgorithm to setCopyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.