Changeset 12251
- Timestamp:
- 2006-07-19T15:24:02+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Argument.java
r11344 r12251 191 191 } 192 192 193 public Element getElement() { 194 return element; 195 } 193 196 /** Retrieve the upper bound of a range based argument. 194 197 * @return the maximum as an int … … 269 272 } 270 273 271 /** Determine if this is a custom argument ie one that has been parsed from the config file but doesn't have a matching entry in the argument library.272 * @return true if this argument is a custom, false otherwise273 * @see org.greenstone.gatherer.util.StaticStrings#CUSTOM_ATTRIBUTE274 * @see org.greenstone.gatherer.util.StaticStrings#TRUE_STR275 */276 public boolean isCustomArgument() {277 return (element != null && element.getAttribute(StaticStrings.CUSTOM_ATTRIBUTE).equals(StaticStrings.TRUE_STR));278 }279 280 274 /** Determine if this argument is hidden in GLI 281 275 * @return true if the argument is hidden, false otherwise … … 301 295 if(element != null) { 302 296 element.setAttribute(StaticStrings.ASSIGNED_ATTRIBUTE, (assigned ? StaticStrings.TRUE_STR : StaticStrings.FALSE_STR)); 303 }304 }305 306 /** Set the custom argument flag.307 * @param custom true to make this argument custom, false otherwise308 * @see org.greenstone.gatherer.util.StaticStrings#CUSTOM_ATTRIBUTE309 * @see org.greenstone.gatherer.util.StaticStrings#FALSE_STR310 * @see org.greenstone.gatherer.util.StaticStrings#TRUE_STR311 */312 public void setCustomArgument(boolean custom) {313 if(element != null) {314 element.setAttribute(StaticStrings.CUSTOM_ATTRIBUTE, (custom ? StaticStrings.TRUE_STR : StaticStrings.FALSE_STR));315 297 } 316 298 }
Note:
See TracChangeset
for help on using the changeset viewer.