org.overlord.sramp.wagon.models
Class MavenGavInfo

java.lang.Object
  extended by org.overlord.sramp.wagon.models.MavenGavInfo

public class MavenGavInfo
extends Object

GAV info for maven.

Author:
eric.wittmann@redhat.com

Constructor Summary
MavenGavInfo()
          Default constructor.
 
Method Summary
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 getName()
           
 String getSnapshotId()
           
 String getType()
           
 String getVersion()
           
 boolean isHash()
           
 boolean isSnapshot()
           
 void setArtifactId(String artifactId)
           
 void setClassifier(String classifier)
           
 void setFullName(String fullName)
           
 void setGroupId(String groupId)
           
 void setHash(boolean hash)
           
 void setName(String name)
           
 void setSnapshot(boolean snapshot)
           
 void setSnapshotId(String snapshotId)
           
 void setType(String type)
           
 void setVersion(String version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenGavInfo

public MavenGavInfo()
Default constructor.

Method Detail

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-2012 JBoss, a division of Red Hat. All Rights Reserved.