Ignore:
Timestamp:
09/09/11 06:23:36 (13 years ago)
Author:
sherbold
Message:
  • code documentation and formatting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/data/WindowTreeNode.java

    r52 r171  
    1818 *  
    1919 * @author Steffen Herbold 
     20 * @version 1.0 
    2021 */ 
    2122public class WindowTreeNode { 
     
    6970         */ 
    7071        private List<WindowTreeNode> children; 
    71          
     72 
    7273        /** 
    7374         * <p> 
     
    263264                        xmlString = parent.xmlRepresentation(); 
    264265                } 
    265                 xmlString += "<window name=\"" + StringTools.xmlEntityReplacement(windowName) + "\" class=\"" 
    266                                 + StringTools.xmlEntityReplacement(className) + "\" resourceId=\"" + resourceId + "\" isModal=\"" 
    267                                 + isModal + "\"/>"; 
     266                xmlString += "<window name=\"" 
     267                                + StringTools.xmlEntityReplacement(windowName) + "\" class=\"" 
     268                                + StringTools.xmlEntityReplacement(className) 
     269                                + "\" resourceId=\"" + resourceId + "\" isModal=\"" + isModal 
     270                                + "\"/>"; 
    268271                return xmlString; 
    269272        } 
    270          
     273 
     274        /** 
     275         * <p> 
     276         * Returns the names of the parents and itself separated by dots, e.g., 
     277         * "GrandParent.Parent.windowName" 
     278         * </p> 
     279         *  
     280         * @return names of the parents separated by dots 
     281         */ 
    271282        public String getParentNames() { 
    272283                String parentNames = ""; 
    273                 if (parent != null ) { 
    274                         parentNames = parent.getParentNames()+"."; 
     284                if (parent != null) { 
     285                        parentNames = parent.getParentNames() + "."; 
    275286                } 
    276287                parentNames += windowName; 
Note: See TracChangeset for help on using the changeset viewer.