Ignore:
Timestamp:
11/07/14 12:55:16 (10 years ago)
Author:
funger
Message:
  • add type hierarchy
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-android/src/main/java/de/ugoe/cs/autoquest/plugin/android/guimodel/ANDROIDGUIElementSpec.java

    r1813 r1815  
    1414package de.ugoe.cs.autoquest.plugin.android.guimodel; 
    1515 
     16import java.util.List; 
     17 
    1618import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 
    1719 
     
    3638        /* 
    3739         * (non-Javadoc) see 
    38          * de.ugoe.cs.autoquest.androidmonitor.AndroidmonitorLogFile logComponent() 
     40         * de.ugoe.cs.autoquest.androidmonitor.AndroidmonitorLogFile#logComponent() 
    3941         */ 
    4042        /** 
     
    7072         */ 
    7173        private String type; 
     74         
     75        /** 
     76     * <p> 
     77     * Type hierarchy of the class itself 
     78     * </p> 
     79     */ 
     80    private List<String> typeHierarchy = null; 
    7281 
    7382        /* 
     
    9099        @Override 
    91100        public String[] getTypeHierarchy() { 
    92                 return new String[] { (getType()) }; 
    93                 // TODO change this part after adding ancestors in 
    94                 // de.ugoe.cs.autoquest.androidmonitor.AndroidmonitorLogFile#addComponent 
     101                if (typeHierarchy == null) { 
     102            return new String[] 
     103                { (getType()) }; 
     104        } 
     105        else 
     106            return typeHierarchy.toArray(new String[typeHierarchy.size()]); 
    95107        } 
    96108 
     
    173185        this.type = type; 
    174186    } 
     187     
     188    /** 
     189     * <p> 
     190     * Sets the type hierarchy of the specified GUI element. 
     191     *  
     192     * @param typeHierarchy 
     193     *            </p> 
     194     */ 
     195    public void setTypeHierarchy(List<String> typeHierarchy) { 
     196        this.typeHierarchy = typeHierarchy; 
     197    } 
     198     
    175199 
    176200} 
Note: See TracChangeset for help on using the changeset viewer.