Changeset 8809


Ignore:
Timestamp:
2004-12-14T17:21:05+13:00 (19 years ago)
Author:
mdewsnip
Message:

Minor changes.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gems/GEMS.java

    r8793 r8809  
    9595    static final private String SET = "set";
    9696    static final private String VALUES = "values";
     97
     98    static final public String METADATA_SET_TEMPLATE = "xml/template.mds";
     99    static final public String METADATA_VALUE_TEMPLATE = "xml/template.mdv";
     100
    97101   // static final public String MAX_LOADED_SETS = 64;
    98102    static public Configuration config = null;
  • trunk/gli/src/org/greenstone/gatherer/gems/MSMUtils.java

    r8581 r8809  
    716716     */
    717717    static final public Document getValueTreeTemplate() {
    718     return Utility.parse(Utility.METADATA_VALUE_TEMPLATE, true);
     718    return Utility.parse(GEMS.METADATA_VALUE_TEMPLATE, true);
    719719    }
    720720
  • trunk/gli/src/org/greenstone/gatherer/gems/MetadataSetManager.java

    r8793 r8809  
    8585
    8686    public MetadataSet addSet(String namespace, String name) {
    87     MetadataSet mds = new MetadataSet(Utility.METADATA_SET_TEMPLATE);
     87    MetadataSet mds = new MetadataSet(GEMS.METADATA_SET_TEMPLATE);
    8888    mds.setAttribute("creator", "The Greenstone Librarian Interface");
    8989    // Calculate lastchanged to right now on this machine by this user
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r8808 r8809  
    108108    /** Definition of an important zip file, in this case zipped up version of metadata file stored in JAR file */
    109109    static final public String METADATA_ZIP = "metadata.zip";
    110     /** The location the gatherer expects to find metadata set information. */
    111     static final public String METADATA_SET_TEMPLATE = "xml/template.mds";
    112     static final public String METADATA_VALUE_TEMPLATE = "xml/template.mdv";
    113110    /** The default name of the perl executable under unix. */
    114111    static final public String PERL_EXECUTABLE_UNIX = "perl";
     
    881878     * @return A <strong>String</strong> made from appending space characters with the string until it has a length equal to length.
    882879     */
    883     public static String pad(String str_raw, int length, char fill, boolean end) {
     880    static private String pad(String str_raw, int length, char fill, boolean end) {
    884881    StringBuffer str = new StringBuffer(str_raw);
    885882    while(str.length() < length) {
Note: See TracChangeset for help on using the changeset viewer.