Class DefaultArchetypeCreationQueryer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.codehaus.plexus.components.interactivity.Prompter prompter  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean askAddAnotherProperty()  
      java.lang.String askNewPropertyKey()  
      java.lang.String askReplacementValue​(java.lang.String propertyKey, java.lang.String defaultValue)  
      boolean confirmConfiguration​(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)  
      private java.lang.String getValue​(java.lang.String requiredProperty, 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
    • Field Detail

      • prompter

        @Requirement
        private org.codehaus.plexus.components.interactivity.Prompter prompter
    • 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
      • 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
      • getValue

        private java.lang.String getValue​(java.lang.String requiredProperty,
                                          java.lang.String defaultValue)
                                   throws org.codehaus.plexus.components.interactivity.PrompterException
        Throws:
        org.codehaus.plexus.components.interactivity.PrompterException