1 7 8 package org.cyberneko.html; 9 10 import org.apache.xerces.xni.Augmentations; 11 12 import java.util.Enumeration ; 13 import java.util.Hashtable ; 14 15 30 public class HTMLAugmentations 31 implements Augmentations { 32 33 37 38 protected Hashtable fItems = new Hashtable (); 39 40 44 46 47 public void removeAllItems() { 48 fItems.clear(); 49 } 51 53 54 public void clear() { 55 fItems.clear(); 56 } 58 62 72 public Object putItem(String key, Object item) { 73 return fItems.put(key, item); 74 } 76 77 86 public Object getItem(String key) { 87 return fItems.get(key); 88 } 90 97 public Object removeItem(String key) { 98 return fItems.remove(key); 99 } 101 104 public Enumeration keys() { 105 return fItems.keys(); 106 } 108 } | Popular Tags |