KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cve > esecutori > components > specificaLV > Representation


1 package cve.esecutori.components.specificaLV;
2
3 import java.util.*;
4
5 import cve.staticLayout.*;
6
7 import org.apache.log4j.Logger;
8
9 /**
10 * Memorizza informazioni riguardanti la rappresentazione visuale di un cp
11 *
12 *@see cve.esecutori.EACesec
13 *@see cve.esecutori.components.specificaLV.Specfica
14 *@see cve.esecutori.components.specificaLV.AnalizzaAlfabetoW
15 *@version 1.0
16 *@author Domenico Ventriglia
17 *@author Francesco Guerrisi
18 */

19 public class Representation
20 {
21    private HashMap attribute;
22
23    public Representation(){
24       Cve.errLog.debug("");
25       attribute = new HashMap();
26    }
27
28
29    public void putAttribute(String JavaDoc name, String JavaDoc value){
30       Cve.errLog.debug("");
31       attribute.remove(name);
32       attribute.put(name,value);
33
34    }
35
36    public String JavaDoc getAttribute(String JavaDoc name){
37       Cve.errLog.debug("");
38       return (String JavaDoc)attribute.get(name);
39    }
40
41
42 }
Popular Tags