Ignore:
Timestamp:
2003-12-02T17:18:37+13:00 (20 years ago)
Author:
jmt12
Message:

Extended arguments so they could be given a minimum and maximum range. Then if they are INTEGER type controls, the spinner control generated will honour any range information. Range information is supplied via the perl -xml type mechanism, using the tag form <Range>0,3</Range>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java

    r6063 r6087  
    3232/** Were you to guess that this is a class object choc-a-block full of static stringy goodness, you'd be right. They come in several flavours: Those ending _STR are strings you might find as values in XML, _ELEMENT are element names, _ATTRIBUTE are attribute names, _CHAR are particular characters while _CHARACTER are also characters but expressed as strings (for regex purposes ie startsWith, endsWith, indexOf and replaceAll); _PATTERN are strings which require extra escaping to put them through regex. Finally anything else is just a static string used within GLI. */
    3333public class StaticStrings {
    34     static final public char   CLOSEBRACKET_CHAR                          = ']';
     34    static final public char   CLOSEBRACKET_CHAR                          = ']';
    3535    static final public char   DOUBLEQUOTE_CHAR                           = '\"';
    3636    static final public char   BACKSLASH_CHAR                             = '\\';
     
    7979    static final public String DEBUG_ARGUMENT                             = "-debug";
    8080    static final public String DICTIONARY_FILENAME                        = "dictionary";
     81    static final public String DIRECTORY_MAPPINGS_ELEMENT                 = "DirectoryMappings";
    8182    static final public String ETC_FOLDER                                 = "etc";
    8283    static final public String EMPTY_STR                                  = "";
     
    9293    static final public String EXTRACTED_NAMESPACE                        = "ex.";
    9394    static final public String FALSE_STR                                  = "false";
     95    static final public String FILE_ATTRIBUTE                             = "file";
    9496    static final public String FILENAME_STR                               = "Filename";
    9597    static final public String FLAG_STR                                   = "flag";
     
    104106    static final public String HELP_ARGUMENT                              = "-help";
    105107    static final public String IMAGES_FOLDER                              = "images";
    106     static final public String IMAGES_PATH_PREFIX                         = "_httpcollection_/images/";
     108    static final public String IMAGES_PATH_RELATIVE_TO_COLLECTION_PREFIX  = "_httpcollection_/images/";
     109    static final public String IMAGES_PATH_RELATIVE_TO_GSDL_PREFIX        = "_httpprefix_/collect/<col_name>/images/";
    107110    static final public String IMPORT_FOLDER                              = "import";
    108111    static final public String INCLUDE_STR                                = "include";
     
    129132    static final public String LIBRARY_STR                                = "library";
    130133    static final public String LOAD_ARGUMENT                              = "-load";
     134    static final public String MAPPING_ELEMENT                            = "Mapping";
    131135    static final public String MARC_EXTENSION                             = ".marc";
    132136    static final public String METADATA_ARGUMENT                          = "-metadata";
     
    155159    static final public String PROPERTIES_FILE_EXTENSION                  = ".properties";
    156160    static final public String PSEUDO_COLLECTCONFIGURATION_XML            = "xml/CollectionConfig.xml";
     161    static final public String RANGE_ELEMENT                              = "Range";
    157162    static final public String RBRACKET_CHARACTER                         = "]";
    158163    static final public String RBRACKET_PATTERN                           = "\\]";
Note: See TracChangeset for help on using the changeset viewer.