Changeset 12466 for trunk/gli/src/org/greenstone/gatherer/cdm/Argument.java
- Timestamp:
- 2006-08-18T09:30:30+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Argument.java
r12251 r12466 71 71 /** An element of the argument type enumeration specifying a metadata set combobox control. */ 72 72 static final public byte METADATA_SET_NAMESPACE = 9; 73 74 ///////////kk added the number was 9, I changed it to 10////////////// 75 /** An element of the argument type enumeration specifying a text field. */ 76 static final public byte URL = 10; 77 ///////////////////////////////////////////////////////////////// 78 73 79 /** true if this argument should actually be hidden within the GLI. This is important for arguments such as import dir or other location critical arguments. */ 74 80 private boolean hidden_gli = false; … … 97 103 /** The plugin that owns this argument, for the purposes of visualising inheritance. */ 98 104 private String owner = null; 105 106 private String display_name = null; 99 107 100 108 /** Default Constructor. */ … … 226 234 } 227 235 236 public String getDisplayName() { 237 return display_name; 238 } 239 240 228 241 /** Method to retrieve the option list for this argument. 229 242 * @return a HashMap containing <option value> -> <description> entries … … 270 283 public boolean isAssigned() { 271 284 return (element != null && element.getAttribute(StaticStrings.ASSIGNED_ATTRIBUTE).equals(StaticStrings.TRUE_STR)); 285 } 286 287 /** 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. 288 * @return true if this argument is a custom, false otherwise 289 * @see org.greenstone.gatherer.util.StaticStrings#CUSTOM_ATTRIBUTE 290 * @see org.greenstone.gatherer.util.StaticStrings#TRUE_STR 291 */ 292 public boolean isCustomArgument() { 293 return (element != null && element.getAttribute(StaticStrings.CUSTOM_ATTRIBUTE).equals(StaticStrings.TRUE_STR)); 272 294 } 273 295
Note:
See TracChangeset
for help on using the changeset viewer.