Changeset 1436 for trunk/autoquest-plugin-html
- Timestamp:
- 03/06/14 10:30:03 (11 years ago)
- Location:
- trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLDocumentSpec.java
r1276 r1436 77 77 */ 78 78 public HTMLDocumentSpec(HTMLServerSpec server, String path, String query, String title) { 79 super("document"); 79 super("document", (server != null ? server.hashCode() : 0) + 80 (path != null ? path.hashCode() : 0) + (query != null ? query.hashCode() : 0) + 81 (title != null ? title.hashCode() : 0)); 80 82 81 83 if (server == null) { -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLGUIElementSpec.java
r1276 r1436 40 40 */ 41 41 private String type; 42 43 /** 44 * <p> 45 * the hashCode of this GUI element specification 46 * </p> 47 */ 48 private int hashCode; 42 49 43 50 /** … … 50 57 * @throws IllegalArgumentException if the provided type is null 51 58 */ 52 public HTMLGUIElementSpec(String type ) {59 public HTMLGUIElementSpec(String type, int hashCode) { 53 60 if (type == null) { 54 61 throw new IllegalArgumentException("type must not be null"); … … 56 63 57 64 this.type = type; 65 this.hashCode = hashCode; 58 66 } 59 67 … … 87 95 } 88 96 97 /* (non-Javadoc) 98 * @see java.lang.Object#hashCode() 99 */ 100 @Override 101 public int hashCode() { 102 return hashCode; 103 } 104 89 105 } -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLPageElementSpec.java
r1276 r1436 83 83 */ 84 84 public HTMLPageElementSpec(HTMLDocumentSpec page, String tagName, String htmlId, int index) { 85 super(tagName); 85 super(tagName, (page != null ? page.hashCode() : 0) + 86 (tagName != null ? tagName.hashCode() : 0) + 87 (htmlId != null ? htmlId.hashCode() : 0) + (index >= 0 ? index : 0)); 86 88 87 89 if (page == null) { -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLServerSpec.java
r1276 r1436 59 59 */ 60 60 public HTMLServerSpec(String host, int port) { 61 super("server" );61 super("server", (host != null ? host.hashCode() : 0) + port); 62 62 63 63 if (host == null) {
Note: See TracChangeset
for help on using the changeset viewer.