org.apache.maven.archetype.catalog
Class Archetype

java.lang.Object
  extended by org.apache.maven.archetype.catalog.Archetype
All Implemented Interfaces:
Serializable

public class Archetype
extends Object
implements Serializable

Informations to point to an Archetype referenced in the catalog.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Archetype()
           
 
Method Summary
 void addGoal(String string)
          Method addGoal.
 void addProperty(String key, String value)
          Method addProperty.
 boolean equals(Object object)
           
 String getArtifactId()
          Get the artifactId of the archetype.
 String getDescription()
          Get the description of the archetype.
 List<String> getGoals()
          Method getGoals.
 String getGroupId()
          Get the groupId of the archetype.
 Properties getProperties()
          Method getProperties.
 String getRepository()
          Get the repository where to find the archetype.
 String getVersion()
          Get the version of the archetype.
 int hashCode()
           
 void removeGoal(String string)
          Method removeGoal.
 void setArtifactId(String artifactId)
          Set the artifactId of the archetype.
 void setDescription(String description)
          Set the description of the archetype.
 void setGoals(List<String> goals)
          Set goals to execute after the creation of the project.
 void setGroupId(String groupId)
          Set the groupId of the archetype.
 void setProperties(Properties properties)
          Set properties that will be used during the execution of addition goals after the creation of the project.
 void setRepository(String repository)
          Set the repository where to find the archetype.
 void setVersion(String version)
          Set the version of the archetype.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Archetype

public Archetype()
Method Detail

addGoal

public void addGoal(String string)
Method addGoal.

Parameters:
string -

addProperty

public void addProperty(String key,
                        String value)
Method addProperty.

Parameters:
key -
value -

getArtifactId

public String getArtifactId()
Get the artifactId of the archetype.

Returns:
String

getDescription

public String getDescription()
Get the description of the archetype.

Returns:
String

getGoals

public List<String> getGoals()
Method getGoals.

Returns:
List

getGroupId

public String getGroupId()
Get the groupId of the archetype.

Returns:
String

getProperties

public Properties getProperties()
Method getProperties.

Returns:
Properties

getRepository

public String getRepository()
Get the repository where to find the archetype. When omitted, the archetype is searched for in the repository where the catalog comes from.

Returns:
String

getVersion

public String getVersion()
Get the version of the archetype. RELEASE is a valid version.

Returns:
String

removeGoal

public void removeGoal(String string)
Method removeGoal.

Parameters:
string -

setArtifactId

public void setArtifactId(String artifactId)
Set the artifactId of the archetype.

Parameters:
artifactId -

setDescription

public void setDescription(String description)
Set the description of the archetype.

Parameters:
description -

setGoals

public void setGoals(List<String> goals)
Set goals to execute after the creation of the project.

Parameters:
goals -

setGroupId

public void setGroupId(String groupId)
Set the groupId of the archetype.

Parameters:
groupId -

setProperties

public void setProperties(Properties properties)
Set properties that will be used during the execution of addition goals after the creation of the project.

Parameters:
properties -

setRepository

public void setRepository(String repository)
Set the repository where to find the archetype. When omitted, the archetype is searched for in the repository where the catalog comes from.

Parameters:
repository -

setVersion

public void setVersion(String version)
Set the version of the archetype. RELEASE is a valid version.

Parameters:
version -

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


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