void setXPathQuery(String val){ setProperty(XPATH_QUERY,val); } public String getXPathQuery(){ return getPropertyAsString(XPATH_QUERY); } public void setRefName(String refName) { setProperty(REFNAME, refName); } public String getRefName() { return getPropertyAsString(REFNAME);
void setXmlPathLoc(String path) { setProperty(XML_PATH_LOC, path); } /** * Get the path where XML messages are stored. this is the directory where * JMeter will randomly select a file. */ public String getXmlPathLoc() { return getPropertyAsString(XML_PATH_LOC); } /** * it's kinda obvious, but we state it anyways. Set the xml file with a * string path. * * @param filename */ public void setXmlFile(String filename) { setProperty(XML_DATA_FILE, filename); } /** * Get the file location of the xml file. * * @return String file path. */ public String getXmlFile() { return getPropertyAsString(XML_DATA_FILE);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/XPathExtractor.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/WebServiceSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setXPathQuery(String val){
1
void setXmlPathLoc(String 
2
        
2
path) {
3
setProperty(XPATH_QUERY,val);   
3
		setProperty(XML_PATH_
4
    }
5
    
6
    
4
LOC, path);
5
	}
6
	/**
7
	 * Get the path where XML messages are stored. this is the directory where
8
	 * JMeter will randomly select a file.
9
	 */
7
public String getXPathQuery(){
10
	public String getXmlPathLoc() {
8
        return getPropertyAsString(XPATH_QUERY);
11
		return getPropertyAsString(XML_PATH_
9
    }
10
  
12
LOC);
13
	}
14
	/**
15
	 * it's kinda obvious, but we state it anyways. Set the xml file with a
16
	 * string path.
17
	 * 
18
	 * @param filename
19
	 */
11
	public void setRefName(String refName) {
20
	public void setXmlFile(String filename) {
12
		setProperty(REFNAME, refName);
21
		setProperty(
13
	}
22
XML_DATA_FILE, filename);
23
	}
24
	/**
25
	 * Get the file location of the xml file.
26
	 * 
27
	 * @return String file path.
28
	 */
14
	public String getRefName() {
29
	public String getXmlFile() {
15
		return getPropertyAsString(REFNAME);
30
		return getPropertyAsString(XML_DATA_FILE);
16
	
31
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0