Changeset 5110


Ignore:
Timestamp:
2003-08-07T16:49:55+12:00 (21 years ago)
Author:
kjdon
Message:

small changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSXML.java

    r4978 r5110  
    116116    public static final String PARAM_TYPE_MULTI = "multi";
    117117    public static final String PARAM_TYPE_FILE = "file";
    118    
     118    public static final String PARAM_TYPE_INVISIBLE = "invisible";
    119119    // stuff for text strings
    120120    public static final String DISPLAY_TEXT_ELEM = "displayItem";
     
    122122    public static final String DISPLAY_TEXT_NAME = "name";
    123123    public static final String DISPLAY_TEXT_SUBMIT = "submit";
     124    public static final String DISPLAY_TEXT_DESCRIPTION = "description";
    124125
    125126    // request types - do we need all these? or just
     
    583584    return filtered.toString();
    584585    }
     586
     587   
     588//      // replaces < > " ' & in the original with their entities
     589//      public static String unXmlSafe(String original) {
     590
     591//      StringBuffer filtered = new StringBuffer(original.length());
     592//      char c;
     593//      for (int i=0; i<original.length(); i++) {
     594//          c = original.charAt(i);
     595//          if (c == '&') {
     596//          int pos = original.indexOf(";"), i);
     597//          String entity = original.substring(i+1, pos);
     598//          if (entity.equals("gt")) {
     599//          filtered.append(">");
     600//          } else if (entity.equals("lt")) {
     601//          filtered.append("<");
     602//          } else if (entity.equals("apos")) {
     603//          filtered.append(
     604//          while (c != ';') {
     605           
     606//          // process the entity
     607//          } else {
     608//          filtered.append(c);
     609//          }
     610//      }
     611//      return filtered.toString();
     612//      }
    585613}
Note: See TracChangeset for help on using the changeset viewer.