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 getGroupId()
           
 String getType()
           
 String getVersion()
           
 void setArtifactId(String artifactId)
           
 void setGroupId(String groupId)
           
 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()


Copyright © 2011-2012 JBoss, a division of Red Hat. All Rights Reserved.