- Timestamp:
- 07/25/13 14:53:22 (11 years ago)
- Location:
- trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLDocument.java
r1069 r1264 41 41 } 42 42 43 /* 44 * (non-Javadoc) 45 * 46 * @see java.lang.Object#toString() 43 /** 44 * <p> 45 * TODO: comment 46 * </p> 47 * 48 * @return 47 49 */ 48 @Override 49 public String toString() { 50 return "Document(" + getPath() + ", \"" + getTitle() + "\")"; 50 public String getPath() { 51 return ((HTMLDocumentSpec) super.getSpecification()).getPath(); 51 52 } 52 53 … … 79 80 * @return 80 81 */ 81 String getPath() {82 return ((HTMLDocumentSpec) super.getSpecification()).getPath();83 }84 85 /**86 * <p>87 * TODO: comment88 * </p>89 *90 * @return91 */92 82 String getTitle() { 93 83 return ((HTMLDocumentSpec) super.getSpecification()).getTitle(); -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLDocumentSpec.java
r1069 r1264 94 94 } 95 95 96 /* (non-Javadoc) 97 * @see java.lang.Object#toString() 98 */ 99 @Override 100 public String toString() { 101 return "Document(" + getPath() + ", \"" + getTitle() + "\")"; 102 } 103 96 104 /** 97 105 * <p> -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLGUIElement.java
r994 r1264 63 63 * (non-Javadoc) 64 64 * 65 * @see java.lang.Object#toString() 66 */ 67 @Override 68 public String toString() { 69 return super.getSpecification().toString(); 70 } 71 72 /* 73 * (non-Javadoc) 74 * 65 75 * @see 66 76 * de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#updateSpecification(de.ugoe.cs.autoquest.eventcore -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLPageElement.java
r1069 r1264 51 51 } 52 52 53 /* 54 * (non-Javadoc) 55 * 56 * @see java.lang.Object#toString() 53 /** 54 * <p> 55 * TODO: comment 56 * </p> 57 * 58 * @return 57 59 */ 58 @Override 59 public String toString() { 60 String str = getTagName(); 61 62 if ((getHtmlId() != null) && (!"".equals(getHtmlId()))) { 63 str += "(id=\"" + getHtmlId() + "\")"; 64 } 65 else { 66 str += "[" + getIndex() + "]"; 67 } 68 69 return str; 60 public String getTagName() { 61 return ((HTMLPageElementSpec) super.getSpecification()).getTagName(); 62 } 63 64 /** 65 * <p> 66 * TODO: comment 67 * </p> 68 * 69 * @return 70 */ 71 public String getHtmlId() { 72 return ((HTMLPageElementSpec) super.getSpecification()).getHtmlId(); 73 } 74 75 /** 76 * <p> 77 * TODO: comment 78 * </p> 79 * 80 * @return 81 */ 82 public int getIndex() { 83 return ((HTMLPageElementSpec) super.getSpecification()).getIndex(); 70 84 } 71 85 … … 91 105 } 92 106 93 /**94 * <p>95 * TODO: comment96 * </p>97 *98 * @return99 */100 String getTagName() {101 return ((HTMLPageElementSpec) super.getSpecification()).getTagName();102 }103 104 /**105 * <p>106 * TODO: comment107 * </p>108 *109 * @return110 */111 String getHtmlId() {112 return ((HTMLPageElementSpec) super.getSpecification()).getHtmlId();113 }114 115 /**116 * <p>117 * TODO: comment118 * </p>119 *120 * @return121 */122 int getIndex() {123 return ((HTMLPageElementSpec) super.getSpecification()).getIndex();124 }125 126 107 } -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLPageElementSpec.java
r1069 r1264 81 81 return false; 82 82 } 83 else if (!page.getSimilarity(otherSpec.page)) {83 /*else if (!page.getSimilarity(otherSpec.page)) { 84 84 return false; 85 } 85 }*/ 86 86 else if (!tagName.equals(otherSpec.tagName)) { 87 87 return false; … … 97 97 98 98 return false; 99 } 100 101 /* (non-Javadoc) 102 * @see java.lang.Object#toString() 103 */ 104 @Override 105 public String toString() { 106 String str = getTagName(); 107 108 if ((getHtmlId() != null) && (!"".equals(getHtmlId()))) { 109 str += "(id=\"" + getHtmlId() + "\")"; 110 } 111 else { 112 str += "[" + getIndex() + "]"; 113 } 114 115 return str; 99 116 } 100 117 -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLServer.java
r1222 r1264 49 49 * (non-Javadoc) 50 50 * 51 * @see java.lang.Object#toString()52 */53 @Override54 public String toString() {55 String str = "Server(" + getHost();56 57 if (getPort() > -1 ) {58 str += ":" + getPort();59 }60 61 str += ")";62 return str;63 }64 65 /*66 * (non-Javadoc)67 *68 51 * @see de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLGUIElement#getElementDescriptor() 69 52 */ -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLServerSpec.java
r1069 r1264 80 80 } 81 81 82 /* (non-Javadoc) 83 * @see java.lang.Object#toString() 84 */ 85 @Override 86 public String toString() { 87 String str = "Server(" + getHost(); 88 89 if (getPort() > -1 ) { 90 str += ":" + getPort(); 91 } 92 93 str += ")"; 94 return str; 95 } 96 82 97 /** 83 98 * <p>
Note: See TracChangeset
for help on using the changeset viewer.