org.apache.sling.maven.projectsupport
Class ArtifactDefinition
java.lang.Object
org.apache.sling.maven.projectsupport.ArtifactDefinition
public class ArtifactDefinition
- extends Object
The definition of an artifact.
ArtifactDefinition
public ArtifactDefinition()
ArtifactDefinition
public ArtifactDefinition(Bundle bundle,
int startLevel)
getArtifactId
public String getArtifactId()
getClassifier
public String getClassifier()
getGroupId
public String getGroupId()
getStartLevel
public int getStartLevel()
getType
public String getType()
getVersion
public String getVersion()
setArtifactId
public void setArtifactId(String artifactId)
setClassifier
public void setClassifier(String classifier)
setGroupId
public void setGroupId(String groupId)
setStartLevel
public void setStartLevel(int startLevel)
setType
public void setType(String type)
setVersion
public void setVersion(String version)
toString
public String toString()
- Overrides:
toString
in class Object
initDefaults
public void initDefaults(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(String groupId,
String artifactId,
String version,
String type,
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()
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.