org.overlord.sramp.wagon.models
Class MavenGavInfo
java.lang.Object
org.overlord.sramp.wagon.models.MavenGavInfo
public class MavenGavInfo
- extends Object
GAV info for maven.
- Author:
- eric.wittmann@redhat.com
MavenGavInfo
public MavenGavInfo()
- Default constructor.
fromResource
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:
Format 1: org/example/schema/my-schema/1.3/my-schema-1.3.xsd
Format 2: xsd/XsdDocument/29873-21983-2497822-1989/1.0/29873-21983-2497822-1989-1.0.pom
- Parameters:
resource - the Wagon Resource
- Returns:
- the maven GAV info
getGroupId
public String getGroupId()
- Returns:
- the groupId
setGroupId
public void setGroupId(String groupId)
- Parameters:
groupId - the groupId to set
getArtifactId
public String getArtifactId()
- Returns:
- the artifactId
setArtifactId
public void setArtifactId(String artifactId)
- Parameters:
artifactId - the artifactId to set
getVersion
public String getVersion()
- Returns:
- the version
setVersion
public void setVersion(String version)
- Parameters:
version - the version to set
getType
public String getType()
- Returns:
- the type
setType
public void setType(String type)
- Parameters:
type - the type to set
toString
public String toString()
- Overrides:
toString in class Object
- See Also:
Object.toString()
getClassifier
public String getClassifier()
- Returns:
- the classifier
setClassifier
public void setClassifier(String classifier)
- Parameters:
classifier - the classifier to set
getName
public String getName()
- Returns:
- the name
setName
public void setName(String name)
- Parameters:
name - the name to set
isHash
public boolean isHash()
- Returns:
- the hash
setHash
public void setHash(boolean hash)
- Parameters:
hash - the hash to set
isSnapshot
public boolean isSnapshot()
- Returns:
- the snapshot
setSnapshot
public void setSnapshot(boolean snapshot)
- Parameters:
snapshot - the snapshot to set
getSnapshotId
public String getSnapshotId()
- Returns:
- the snapshotId
setSnapshotId
public void setSnapshotId(String snapshotId)
- Parameters:
snapshotId - the snapshotId to set
getFullName
public String getFullName()
- Returns:
- the fullName
setFullName
public void setFullName(String fullName)
- Parameters:
fullName - the fullName to set
Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.