1 18 19 package org.apache.tools.ant.input; 20 21 26 public class InputRequest { 27 private String prompt; 28 private String input; 29 private String defaultValue; 30 31 35 public InputRequest(String prompt) { 36 if (prompt == null) { 37 throw new IllegalArgumentException ("prompt must not be null"); 38 } 39 40 this.prompt = prompt; 41 } 42 43 47 public String getPrompt() { 48 return prompt; 49 } 50 51 55 public void setInput(String input) { 56 this.input = input; 57 } 58 59 63 public boolean isInputValid() { 64 return true; 65 } 66 67 71 public String getInput() { 72 return input; 73 } 74 75 80 public String getDefaultValue() { 81 return defaultValue; 82 } 83 84 89 public void setDefaultValue(String d) { 90 defaultValue = d; 91 } 92 93 } 94 | Popular Tags |