public interface ArchetypeSelectionQueryer
User interaction component for archetype selection.
TODO this interface is bound to its implementation through the prompter exceptionModifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLE |
Modifier and Type | Method and Description |
---|---|
boolean |
confirmSelection(ArchetypeDefinition archetypeDefinition) |
Archetype |
selectArchetype(java.util.Map<java.lang.String,java.util.List<Archetype>> map) |
Archetype |
selectArchetype(java.util.Map<java.lang.String,java.util.List<Archetype>> archetypes,
ArchetypeDefinition defaultDefinition)
Select an archetype from the given map.
|
Archetype selectArchetype(java.util.Map<java.lang.String,java.util.List<Archetype>> map) throws org.codehaus.plexus.components.interactivity.PrompterException
org.codehaus.plexus.components.interactivity.PrompterException
boolean confirmSelection(ArchetypeDefinition archetypeDefinition) throws org.codehaus.plexus.components.interactivity.PrompterException
org.codehaus.plexus.components.interactivity.PrompterException
Archetype selectArchetype(java.util.Map<java.lang.String,java.util.List<Archetype>> archetypes, ArchetypeDefinition defaultDefinition) throws org.codehaus.plexus.components.interactivity.PrompterException
archetypes
- the archetypes to choose fromdefaultDefinition
- the default archetype, if present in the maporg.codehaus.plexus.components.interactivity.PrompterException
- if there is a problem in making a
selection