org.apache.maven.archetype.ui.creation
Class DefaultArchetypeCreationQueryer

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.archetype.ui.creation.DefaultArchetypeCreationQueryer
All Implemented Interfaces:
ArchetypeCreationQueryer, org.codehaus.plexus.logging.LogEnabled

public class DefaultArchetypeCreationQueryer
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ArchetypeCreationQueryer

Plexus component

Field Summary
 
Fields inherited from interface org.apache.maven.archetype.ui.creation.ArchetypeCreationQueryer
ROLE
 
Constructor Summary
DefaultArchetypeCreationQueryer()
           
 
Method Summary
 boolean askAddAnotherProperty()
           
 String askNewPropertyKey()
           
 String askReplacementValue(String propertyKey, String defaultValue)
           
 boolean confirmConfiguration(ArchetypeConfiguration archetypeConfiguration)
           
 String getArchetypeArtifactId(String defaultValue)
           
 String getArchetypeGroupId(String defaultValue)
           
 String getArchetypeVersion(String defaultValue)
           
 String getArtifactId(String defaultValue)
           
 String getGroupId(String defaultValue)
           
 String getPackage(String defaultValue)
           
 String getVersion(String defaultValue)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArchetypeCreationQueryer

public DefaultArchetypeCreationQueryer()
Method Detail

getArchetypeArtifactId

public String getArchetypeArtifactId(String defaultValue)
                              throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
getArchetypeArtifactId in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

getArchetypeGroupId

public String getArchetypeGroupId(String defaultValue)
                           throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
getArchetypeGroupId in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

getArchetypeVersion

public String getArchetypeVersion(String defaultValue)
                           throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
getArchetypeVersion in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

getArtifactId

public String getArtifactId(String defaultValue)
                     throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
getArtifactId in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

askAddAnotherProperty

public boolean askAddAnotherProperty()
                              throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
askAddAnotherProperty in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

askNewPropertyKey

public String askNewPropertyKey()
                         throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
askNewPropertyKey in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

askReplacementValue

public String askReplacementValue(String propertyKey,
                                  String defaultValue)
                           throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
askReplacementValue in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

confirmConfiguration

public boolean confirmConfiguration(ArchetypeConfiguration archetypeConfiguration)
                             throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
confirmConfiguration in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

getGroupId

public String getGroupId(String defaultValue)
                  throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
getGroupId in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

getPackage

public String getPackage(String defaultValue)
                  throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
getPackage in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

getVersion

public String getVersion(String defaultValue)
                  throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
getVersion in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException


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