Changeset 1276 for trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLPageElementSpec.java
- Timestamp:
- 07/26/13 09:20:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLPageElementSpec.java
r1264 r1276 19 19 /** 20 20 * <p> 21 * TODO comment 21 * This is a GUI element specification for tags in HTML documents. Each tag belongs to a certain 22 * document. However, for similarity comparison, two page elements are similar even if they do 23 * not belong to the same document. Each page element has a tag name and either an id or at least 24 * an index in the list of siblings of the same type. 22 25 * </p> 23 26 * … … 26 29 public class HTMLPageElementSpec extends HTMLGUIElementSpec implements IGUIElementSpec { 27 30 28 /** */ 31 /** 32 * <p> 33 * default serial version UID 34 * </p> 35 */ 29 36 private static final long serialVersionUID = 1L; 30 37 31 /** */ 38 /** 39 * <p> 40 * the page to which the represented tag belongs 41 * </p> 42 */ 32 43 private HTMLDocumentSpec page; 33 44 34 /** */ 45 /** 46 * <p> 47 * the name of the tag represented by this specification 48 * </p> 49 */ 35 50 private String tagName; 36 51 37 /** */ 52 /** 53 * <p> 54 * the id of the tag represented by this specification, i.e., the value of the id attribute 55 * of the tag. May be null in the case the id attribute of the tag is not set. 56 * </p> 57 */ 38 58 private String htmlId; 39 59 40 /** */ 60 /** 61 * <p> 62 * the index of the tag (0 based) in the list of siblings in the same parent being of the 63 * same type. If, e.g., a parent has three li tags as children, the first will have index 0, 64 * the second index 1 and the third index2. The indexes are ignored, if the tag have an 65 * assigned id. 66 * </p> 67 */ 41 68 private int index; 42 69 43 70 /** 44 71 * <p> 45 * TODO: comment 72 * initializes the specification with the page to which the represented tag belongs, the tags 73 * name, its id or its index. 46 74 * </p> 47 75 * 48 * @param type 49 * @param index 50 * @param id 76 * @param page the page to which the represented tag belongs 77 * @param tagName the name of the tag represented by this specification 78 * @param htmlId the id of the tag represented by this specification 79 * @param index the index of the tag 80 * 81 * @throws IllegalArgumentException if page and name are null or if neither an id nor an index 82 * are provided correctly 51 83 */ 52 84 public HTMLPageElementSpec(HTMLDocumentSpec page, String tagName, String htmlId, int index) { … … 118 150 /** 119 151 * <p> 120 * TODO: comment152 * returns the page to which the represented tag belongs 121 153 * </p> 122 154 * 123 * @return 155 * @return the page to which the represented tag belongs 124 156 */ 125 157 HTMLDocumentSpec getPage() { … … 129 161 /** 130 162 * <p> 131 * TODO: comment163 * returns the name of the tag represented by this specification 132 164 * </p> 133 165 * 134 * @return 166 * @return the name of the tag represented by this specification 135 167 */ 136 168 String getTagName() { … … 140 172 /** 141 173 * <p> 142 * TODO: comment174 * returns the id of the tag represented by this specification 143 175 * </p> 144 176 * 145 * @return 177 * @return the id of the tag represented by this specification 146 178 */ 147 179 String getHtmlId() { … … 151 183 /** 152 184 * <p> 153 * TODO: comment185 * returns the index of the tag 154 186 * </p> 155 187 * 156 * @return 188 * @return the index of the tag 157 189 */ 158 190 int getIndex() {
Note: See TracChangeset
for help on using the changeset viewer.