< prev index next >

src/com/sun/interview/FileListQuestion.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg


 109     public File[] getValueOnPath()
 110         throws Interview.NotOnPathFault
 111     {
 112         interview.verifyPathContains(this);
 113         return getValue();
 114     }
 115 
 116     @Override
 117     public String getStringValue() {
 118         return join(value);
 119     }
 120 
 121     /**
 122      * Set the response to this question to the value represented by
 123      * a string-valued argument.
 124      * @param paths The new value for the question, can be null to set no value.
 125      * @see #getValue
 126      */
 127     @Override
 128     public void setValue(String paths) {
 129         setValue(paths == null ? (File[])null : split(paths));
 130     }
 131 
 132     /**
 133      * Set the current value.
 134      * @param newValue The value to be set.
 135      * @see #getValue
 136      */
 137     public void setValue(File[] newValue) {
 138         File[] oldValue = value;
 139         value = newValue;
 140         if (!equal(value, oldValue)) {
 141             interview.updatePath(this);
 142             interview.setEdited(true);
 143         }
 144     }
 145 
 146     /**
 147      * Simple validation, upgrade if needed.
 148      * Iterates values, checks against filters, except if interview semantics
 149      * are set to an pre-50 version, in which case true is always returned.




 109     public File[] getValueOnPath()
 110         throws Interview.NotOnPathFault
 111     {
 112         interview.verifyPathContains(this);
 113         return getValue();
 114     }
 115 
 116     @Override
 117     public String getStringValue() {
 118         return join(value);
 119     }
 120 
 121     /**
 122      * Set the response to this question to the value represented by
 123      * a string-valued argument.
 124      * @param paths The new value for the question, can be null to set no value.
 125      * @see #getValue
 126      */
 127     @Override
 128     public void setValue(String paths) {
 129         setValue(paths == null ? null : split(paths));
 130     }
 131 
 132     /**
 133      * Set the current value.
 134      * @param newValue The value to be set.
 135      * @see #getValue
 136      */
 137     public void setValue(File[] newValue) {
 138         File[] oldValue = value;
 139         value = newValue;
 140         if (!equal(value, oldValue)) {
 141             interview.updatePath(this);
 142             interview.setEdited(true);
 143         }
 144     }
 145 
 146     /**
 147      * Simple validation, upgrade if needed.
 148      * Iterates values, checks against filters, except if interview semantics
 149      * are set to an pre-50 version, in which case true is always returned.


< prev index next >