KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > programmerplanet > ant > taskdefs > jmeter > Property


1 package org.programmerplanet.ant.taskdefs.jmeter;
2
3 /**
4  * Used as an inner tag to capture arguments for runtime JMeter properties.
5  *
6  * @author <a HREF="mailto:xknight@users.sourceforge.net">Christopher Ottley</a>
7  */

8 public final class Property {
9     
10     private String JavaDoc name = "";
11     private String JavaDoc value = "";
12
13     public void setName(String JavaDoc arg) {
14         name = arg.trim();
15     }
16
17     public String JavaDoc getName() {
18         return name;
19     }
20
21     public void setValue(String JavaDoc arg) {
22         value = arg.trim();
23     }
24
25     public String JavaDoc getValue() {
26         return value;
27     }
28
29     public boolean isValid() {
30         return (!name.equals("") && !value.equals(""));
31     }
32
33     public String JavaDoc toString() {
34         return name + "=" + value;
35     }
36 }
37
Popular Tags