Changeset 4136


Ignore:
Timestamp:
06/23/08 12:22:38 (11 years ago)
Author:
curtis
Message:

Add methods to facilitate generation of group statistics.

Location:
trunk/loci/formats/auto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/auto/MetaSupportAutogen.java

    r4134 r4136  
    7272    context.put("q", supportList); 
    7373 
     74    // generate master table of metadata properties 
     75    //VelocityTools.processTemplate(ve, context, "MetaTableWikiPage.vm", 
     76    //  "doc/meta/SupportedMetadataFields.txt"); 
     77 
    7478    // generate metadata property support documentation for each handler 
    7579    for (String handler : supportList.handlers()) { 
  • trunk/loci/formats/auto/MetaSupportList.java

    r4134 r4136  
    111111        propList.add(prop); 
    112112      } 
     113      Collections.sort(propList); 
    113114      groups.put(groupName, propList); 
    114115    } 
     
    174175    catch (ReflectException exc) { } 
    175176    return "handler"; 
     177  } 
     178 
     179  /** Gets a list of all known groups. */ 
     180  public Vector<String> groups() { 
     181    Vector<String> groupList = new Vector<String>(); 
     182    for (String group : groups.keySet()) groupList.add(group); 
     183    Collections.sort(groupList); 
     184    return groupList; 
     185  } 
     186 
     187  /** Gets the list of properties belonging to the given group. */ 
     188  public Vector<String> groupMembers(String group) { 
     189    return groups.get(group); 
    176190  } 
    177191 
Note: See TracChangeset for help on using the changeset viewer.