org.apache.sling.maven.projectsupport
Class ArtifactDefinition
java.lang.Object
org.apache.sling.maven.projectsupport.ArtifactDefinition
public class ArtifactDefinition
- extends java.lang.Object
The definition of an artifact.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArtifactDefinition
public ArtifactDefinition()
ArtifactDefinition
public ArtifactDefinition(Bundle bundle,
int startLevel)
ArtifactDefinition
public ArtifactDefinition(org.codehaus.plexus.util.xml.Xpp3Dom config)
getArtifactId
public java.lang.String getArtifactId()
getClassifier
public java.lang.String getClassifier()
getGroupId
public java.lang.String getGroupId()
getStartLevel
public int getStartLevel()
getType
public java.lang.String getType()
getVersion
public java.lang.String getVersion()
setArtifactId
public void setArtifactId(java.lang.String artifactId)
setClassifier
public void setClassifier(java.lang.String classifier)
setGroupId
public void setGroupId(java.lang.String groupId)
setStartLevel
public void setStartLevel(int startLevel)
setType
public void setType(java.lang.String type)
setVersion
public void setVersion(java.lang.String version)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
initDefaults
public void initDefaults(java.lang.String commaDelimitedList)
- Initialize this ArtifactDefinition with a set of default values from a
comma-delimited string. This string must have 6 items in it:
[groupId],[artifactId],[version],[type],[classifier],[startLevel]
The only required parameter is the last one, which must be parseable as
an integer.
- Parameters:
commaDelimitedList
- the comma-delimited list
initDefaults
public void initDefaults(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String type,
java.lang.String classifier,
int startLevel)
- Initialize this ArtifactDefinition with a set of default values. If the
corresponding field in this object is null (or 0 in the case of start
level) and the parameter is non-null, the parameter value will be used.
- Parameters:
groupId
- the groupIdartifactId
- the artifactIdversion
- the versiontype
- the artifact typeclassifier
- the artifact classifiedstartLevel
- the start level
toBundle
public Bundle toBundle()
toDependency
public org.apache.maven.model.Dependency toDependency(java.lang.String scope)
toDependency
public static org.apache.maven.model.Dependency toDependency(Bundle bundle,
java.lang.String scope)
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.