public class MavenGavInfo extends Object
Constructor and Description |
---|
MavenGavInfo()
Default constructor.
|
public static MavenGavInfo fromUrl(String url)
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.xsd
xsd/XsdDocument/29873-21983-2497822-1989/1.0/29873-21983-2497822-1989-1.0.pom
url
- public static MavenGavInfo fromCommandLine(String gavArg, File file) throws Exception
Exception
public 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 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 boolean isMavenMetaData()
public void setMavenMetaData(boolean mavenMetaData)
mavenMetaData
- the mavenMetaData to setpublic String getHashAlgorithm()
public void setHashAlgorithm(String hashAlgorithm)
hashAlgorithm
- the hashAlgorithm to setpublic String getMd5()
public void setMd5(String md5)
public String getSha1()
public void setSha1(String sha1)
public String toString()
toString
in class Object
Object.toString()
public String toStringSimple()
Copyright © 2011–2015 JBoss, a division of Red Hat. All rights reserved.