org.apache.maven.archetype.model
Class ArchetypeModel

java.lang.Object
  extended by org.apache.maven.archetype.model.ArchetypeModel
All Implemented Interfaces:
Serializable

public class ArchetypeModel
extends Object
implements Serializable

Describes the assembly layout and packaging.

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

Constructor Summary
ArchetypeModel()
           
 
Method Summary
 void addResource(Resource resource)
          Method addResource.
 void addSiteResource(Resource resource)
          Method addSiteResource.
 void addSource(Source source)
          Method addSource.
 void addTestResource(Resource resource)
          Method addTestResource.
 void addTestSource(Source source)
          Method addTestSource.
 String getId()
          Get the value should be the same as the artifactId in the archetype pom.xml.
 String getModelEncoding()
          Get the modelEncoding field.
 List<Resource> getResources()
          Method getResources.
 List<Resource> getSiteResources()
          Method getSiteResources.
 List<Source> getSources()
          Method getSources.
 List<Resource> getTestResources()
          Method getTestResources.
 List<Source> getTestSources()
          Method getTestSources.
 boolean isAllowPartial()
          Get setting this option to true makes it possible to run the archetype:create even on existing projects.
 void removeResource(Resource resource)
          Method removeResource.
 void removeSiteResource(Resource resource)
          Method removeSiteResource.
 void removeSource(Source source)
          Method removeSource.
 void removeTestResource(Resource resource)
          Method removeTestResource.
 void removeTestSource(Source source)
          Method removeTestSource.
 void setAllowPartial(boolean allowPartial)
          Set setting this option to true makes it possible to run the archetype:create even on existing projects.
 void setId(String id)
          Set the value should be the same as the artifactId in the archetype pom.xml.
 void setModelEncoding(String modelEncoding)
          Set the modelEncoding field.
 void setResources(List<Resource> resources)
          Set files that will go into src/main/resources.
 void setSiteResources(List<Resource> siteResources)
          Set files that will go into src/site.
 void setSources(List<Source> sources)
          Set files that will go into src/main/java.
 void setTestResources(List<Resource> testResources)
          Set files that will go into src/test/resources.
 void setTestSources(List<Source> testSources)
          Set files that will go into src/test/java.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchetypeModel

public ArchetypeModel()
Method Detail

addResource

public void addResource(Resource resource)
Method addResource.

Parameters:
resource -

addSiteResource

public void addSiteResource(Resource resource)
Method addSiteResource.

Parameters:
resource -

addSource

public void addSource(Source source)
Method addSource.

Parameters:
source -

addTestResource

public void addTestResource(Resource resource)
Method addTestResource.

Parameters:
resource -

addTestSource

public void addTestSource(Source source)
Method addTestSource.

Parameters:
source -

getId

public String getId()
Get the value should be the same as the artifactId in the archetype pom.xml.

Returns:
String

getModelEncoding

public String getModelEncoding()
Get the modelEncoding field.

Returns:
String

getResources

public List<Resource> getResources()
Method getResources.

Returns:
List

getSiteResources

public List<Resource> getSiteResources()
Method getSiteResources.

Returns:
List

getSources

public List<Source> getSources()
Method getSources.

Returns:
List

getTestResources

public List<Resource> getTestResources()
Method getTestResources.

Returns:
List

getTestSources

public List<Source> getTestSources()
Method getTestSources.

Returns:
List

isAllowPartial

public boolean isAllowPartial()
Get setting this option to true makes it possible to run the archetype:create even on existing projects.

Returns:
boolean

removeResource

public void removeResource(Resource resource)
Method removeResource.

Parameters:
resource -

removeSiteResource

public void removeSiteResource(Resource resource)
Method removeSiteResource.

Parameters:
resource -

removeSource

public void removeSource(Source source)
Method removeSource.

Parameters:
source -

removeTestResource

public void removeTestResource(Resource resource)
Method removeTestResource.

Parameters:
resource -

removeTestSource

public void removeTestSource(Source source)
Method removeTestSource.

Parameters:
source -

setAllowPartial

public void setAllowPartial(boolean allowPartial)
Set setting this option to true makes it possible to run the archetype:create even on existing projects.

Parameters:
allowPartial -

setId

public void setId(String id)
Set the value should be the same as the artifactId in the archetype pom.xml.

Parameters:
id -

setModelEncoding

public void setModelEncoding(String modelEncoding)
Set the modelEncoding field.

Parameters:
modelEncoding -

setResources

public void setResources(List<Resource> resources)
Set files that will go into src/main/resources.

Parameters:
resources -

setSiteResources

public void setSiteResources(List<Resource> siteResources)
Set files that will go into src/site.

Parameters:
siteResources -

setSources

public void setSources(List<Source> sources)
Set files that will go into src/main/java.

Parameters:
sources -

setTestResources

public void setTestResources(List<Resource> testResources)
Set files that will go into src/test/resources.

Parameters:
testResources -

setTestSources

public void setTestSources(List<Source> testSources)
Set files that will go into src/test/java.

Parameters:
testSources -


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