org.apache.maven.archetype.ui
Interface ArchetypeSelectionQueryer

All Known Implementing Classes:
DefaultArchetypeSelectionQueryer

public interface ArchetypeSelectionQueryer


Field Summary
static String ROLE
           
 
Method Summary
 boolean confirmSelection(ArchetypeDefinition archetypeDefinition)
           
 Archetype selectArchetype(Map map)
           
 Archetype selectArchetype(Map archetypes, ArchetypeDefinition defaultDefinition)
          Select an archetype from the given map.
 

Field Detail

ROLE

static final String ROLE
Method Detail

selectArchetype

Archetype selectArchetype(Map 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(Map archetypes,
                          ArchetypeDefinition defaultDefinition)
                          throws org.codehaus.plexus.components.interactivity.PrompterException
Select an archetype from the given map.

Parameters:
archetypes - the archetypes to choose from
defaultDefinition - 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


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