Changeset 1022 for trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlPageElement.java
- Timestamp:
- 12/14/12 16:16:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlPageElement.java
r1019 r1022 20 20 /** 21 21 * <p> 22 * TODO comment 22 * represents an element of an HTML GUI. This can be a server, which is usually the root of a 23 * GUI structure, a web page, or a tag within a web page. 23 24 * </p> 24 25 * … … 28 29 29 30 /** 30 * 31 * path to the parent of this page element or null, if this is the root element 31 32 */ 32 33 private String parentPath; 33 34 34 35 /** 35 * 36 * the name of the tag represented by this page element. May also be the name of the server 37 * or the page. 36 38 */ 37 39 private String tagName; 38 40 39 41 /** 40 * 42 * the id of the page element. May also be the name of the server including port number or the 43 * URL of the page 41 44 */ 42 45 private String id; 43 46 44 47 /** 45 * 48 * the title of the page if a page is represented through this element 46 49 */ 47 50 private String title; 48 51 49 52 /** 50 * 53 * the index of this element regarding all elements with the same tag name in the list of 54 * children of the parent element 51 55 */ 52 56 private Integer index; 53 57 54 58 /** 55 * 59 * the children of this element 56 60 */ 57 61 private List<HtmlPageElement> children; … … 59 63 /** 60 64 * <p> 61 * TODO: comment 62 * </p> 63 * 64 * @param tagName 65 * @param index 66 * @param id 67 * @param children 65 * instantiates a new element representing a tag in an HTML page 66 * </p> 67 * 68 * @param parentPath the path through the DOM to the parent node of the represented tag 69 * @param tagName the name of the represented tag 70 * @param id the id of the tag in the DOM 71 * @param index the index of the represented tag regarding all tags with the same tag name 72 * in the list of children of the parent tag 68 73 */ 69 74 HtmlPageElement(String parentPath, String tagName, String id, Integer index) { … … 76 81 /** 77 82 * <p> 78 * TODO: comment 79 * </p> 80 * 81 * @param tagName 82 * @param index 83 * @param id 84 * @param children 83 * instantiates a new element representing an HTML page 84 * </p> 85 * 86 * @param parentPath the path through the DOM to the parent node of the represented tag which is 87 * usually a server 88 * @param tagName the name of the represented tag which is the path of the web page 89 * @param title the title of the web page 90 * @param id the id of the web page which is its path 91 * @param index usually 0 85 92 */ 86 93 HtmlPageElement(String parentPath, String tagName, String id, String title, Integer index) { … … 90 97 91 98 /** 99 * <p> 100 * returns the name of the tag represented by this page element. May also be the name of the 101 * server or the page. 102 * </p> 103 * 92 104 * @return the tagName 93 105 */ … … 97 109 98 110 /** 111 * <p> 112 * returns the id of the page element. May also be the name of the server including port 113 * number or the URL of the page 114 * </p> 115 * 99 116 * @return the id 100 117 */ … … 104 121 105 122 /** 123 * <p> 124 * returns the title of the page if a page is represented through this element 125 * </p> 126 * 106 127 * @return the title 107 128 */ … … 111 132 112 133 /** 134 * <p> 135 * returns the index of this element regarding all elements with the same tag name in the list 136 * of children of the parent element 137 * </p> 138 * 113 139 * @return the index 114 140 */ … … 118 144 119 145 /** 146 * <p> 147 * returns the children of this element if any, null else 148 * </p> 149 * 120 150 * @return the children 121 151 */ … … 126 156 127 157 /** 128 * 158 * adds a child to this element 159 * 160 * @param child the child to be added 129 161 */ 130 162 void addChild(HtmlPageElement child) { … … 140 172 /** 141 173 * <p> 142 * TODO: comment143 * </p> 144 * 145 * @return 174 * returns the path to the parent of this page element or null, if this is the root element 175 * </p> 176 * 177 * @return as described 146 178 */ 147 179 String getParentPath() { … … 151 183 /** 152 184 * <p> 153 * TODO: comment 154 * </p> 155 * 156 * @return 185 * calculates and returns the path to the represented page element through the DOM. Includes 186 * the parent path if any. The represented element is included in the path with its tag name 187 * and its id if it has one, or its index. 188 * </p> 189 * 190 * @return as described 157 191 */ 158 192 String getPath() {
Note: See TracChangeset
for help on using the changeset viewer.