org.apache.maven.archetype.ui
Class DefaultArchetypeCreationQueryer

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

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


Field Summary
 
Fields inherited from interface org.apache.maven.archetype.ui.ArchetypeCreationQueryer
ROLE
 
Constructor Summary
DefaultArchetypeCreationQueryer()
           
 
Method Summary
 boolean askAddAnotherProperty()
           
 java.lang.String askNewPropertyKey()
           
 java.lang.String askReplacementValue(java.lang.String propertyKey, java.lang.String defaultValue)
           
 boolean confirmConfiguration(org.apache.maven.archetype.common.ArchetypeConfiguration archetypeConfiguration)
           
 java.lang.String getArchetypeArtifactId(java.lang.String defaultValue)
           
 java.lang.String getArchetypeGroupId(java.lang.String defaultValue)
           
 java.lang.String getArchetypeVersion(java.lang.String defaultValue)
           
 java.lang.String getArtifactId(java.lang.String defaultValue)
           
 java.lang.String getGroupId(java.lang.String defaultValue)
           
 java.lang.String getPackage(java.lang.String defaultValue)
           
 java.lang.String getVersion(java.lang.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 java.lang.String getArchetypeArtifactId(java.lang.String defaultValue)
                                        throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
getArchetypeArtifactId in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

getArchetypeGroupId

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

getArchetypeVersion

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

getArtifactId

public java.lang.String getArtifactId(java.lang.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 java.lang.String askNewPropertyKey()
                                   throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
askNewPropertyKey in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

askReplacementValue

public java.lang.String askReplacementValue(java.lang.String propertyKey,
                                            java.lang.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(org.apache.maven.archetype.common.ArchetypeConfiguration archetypeConfiguration)
                             throws org.codehaus.plexus.components.interactivity.PrompterException
Specified by:
confirmConfiguration in interface ArchetypeCreationQueryer
Throws:
org.codehaus.plexus.components.interactivity.PrompterException

getGroupId

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

getPackage

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

getVersion

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


Copyright © 2007-2009 Apache Software Foundation. All Rights Reserved.