Changeset 1069 for trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLPageElementSpec.java
- Timestamp:
- 02/14/13 15:20:07 (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
r1059 r1069 30 30 31 31 /** */ 32 private HTML PageSpec page;32 private HTMLDocumentSpec page; 33 33 34 34 /** */ 35 private String tag ;35 private String tagName; 36 36 37 37 /** */ 38 private String id;38 private String htmlId; 39 39 40 40 /** */ … … 50 50 * @param id 51 51 */ 52 public HTMLPageElementSpec(HTML PageSpec page, String tag, String id, int index) {53 super(tag );52 public HTMLPageElementSpec(HTMLDocumentSpec page, String tagName, String htmlId, int index) { 53 super(tagName); 54 54 55 55 if (page == null) { 56 56 throw new IllegalArgumentException("page must not be null"); 57 57 } 58 else if (tag == null) {58 else if (tagName == null) { 59 59 throw new IllegalArgumentException("tag must not be null"); 60 60 } 61 else if (( id == null) && (index < 0)) {61 else if ((htmlId == null) && (index < 0)) { 62 62 throw new IllegalArgumentException 63 63 ("either id must not be null or the index must be greater or equal to 0"); … … 65 65 66 66 this.page = page; 67 this.tag = tag;68 this. id = id;67 this.tagName = tagName; 68 this.htmlId = htmlId; 69 69 this.index = index; 70 70 } … … 84 84 return false; 85 85 } 86 else if (!tag .equals(otherSpec.tag)) {86 else if (!tagName.equals(otherSpec.tagName)) { 87 87 return false; 88 88 } 89 89 90 if ( id != null) {91 return id.equals(otherSpec.id);90 if (htmlId != null) { 91 return htmlId.equals(otherSpec.htmlId); 92 92 } 93 93 else if (index >= 0) { … … 106 106 * @return 107 107 */ 108 public HTMLPageSpec getPage() {108 HTMLDocumentSpec getPage() { 109 109 return page; 110 110 } … … 117 117 * @return 118 118 */ 119 String getTag () {120 return tag ;119 String getTagName() { 120 return tagName; 121 121 } 122 122 … … 128 128 * @return 129 129 */ 130 String get TagId() {131 return id;130 String getHtmlId() { 131 return htmlId; 132 132 } 133 133 … … 139 139 * @return 140 140 */ 141 int get TagIndex() {141 int getIndex() { 142 142 return index; 143 143 }
Note: See TracChangeset
for help on using the changeset viewer.