Changeset 6770 for trunk/gli/src/org/greenstone/gatherer/msm
- Timestamp:
- 2004-02-10T18:07:32+13:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/msm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/LegacyCollectionImporter.java
r6093 r6770 108 108 109 109 /** Processes the files in the import tree, editing metadata.xml files so they contain namespaced element names. 110 * @param collection_folder the base folder of this collection, needed for storing importing profiles111 110 * @param file the current file we are inspecting 112 111 */ -
trunk/gli/src/org/greenstone/gatherer/msm/MSMAction.java
r5785 r6770 60 60 * @param action An <i>int</i> representing what action needs to be taken in subsequent access of the given set and source element. 61 61 * @param target A <strong>String</strong> representing the fully qualified name of the target element. 62 * @param hfile If this action was created from the hfile parsing stage, does the element require a replacement to change its alias value into a real one. Note that this profile item may be created for fully namespaced elements as well, to ensure aliases are always remapped.63 62 */ 64 63 public MSMAction(int action, String target) { -
trunk/gli/src/org/greenstone/gatherer/msm/MSMPrompt.java
r6539 r6770 659 659 /** Prompts the user to choose how to import a metadata element. Gives the option of renaming the element to a certain value of a certain set, or adding to a selected set. 660 660 * @param name The name of the original metadata as a String. 661 * @param set The set previously choosen as the default set for this metadata (which it doesn't match somehow).662 661 * @return An ElementWrapper around the element that it has been matched to. 663 662 * @see org.greenstone.gatherer.msm.MSMPrompt.MSMDialog -
trunk/gli/src/org/greenstone/gatherer/msm/MSMUtils.java
r6622 r6770 224 224 /** 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). 225 225 * @param a_set The <strong>MetadataSet</strong> a comes from. 226 * @param a An <strong>Element</strong>.226 * @param ae An <strong>Element</strong>. 227 227 * @param b_set The <strong>MetadataSet</strong> b comes from. 228 * @param b The <strong>Element</strong> to compare it to.228 * @param be The <strong>Element</strong> to compare it to. 229 229 * @param values <i>true</i> if the AssignedValues tree should also be compared, <i>false</i> otherwise. 230 230 * @return <i>true</i> if the elements are equal, <i>false</i> otherwise. -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataComboBoxModel.java
r5589 r6770 44 44 import org.w3c.dom.*; 45 45 46 /** A combobox model that contains information from an array of NodeLists. */ 46 /** A combobox model that contains information from the metadata set manager. 47 * @see org.greenstone.gatherer.msm.MetadataSetManager*/ 47 48 public class MetadataComboBoxModel 48 49 extends DefaultComboBoxModel … … 50 51 private MetadataSetManager msm = null; 51 52 /** Constructor. 52 * @param nodelists The <strong>NodeList[]</strong> this model is proxied to.53 * @param msm The <strong>MetadataSetManager</strong> this model is proxied to. 53 54 */ 54 55 public MetadataComboBoxModel(MetadataSetManager msm) { -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSet.java
r6568 r6770 552 552 * @see org.greenstone.gatherer.Configuration#getLanguage() 553 553 * @see org.greenstone.gatherer.Gatherer#config 554 * @see org.greenstone.gatherer.msm.MSMUtils#getValue( Element)554 * @see org.greenstone.gatherer.msm.MSMUtils#getValue(Node) 555 555 * @see org.greenstone.gatherer.util.StaticStrings#CODE_ATTRIBUTE 556 556 * @see org.greenstone.gatherer.util.StaticStrings#SETLANGUAGE_ELEMENT -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java
r6394 r6770 100 100 101 101 /** Attach a piece of metadata to a record or records, ensuring the value tree is built properly, and correct messaging fired. 102 * @param id 102 103 * @param records A FileNode[] of records, or directories, to add the specified metadata to. 103 104 * @param element The metadata element, contained within an ElementWrapper to base metadata on. 104 * @param value The value to assign to the metadata as a String.105 * @param value_str The value to assign to the metadata as a String. 105 106 */ 106 107 public Metadata addMetadata(long id, FileNode records[], ElementWrapper element, String value_str) { … … 169 170 } 170 171 171 /** Add a value tree to a given metadata element. 172 * @param element The ElementWrapper containing the element you wish to add a value tree for. 173 * @param value_tree The root Element of the value tree. 172 /** Add a value tree to a given metadata element represented as a GValueModel 173 * @param model The <strong>GValueTree</strong> model 174 174 */ 175 175 public void addValueTree(GValueModel model) { … … 686 686 } 687 687 /** This method takes two metadata sets, the current one and a new one, and merges them. This merge takes place at an element level falling to lower levels as necessary (using <i>mergeMDE()</i> to merge elements and <i>mergeMDV()</i> to merge value trees. 688 * @param mds_cur rentThe currently loaded MetadataSet.688 * @param mds_cur The currently loaded MetadataSet. 689 689 * @param mds_new A new MetadataSet you wish to merge in. 690 690 * @return A boolean with value <i>true</i> indicating if the merge was successful, otherwise <i>false</i> if errors were detected. … … 1041 1041 1042 1042 /** Update a piece of metadata connected to a record or records, ensuring the value tree is built properly, and correct messaging fired. 1043 * @param id 1044 * @param old_metadata The metadata element, 1043 1045 * @param records A FileNode[] of records, or directories, to add the specified metadata to. 1044 * @param element The metadata element, contained within an ElementWrapper to base metadata on. 1045 * @param value The value to assign to the metadata as a String. 1046 * @param value_str The value to assign to the metadata as a String. 1046 1047 * @param action The default action to take in the prompt. 1047 1048 * @param file_level If true then the metadata can be replaced normally, if false then we should actually use an add method instead. … … 1092 1093 * @param data the new Metadata. 1093 1094 * @param action the default action as an int. May require user interaction. 1094 * @param fire_event <i>true</i> if this action should fire a metadata changed event, <i>false</i> if we are calling this as an affect of a previous event. (Don't want an infinitely recursive loop, do we).1095 1095 * @param multiple_selection <i>true</i> if more than one file or folder was selected. 1096 1096 * @return an int specifying the current action. Thus changes in lower parts of the tree continue to effect other disjoint subtrees. … … 1194 1194 * @param data the <strong>Metadata</strong> you wish removed from the tree. 1195 1195 * @param action an <i>int</i> specifying the wanted prompting action. 1196 * @param fire_event <i>true</i> if this action should fire metadata changed events.1197 1196 * @param multiple_selection the number of records in the selection, as an <i>int</i>. Used to determine prompt controls. 1198 1197 * @return an <i>int</i> specifying the current action. Thus changes in lower parts of the tree continue to effect other disjoint subtrees. -
trunk/gli/src/org/greenstone/gatherer/msm/parsers/GreenstoneMetadataParser.java
r6539 r6770 688 688 extends LinkedHashMap { 689 689 /** Retrieve the CollectCFG object that matches the given collection file path. 690 * @param collect ion_file The <strong>File</strong> that references the collection's directory.690 * @param collect_cfg_file The <strong>File</strong> that references the collection's directory. 691 691 * @return The <strong>CollectCFG</strong> that belongs to this collection, or <i>null</i> if no such file exists (so we probably aren't in a collection!). 692 692 */
Note:
See TracChangeset
for help on using the changeset viewer.