1 18 19 package org.apache.jmeter.config; 20 21 import java.io.Serializable ; 22 23 import org.apache.jmeter.testelement.AbstractTestElement; 24 import org.apache.jmeter.testelement.property.StringProperty; 25 26 30 38 public class Argument extends AbstractTestElement implements Serializable 39 { 40 41 public static final String ARG_NAME = "Argument.name"; 42 43 44 public static final String VALUE = "Argument.value"; 45 46 47 public static final String METADATA = "Argument.metadata"; 48 49 52 public Argument() 53 { 54 } 55 56 63 public Argument(String name, String value) 64 { 65 setProperty(new StringProperty(ARG_NAME, name)); 66 setProperty(new StringProperty(VALUE, value)); 67 } 68 69 76 public Argument(String name, String value, String metadata) 77 { 78 setProperty(new StringProperty(ARG_NAME, name)); 79 setProperty(new StringProperty(VALUE, value)); 80 setProperty(new StringProperty(METADATA, metadata)); 81 } 82 83 88 public void setName(String newName) 89 { 90 setProperty(new StringProperty(ARG_NAME, newName)); 91 } 92 93 98 public String getName() 99 { 100 return getPropertyAsString(ARG_NAME); 101 } 102 103 108 public void setValue(String newValue) 109 { 110 setProperty(new StringProperty(VALUE, newValue)); 111 } 112 113 118 public String getValue() 119 { 120 return getPropertyAsString(VALUE); 121 } 122 123 128 public void setMetaData(String newMetaData) 129 { 130 setProperty(new StringProperty(METADATA, newMetaData)); 131 } 132 133 138 public String getMetaData() 139 { 140 return getPropertyAsString(METADATA); 141 } 142 143 public String toString() 144 { 145 return getName()+getMetaData()+getValue(); 146 } 147 } 148 | Popular Tags |