- Timestamp:
- 2003-08-21T11:14:40+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/Collection.java
r5164 r5237 76 76 /** The name of the build element. */ 77 77 static final private String BUILD = "Build"; 78 /** The name of the built attribute. */79 static final private String BUILT = "built";80 78 /** The name of the build config element. */ 81 79 static final private String BUILD_CONFIG = "BuildConfig"; … … 160 158 msm = null; 161 159 } 162 /** Determine whether this collection has been successfully built in the past.163 * @return <i>true</i> if the collection has been built, <i>false</i> otherwise.164 */165 public boolean getBuilt() {166 return get(BUILT);167 }168 160 169 161 /** Determine the number of documents and folders in this collection. */ … … 309 301 Utility.export(document, file); 310 302 } 311 /** Set the value of built to the given value. 312 * @param value The new value for built, <i>true</i> if the collection has been built successfully, <i>false</i> otherwise. 313 */ 314 public void setBuilt(boolean value) { 315 set(BUILT, value); 316 saved = false; 317 } 303 318 304 /** Set the value of imported to the given value. 319 305 * @param value The new value for imported, <i>true</i> if the collection has been imported successfully, <i>false</i> otherwise. … … 351 337 Element argument_element = (Element) arguments.item(i); 352 338 if(argument_element.getParentNode() == document_element) { 353 if(argument_element.getAttribute(NAME).equalsIgnoreCase( BUILT)) {339 if(argument_element.getAttribute(NAME).equalsIgnoreCase(name)) { 354 340 String value = MSMUtils.getValue(argument_element); 355 341 if(value.equalsIgnoreCase(TRUE)) { … … 428 414 Element argument_element = (Element) arguments.item(i); 429 415 if(argument_element.getParentNode() == document_element) { 430 if(argument_element.getAttribute(NAME).equalsIgnoreCase( BUILT)) {416 if(argument_element.getAttribute(NAME).equalsIgnoreCase(name)) { 431 417 // Strip any current value nodes. 432 418 while(argument_element.hasChildNodes()) {
Note:
See TracChangeset
for help on using the changeset viewer.