Interface ArchetypeSelectionQueryer
-
- All Known Implementing Classes:
DefaultArchetypeSelectionQueryer
public interface ArchetypeSelectionQueryer
User interaction component for archetype selection.
TODO this interface is bound to its implementation through the prompter exception
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
selectArchetype
Archetype selectArchetype(java.util.Map<java.lang.String,java.util.List<Archetype>> map) throws org.codehaus.plexus.components.interactivity.PrompterException
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
confirmSelection
boolean confirmSelection(ArchetypeDefinition archetypeDefinition) throws org.codehaus.plexus.components.interactivity.PrompterException
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
selectArchetype
Archetype selectArchetype(java.util.Map<java.lang.String,java.util.List<Archetype>> archetypes, ArchetypeDefinition defaultDefinition) throws org.codehaus.plexus.components.interactivity.PrompterException
Select an archetype from the given map.- Parameters:
archetypes
- the archetypes to choose fromdefaultDefinition
- the default archetype, if present in the map- Returns:
- the selected archetype
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
- if there is a problem in making a selection
-
-