Changeset 25313


Ignore:
Timestamp:
2012-03-28T17:01:41+13:00 (12 years ago)
Author:
sjm84
Message:

Some minor formatting changes

File:
1 edited

Legend:

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

    r25300 r25313  
    9292    public static final String DISPLAY_ELEM = "display";
    9393    public static final String LEVEL_ELEM = "level";
    94         public static final String REPLACE_ELEM = "replace";
     94    public static final String REPLACE_ELEM = "replace";
    9595
    9696    public static final String DBINFO_ELEM = "dbInfo";
     
    123123    // add on to another elem type to get a list of that type
    124124    public static final String LIST_MODIFIER = "List";
    125   // used to refer back to another element type
    126         public static final String REF_MODIFIER = "Ref";
     125    // used to refer back to another element type
     126    public static final String REF_MODIFIER = "Ref";
    127127    // greenstone xml attributes
    128128    public static final String COLLECTION_ATT = "collection";
     
    158158    public static final String NODE_STRUCTURE_ELEM = "nodeStructure";
    159159    public static final String NODE_ID_ATT = "nodeID";
    160         public static final String HREF_ID_ATT = "hrefId"; // for ids that need translating
    161         public static final String ID_MOD_ATT = "idMod"; // might hold .rt etc for hrefIds
     160    public static final String HREF_ID_ATT = "hrefId"; // for ids that need translating
     161    public static final String ID_MOD_ATT = "idMod"; // might hold .rt etc for hrefIds
    162162    public static final String NODE_OID = "oid";
    163163    public static final String NODE_NAME_ATT = "nodeName";
     
    11111111    private static void xmlNodeToString(StringBuffer sb, Node e, int depth, boolean printText)
    11121112    {
    1113         if(e == null)
     1113        if (e == null)
    11141114        {
    11151115            return;
    11161116        }
    1117        
     1117
    11181118        for (int i = 0; i < depth; i++)
    11191119            sb.append(' ');
     
    12531253    {
    12541254        ArrayList<String> groups = new ArrayList<String>();
    1255        
     1255
    12561256        Element groupList = (Element) GSXML.getChildByTagName(securityResponse, GSXML.GROUP_ELEM + GSXML.LIST_MODIFIER);
    1257         if(groupList == null)
     1257        if (groupList == null)
    12581258        {
    12591259            return groups;
    12601260        }
    1261        
     1261
    12621262        NodeList groupElems = GSXML.getChildrenByTagName(groupList, GSXML.GROUP_ELEM);
    1263        
    1264         for(int i = 0; i < groupElems.getLength(); i++)
     1263
     1264        for (int i = 0; i < groupElems.getLength(); i++)
    12651265        {
    12661266            Element groupElem = (Element) groupElems.item(i);
    12671267            groups.add(groupElem.getAttribute(GSXML.NAME_ATT));
    12681268        }
    1269        
     1269
    12701270        return groups;
    12711271    }
Note: See TracChangeset for help on using the changeset viewer.