Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / build / distribution / IzPack / src / lib / com / izforge / izpack / installer / VariableValueMap.java @ 23393

History | View | Annotate | Download (1.88 KB)

1
/*
2
 *  $Id: VariableValueMap.java 5819 2006-06-14 07:29:09Z cesar $
3
 *  IzPack
4
 *  Copyright (C) 2002 Johannes Lehtinen
5
 *
6
 *  File :               VariableValueMap.java
7
 *  Description :        Interface for map of variable values.
8
 *  Author's email :     johannes.lehtinen@iki.fi
9
 *  Author's Website :   http://www.iki.fi/jle/
10
 *
11
 *  This program is free software; you can redistribute it and/or
12
 *  modify it under the terms of the GNU General Public License
13
 *  as published by the Free Software Foundation; either version 2
14
 *  of the License, or any later version.
15
 *
16
 *  This program is distributed in the hope that it will be useful,
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 *  GNU General Public License for more details.
20
 *
21
 *  You should have received a copy of the GNU General Public License
22
 *  along with this program; if not, write to the Free Software
23
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
 */
25
package com.izforge.izpack.installer;
26

    
27
import java.util.Map;
28

    
29
/**
30
 *  Maps variable names to a variable value.
31
 *
32
 * @author     Johannes Lehtinen <johannes.lehtinen@iki.fi>
33
 * @deprecated Use a Properties object instead. Methods in IzPack which accept or return
34
 * VariableValueMap have been deprecated in favor of versions which use Properties.
35
 */
36
public interface VariableValueMap extends Map
37
{
38

    
39
  /**
40
   *  Returns the current value for the specified variable.
41
   *
42
   * @param  var  the name of the variable
43
   * @return      the current value or null if not set
44
   */
45
  String getVariable(String var);
46

    
47

    
48
  /**
49
   *  Sets a new value for the specified variable.
50
   *
51
   * @param  var  the name of the variable
52
   * @param  val  the new value for the variable
53
   */
54
  void setVariable(String var, String val);
55
}
56