@param name the name of the variable to lookup @return the variable value
(String name)
| 60 | * @return the variable value |
| 61 | */ |
| 62 | public Object getVariable(String name) { |
| 63 | if (variables == null) |
| 64 | throw new MissingPropertyException(name, this.getClass()); |
| 65 | |
| 66 | Object result = variables.get(name); |
| 67 | |
| 68 | if (result == null && !variables.containsKey(name)) { |
| 69 | throw new MissingPropertyException(name, this.getClass()); |
| 70 | } |
| 71 | |
| 72 | return result; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Sets the value of the given variable |