114 * current path
115 * @see #getValue
116 */
117 public File getValueOnPath()
118 throws Interview.NotOnPathFault
119 {
120 interview.verifyPathContains(this);
121 return getValue();
122 }
123
124 public String getStringValue() {
125 return (value == null ? null : value.getPath());
126 }
127
128 /**
129 * Set the response to this question to the value represented by
130 * a string-valued argument.
131 * @see #getValue
132 */
133 public void setValue(String path) {
134 setValue(path == null ? (File)null : new File(path));
135 }
136
137 /**
138 * Set the current value.
139 * @param newValue The value to be set.
140 * @see #getValue
141 */
142 public void setValue(File newValue) {
143 File oldValue = value;
144 value = newValue;
145 if (!equal(value, oldValue)) {
146 interview.updatePath(this);
147 interview.setEdited(true);
148 }
149 }
150
151 public boolean isValueValid() {
152 if (value == null) {
153 return true;
154 }
|
114 * current path
115 * @see #getValue
116 */
117 public File getValueOnPath()
118 throws Interview.NotOnPathFault
119 {
120 interview.verifyPathContains(this);
121 return getValue();
122 }
123
124 public String getStringValue() {
125 return (value == null ? null : value.getPath());
126 }
127
128 /**
129 * Set the response to this question to the value represented by
130 * a string-valued argument.
131 * @see #getValue
132 */
133 public void setValue(String path) {
134 setValue(path == null ? null : new File(path));
135 }
136
137 /**
138 * Set the current value.
139 * @param newValue The value to be set.
140 * @see #getValue
141 */
142 public void setValue(File newValue) {
143 File oldValue = value;
144 value = newValue;
145 if (!equal(value, oldValue)) {
146 interview.updatePath(this);
147 interview.setEdited(true);
148 }
149 }
150
151 public boolean isValueValid() {
152 if (value == null) {
153 return true;
154 }
|