| 1 | /** |
| 2 | * BSD-style license; for more info see http://xradar.sourceforge.net/license.html |
| 3 | */ |
| 4 | package org.sourceforge.xradar.statics; |
| 5 | |
| 6 | /** |
| 7 | * <p>This class represents a simple parameter, name/value. Generally, this parameter |
| 8 | * is passed to an XSL transformation.</p> |
| 9 | * |
| 10 | * @author Romain PELISSE, belaran@gmail.com |
| 11 | * |
| 12 | */ |
| 13 | public class Param { |
| 14 | |
| 15 | private String expression; |
| 16 | private String name; |
| 17 | |
| 18 | public Param(String name, String expression) |
| 19 | { |
| 20 | this.name = name; |
| 21 | this.expression = expression; |
| 22 | } |
| 23 | /** |
| 24 | * @return the expression |
| 25 | */ |
| 26 | public String getExpression() { |
| 27 | return expression; |
| 28 | } |
| 29 | /** |
| 30 | * @param expression the expression to set |
| 31 | */ |
| 32 | public void setExpression(String expression) { |
| 33 | this.expression = expression; |
| 34 | } |
| 35 | /** |
| 36 | * @return the name |
| 37 | */ |
| 38 | public String getName() { |
| 39 | return name; |
| 40 | } |
| 41 | /** |
| 42 | * @param name the name to set |
| 43 | */ |
| 44 | public void setName(String name) { |
| 45 | this.name = name; |
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public String toString() { |
| 50 | return "Name:" + this.name + ",expression:" + this.expression; |
| 51 | } |
| 52 | } |