org.apache.sling.maven.projectsupport
Class ArtifactDefinition

java.lang.Object
  extended by org.apache.sling.maven.projectsupport.ArtifactDefinition

public class ArtifactDefinition
extends Object

The definition of an artifact.


Constructor Summary
ArtifactDefinition()
           
ArtifactDefinition(Bundle bundle, int startLevel)
           
 
Method Summary
 String getArtifactId()
           
 String getClassifier()
           
 String getGroupId()
           
 int getStartLevel()
           
 String getType()
           
 String getVersion()
           
 void initDefaults(String commaDelimitedList)
          Initialize this ArtifactDefinition with a set of default values from a comma-delimited string.
 void initDefaults(String groupId, String artifactId, String version, String type, String classifier, int startLevel)
          Initialize this ArtifactDefinition with a set of default values.
 void setArtifactId(String artifactId)
           
 void setClassifier(String classifier)
           
 void setGroupId(String groupId)
           
 void setStartLevel(int startLevel)
           
 void setType(String type)
           
 void setVersion(String version)
           
 Bundle toBundle()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactDefinition

public ArtifactDefinition()

ArtifactDefinition

public ArtifactDefinition(Bundle bundle,
                          int startLevel)
Method Detail

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 groupId
artifactId - the artifactId
version - the version
type - the artifact type
classifier - the artifact classified
startLevel - the start level

toBundle

public Bundle toBundle()


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.