void setName(String newName) { setProperty(new StringProperty(ARG_NAME, newName)); } /** * Get the name of the Argument. * * @return the attribute's name */ public String getName() { return getPropertyAsString(ARG_NAME); } /** * Sets the value of the Argument. * * @param newValue * the new value */ public void setValue(String newValue) { setProperty(new StringProperty(VALUE, newValue)); } /** * Gets the value of the Argument object. * * @return the attribute's value */ public String getValue() { return getPropertyAsString(VALUE); } /** * Sets the Meta Data attribute of the Argument. * * @param newMetaData * the new metadata */ public void setMetaData(String newMetaData) { setProperty(new StringProperty(METADATA, newMetaData)); } /** * Gets the Meta Data attribute of the Argument. * * @return the MetaData value */ public String getMetaData() { return getPropertyAsString(METADATA);
void setParamName(String newParamName) { setProperty(new StringProperty(PARAMNAME, newParamName)); } /** * Get the http parameter name of the File. * * @return the http parameter name */ public String getParamName() { return getPropertyAsString(PARAMNAME); } /** * Set the mimetype of the File. * * @param newMimeType * the new mimetype */ public void setMimeType(String newMimeType) { setProperty(new StringProperty(MIMETYPE, newMimeType)); } /** * Get the mimetype of the File. * * @return the http parameter mimetype */ public String getMimeType() { return getPropertyAsString(MIMETYPE); } /** * Set the path of the File. * * @param newPath * the new path */ public void setPath(String newPath) { setProperty(new StringProperty(FILEPATH, newPath)); } /** * Get the path of the File. * * @return the file's path */ public String getPath() { return getPropertyAsString(FILEPATH);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/Argument.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/util/HTTPFileArg.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setName(String newName) {
1
void setParamName(String newParamName) {
2
		setProperty(new StringProperty(ARG_NAME, newName));
2
		setProperty(new StringProperty(PARAMNAME, newParamName));
3
	}
3
	}
4
	/**
4
	/**
5
	 * Get the name of the Argument.
5
	 * Get the http parameter name of the File.
6
	 * 
6
	 *
7
	 * @return the attribute's name
7
	 * @return the http parameter name
8
	 */
8
	 */
9
	public String getName() {
9
	public String getParamName() {
10
		return getPropertyAsString(ARG_NAME);
10
		return getPropertyAsString(PARAMNAME);
11
	}
11
	}
12
	/**
12
	/**
13
	 * Sets the value of the Argument.
13
	 * Set the mimetype of the File.
14
	 * 
14
	 *
15
	 * @param newValue
15
	 * @param new
16
	 *            
16
MimeType
17
the new value
17
	 *	the new mimetype
18
	 */
18
	 */
19
	public void setValue(String newValue) {
19
	public void setMimeType(String newMimeType) {
20
		setProperty(new StringProperty(VALUE, newValue));
20
		setProperty(new StringProperty(MIMETYPE, newMimeType));
21
	}
21
	}
22
	/**
22
	/**
23
	 * Gets the value of the Argument object.
23
	 * Get the mimetype of the File.
24
	 * 
24
	 *
25
	 * @return the attribute's value
25
	 * @return the http parameter mimetype
26
	 */
26
	 */
27
	public String getValue() {
27
	public String getMimeType() {
28
		return getPropertyAsString(VALUE);
28
		return getPropertyAsString(MIMETYPE);
29
	}
29
	}
30
	/**
30
	/**
31
	 * Sets the Meta Data attribute of the Argument.
31
	 * Set the path of the File.
32
	 * 
32
	 *
33
	 * @param newMetaData
33
	 * @param newPath
34
	 *            the new metadata
34
	 *	the new path
35
	 */
35
	 */
36
	public void setMetaData(String newMetaData) {
36
	public void setPath(String newPath) {
37
		setProperty(new StringProperty(METADATA, newMetaData));
37
		setProperty(new StringProperty(FILEPATH, newPath));
38
	}
38
	}
39
	/**
39
	/**
40
	 * Gets the Meta Data attribute of the Argument.
40
	 * Get the path of the File.
41
	 * 
41
	 *
42
	 * @return the MetaData value
42
	 * @return the file's path
43
	 */
43
	 */
44
	public String getMetaData() {
44
	public String getPath() {
45
		return getPropertyAsString(METADATA);
45
		return getPropertyAsString(FILEPATH);
46
	
46
	
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