Package org.apache.maven.archetype.model
Class ArchetypeModel
- java.lang.Object
-
- org.apache.maven.archetype.model.ArchetypeModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ArchetypeModel extends java.lang.Object implements java.io.SerializableDescribes the assembly layout and packaging.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowPartialSetting this option totruemakes it possible to run thearchetype:createeven on existing projects.private java.lang.StringidThe value should be the same as the artifactId in the archetypepom.xml.private java.lang.StringmodelEncodingField modelEncoding.private java.util.List<Resource>resourcesField resources.private java.util.List<Resource>siteResourcesField siteResources.private java.util.List<Source>sourcesField sources.private java.util.List<Resource>testResourcesField testResources.private java.util.List<Source>testSourcesField testSources.
-
Constructor Summary
Constructors Constructor Description ArchetypeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResource(Resource resource)Method addResource.voidaddSiteResource(Resource resource)Method addSiteResource.voidaddSource(Source source)Method addSource.voidaddTestResource(Resource resource)Method addTestResource.voidaddTestSource(Source source)Method addTestSource.java.lang.StringgetId()Get the value should be the same as the artifactId in the archetypepom.xml.java.lang.StringgetModelEncoding()Get the modelEncoding field.java.util.List<Resource>getResources()Method getResources.java.util.List<Resource>getSiteResources()Method getSiteResources.java.util.List<Source>getSources()Method getSources.java.util.List<Resource>getTestResources()Method getTestResources.java.util.List<Source>getTestSources()Method getTestSources.booleanisAllowPartial()Get setting this option totruemakes it possible to run thearchetype:createeven on existing projects.voidremoveResource(Resource resource)Method removeResource.voidremoveSiteResource(Resource resource)Method removeSiteResource.voidremoveSource(Source source)Method removeSource.voidremoveTestResource(Resource resource)Method removeTestResource.voidremoveTestSource(Source source)Method removeTestSource.voidsetAllowPartial(boolean allowPartial)Set setting this option totruemakes it possible to run thearchetype:createeven on existing projects.voidsetId(java.lang.String id)Set the value should be the same as the artifactId in the archetypepom.xml.voidsetModelEncoding(java.lang.String modelEncoding)Set the modelEncoding field.voidsetResources(java.util.List<Resource> resources)Set files that will go intosrc/main/resources.voidsetSiteResources(java.util.List<Resource> siteResources)Set files that will go intosrc/site.voidsetSources(java.util.List<Source> sources)Set files that will go intosrc/main/java.voidsetTestResources(java.util.List<Resource> testResources)Set files that will go intosrc/test/resources.voidsetTestSources(java.util.List<Source> testSources)Set files that will go intosrc/test/java.
-
-
-
Field Detail
-
id
private java.lang.String id
The value should be the same as the artifactId in the archetypepom.xml.
-
allowPartial
private boolean allowPartial
Setting this option totruemakes it possible to run thearchetype:createeven on existing projects.
-
sources
private java.util.List<Source> sources
Field sources.
-
resources
private java.util.List<Resource> resources
Field resources.
-
testSources
private java.util.List<Source> testSources
Field testSources.
-
testResources
private java.util.List<Resource> testResources
Field testResources.
-
siteResources
private java.util.List<Resource> siteResources
Field siteResources.
-
modelEncoding
private java.lang.String modelEncoding
Field modelEncoding.
-
-
Method Detail
-
addResource
public void addResource(Resource resource)
Method addResource.- Parameters:
resource- a resource object.
-
addSiteResource
public void addSiteResource(Resource resource)
Method addSiteResource.- Parameters:
resource- a resource object.
-
addSource
public void addSource(Source source)
Method addSource.- Parameters:
source- a source object.
-
addTestResource
public void addTestResource(Resource resource)
Method addTestResource.- Parameters:
resource- a resource object.
-
addTestSource
public void addTestSource(Source source)
Method addTestSource.- Parameters:
source- a source object.
-
getId
public java.lang.String getId()
Get the value should be the same as the artifactId in the archetypepom.xml.- Returns:
- String
-
getModelEncoding
public java.lang.String getModelEncoding()
Get the modelEncoding field.- Returns:
- String
-
getResources
public java.util.List<Resource> getResources()
Method getResources.- Returns:
- List
-
getSiteResources
public java.util.List<Resource> getSiteResources()
Method getSiteResources.- Returns:
- List
-
getSources
public java.util.List<Source> getSources()
Method getSources.- Returns:
- List
-
getTestResources
public java.util.List<Resource> getTestResources()
Method getTestResources.- Returns:
- List
-
getTestSources
public java.util.List<Source> getTestSources()
Method getTestSources.- Returns:
- List
-
isAllowPartial
public boolean isAllowPartial()
Get setting this option totruemakes it possible to run thearchetype:createeven on existing projects.- Returns:
- boolean
-
removeResource
public void removeResource(Resource resource)
Method removeResource.- Parameters:
resource- a resource object.
-
removeSiteResource
public void removeSiteResource(Resource resource)
Method removeSiteResource.- Parameters:
resource- a resource object.
-
removeSource
public void removeSource(Source source)
Method removeSource.- Parameters:
source- a source object.
-
removeTestResource
public void removeTestResource(Resource resource)
Method removeTestResource.- Parameters:
resource- a resource object.
-
removeTestSource
public void removeTestSource(Source source)
Method removeTestSource.- Parameters:
source- a source object.
-
setAllowPartial
public void setAllowPartial(boolean allowPartial)
Set setting this option totruemakes it possible to run thearchetype:createeven on existing projects.- Parameters:
allowPartial- a allowPartial object.
-
setId
public void setId(java.lang.String id)
Set the value should be the same as the artifactId in the archetypepom.xml.- Parameters:
id- a id object.
-
setModelEncoding
public void setModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.- Parameters:
modelEncoding- a modelEncoding object.
-
setResources
public void setResources(java.util.List<Resource> resources)
Set files that will go intosrc/main/resources.- Parameters:
resources- a resources object.
-
setSiteResources
public void setSiteResources(java.util.List<Resource> siteResources)
Set files that will go intosrc/site.- Parameters:
siteResources- a siteResources object.
-
setSources
public void setSources(java.util.List<Source> sources)
Set files that will go intosrc/main/java.- Parameters:
sources- a sources object.
-
setTestResources
public void setTestResources(java.util.List<Resource> testResources)
Set files that will go intosrc/test/resources.- Parameters:
testResources- a testResources object.
-
setTestSources
public void setTestSources(java.util.List<Source> testSources)
Set files that will go intosrc/test/java.- Parameters:
testSources- a testSources object.
-
-