Changeset 5785 for trunk/gli/src/org/greenstone/gatherer/msm
- Timestamp:
- 2003-11-05T13:46:44+13:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/msm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/MSMAction.java
r5589 r5785 127 127 * @return A <strong>String</strong> stating the fully qualified name of the target element, within the namespace of one of the currently loaded metadata sets. 128 128 */ 129 publicString getTarget() {129 /* private String getTarget() { 130 130 return target; 131 } 132 publicboolean isHFile() {131 } */ 132 /* private boolean isHFile() { 133 133 return hfile; 134 } 134 } */ 135 135 } -
trunk/gli/src/org/greenstone/gatherer/msm/MSMEvent.java
r5589 r5785 149 149 return new_metadata; 150 150 } 151 publicGValueModel getNewModel() {151 /* private GValueModel getNewModel() { 152 152 return new_model; 153 } 153 } */ 154 154 /** Method to retrieve the old metadata associated with this event. 155 155 * @return A <strong>Metadata</strong>, or <i>null</i> if there is none. … … 158 158 return old_metadata; 159 159 } 160 publicGValueModel getOldModel() {160 /* private GValueModel getOldModel() { 161 161 return old_model; 162 } 162 } */ 163 163 /** Method to retrieve of the profile associated with this event. 164 164 * @return A <strong>MSMAction</strong> which details the action profile, or <i>null</i> if no profile exists. 165 165 */ 166 publicMSMAction getProfile() {166 /* private MSMAction getProfile() { 167 167 return profile; 168 } 168 } */ 169 169 /** Retrieve the record associated with this event. */ 170 170 public FileNode getRecord() { -
trunk/gli/src/org/greenstone/gatherer/msm/MSMPrompt.java
r5777 r5785 861 861 * @return The metadata set the user has selected or null if no set selected. 862 862 */ 863 final publicMetadataSet selectSet(String name) {863 /* final private MetadataSet selectSet(String name) { 864 864 String args[] = new String[1]; 865 865 args[0] = name; … … 941 941 dialog = null; 942 942 return null; 943 } 943 } */ 944 944 945 945 private class AddListener -
trunk/gli/src/org/greenstone/gatherer/msm/MSMUtils.java
r5747 r5785 147 147 * @return <i>true</i> if the path was found (including matching #text elements at the leaf), or <i>false</i> otherwise. 148 148 */ 149 static final publicboolean containsPath(Node tree, Node path[]) {149 /* static final private boolean containsPath(Node tree, Node path[]) { 150 150 // If there is no tree then there are no values. 151 151 if(tree == null) { … … 177 177 } 178 178 return false; 179 } 179 } */ 180 180 /** Method to compare two metadata elements (of type Element, which is bound to get more than a bit confusing) for equality. This test may only check the structural (ie pretty much unchanging) consistancy, or may include the AssignedValue tree as well (which will be different for each collection I'd imagine). 181 181 * @param a_set The <strong>MetadataSet</strong> a comes from. … … 390 390 * @return The pattern as a String. 391 391 */ 392 static final publicString getFileNamePattern(Node fileset) {392 /* static final private String getFileNamePattern(Node fileset) { 393 393 // Locate the child node called filename 394 394 for(Node child = fileset.getFirstChild(); child != null; child = child.getNextSibling()) { … … 399 399 } 400 400 return null; 401 } 401 } */ 402 402 403 403 /*************************************************************************/ … … 406 406 * @return A fully qualified identifier as a <strong>String</strong> 407 407 */ 408 static final publicString getFullIdentifier(Node element, String namespace) {408 /* static final private String getFullIdentifier(Node element, String namespace) { 409 409 StringBuffer identifier_buffer = new StringBuffer(); 410 410 if(element == null) { … … 438 438 namespace = null; 439 439 return identifier_buffer.toString(); 440 } // static public String getFullIdentier(Node element) 440 } */ 441 441 442 442 /*************************************************************************/ … … 530 530 * @return The description node or null if no such node. 531 531 */ 532 static final publicNode getMetadataDescription(Node fileset) {532 /* static final private Node getMetadataDescription(Node fileset) { 533 533 // Locate the child node called filename 534 534 for(Node child = fileset.getLastChild(); child != null; child = child.getPreviousSibling()) { … … 538 538 } 539 539 return null; 540 } 540 } */ 541 541 542 542 /** Method to retrieve from the node given, a certain child node with the specified name. -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSet.java
r5777 r5785 301 301 * @return A <strong>String</strong> containing the address. 302 302 */ 303 publicString getContact() {303 /* private String getContact() { 304 304 return root.getAttribute("contact"); 305 } 305 } */ 306 306 /** Method to retrieve the name of the creator of this metadata set. 307 307 * @return A <strong>String</strong> containing the name. -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java
r5748 r5785 466 466 * @return A NodeList[] of metadata elements. 467 467 */ 468 publicNodeList[] getNodeLists() {468 /* private NodeList[] getNodeLists() { 469 469 NodeList elements[] = null; 470 470 int index = 0; … … 478 478 } 479 479 return elements; 480 } 480 } */ 481 481 482 482 /** Retrieve the named metadata set. … … 930 930 * @param new_name The String to use as the new name. 931 931 */ 932 publicvoid renameElement(ElementWrapper element, String new_name) {932 /* private void renameElement(ElementWrapper element, String new_name) { 933 933 Element e = element.getElement(); 934 934 String old_name = element.toString(); … … 937 937 old_name = null; 938 938 e = null; 939 } 939 } */ 940 940 /** A method to save the state of this metadata set manager. First we ensure that the names of all included metadata sets have been added to the collection configuration file, then all of the metadata sets contained are exported with full content to the collect/<col_name>/metadata/ directory. 941 941 */
Note:
See TracChangeset
for help on using the changeset viewer.