1 18 19 package org.apache.jmeter.testelement.property; 20 21 import org.apache.jmeter.testelement.TestElement; 22 23 28 public class NullProperty extends AbstractProperty 29 { 30 JMeterProperty tempValue; 31 32 public NullProperty(String name) 33 { 34 super(name); 35 } 36 37 public NullProperty() 38 { 39 super(); 40 } 41 42 45 public String getStringValue() 46 { 47 if(tempValue != null) 48 { 49 return tempValue.getStringValue(); 50 } 51 return ""; 52 } 53 54 public void setObjectValue(Object v) 55 { 56 } 57 58 61 public Object getObjectValue() 62 { 63 return null; 64 } 65 66 69 public boolean isRunningVersion() 70 { 71 return false; 72 } 73 74 77 public boolean isTemporary(TestElement owner) 78 { 79 return true; 80 } 81 82 85 public void mergeIn(JMeterProperty prop) 86 { 87 tempValue = prop; 88 } 89 90 93 public Object clone() 94 { 95 return this; 96 } 97 98 101 public boolean getBooleanValue() 102 { 103 return false; 104 } 105 106 109 public double getDoubleValue() 110 { 111 return 0; 112 } 113 114 117 public float getFloatValue() 118 { 119 return 0; 120 } 121 122 125 public int getIntValue() 126 { 127 return 0; 128 } 129 130 133 public long getLongValue() 134 { 135 return 0; 136 } 137 138 141 public void recoverRunningVersion(TestElement owner) 142 { 143 tempValue = null; 144 } 145 146 } 147 | Popular Tags |