Class ArchetypeDescriptor
java.lang.Object
org.apache.maven.archetype.metadata.AbstractArchetypeDescriptor
org.apache.maven.archetype.metadata.ArchetypeDescriptor
- All Implemented Interfaces:
Serializable
Class ArchetypeDescriptor.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringField modelEncoding.private StringName of the Archetype, that will be displayed to the user when choosing an archetype.private booleanIs this archetype representing a full Maven project or only parts?private List<RequiredProperty> Field requiredProperties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequiredProperty(RequiredProperty requiredProperty) Method addRequiredProperty.Get the modelEncoding field.getName()Get name of the Archetype, that will be displayed to the user when choosing an archetype.Method getRequiredProperties.booleanGet is this archetype representing a full Maven project or only parts?voidremoveRequiredProperty(RequiredProperty requiredProperty) Method removeRequiredProperty.voidsetModelEncoding(String modelEncoding) Set the modelEncoding field.voidSet name of the Archetype, that will be displayed to the user when choosing an archetype.voidsetPartial(boolean partial) Set is this archetype representing a full Maven project or only parts?voidsetRequiredProperties(List<RequiredProperty> requiredProperties) Set list of required properties to generate a project from this archetype.Methods inherited from class AbstractArchetypeDescriptor
addFileSet, addModule, getFileSets, getModules, removeFileSet, removeModule, setFileSets, setModules
-
Field Details
-
name
Name of the Archetype, that will be displayed to the user when choosing an archetype. -
partial
private boolean partialIs this archetype representing a full Maven project or only parts? -
requiredProperties
Field requiredProperties. -
modelEncoding
Field modelEncoding.
-
-
Constructor Details
-
ArchetypeDescriptor
public ArchetypeDescriptor()
-
-
Method Details
-
addRequiredProperty
Method addRequiredProperty.- Parameters:
requiredProperty- a requiredProperty object.
-
getModelEncoding
-
getName
Get name of the Archetype, that will be displayed to the user when choosing an archetype.- Returns:
- String
-
getRequiredProperties
-
isPartial
public boolean isPartial()Get is this archetype representing a full Maven project or only parts?- Returns:
- boolean
-
removeRequiredProperty
Method removeRequiredProperty.- Parameters:
requiredProperty- a requiredProperty object.
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding- a modelEncoding object.
-
setName
Set name of the Archetype, that will be displayed to the user when choosing an archetype.- Parameters:
name- a name object.
-
setPartial
public void setPartial(boolean partial) Set is this archetype representing a full Maven project or only parts?- Parameters:
partial- a partial object.
-
setRequiredProperties
Set list of required properties to generate a project from this archetype.- Parameters:
requiredProperties- a requiredProperties object.
-