View Javadoc

1   /*
2    * WebFlow Navigation Manager: webflow definiton, server side navigation history and automatic session cleaning.
3    * Distributed under LGPL license at web site http://wfnm.sourceforge.net .
4    */
5   package net.sf.wfnm;
6   
7   import java.util.Enumeration;
8   
9   
10  /***
11   * Defines a container of attributes.
12   *
13   * @author <a href="mailto:malbari@users.sourceforge.net">Maurizio Albari</a>
14   * @version 1.0.6
15   */
16  public interface AttributeContainer {
17      /***
18       * Gets the value of an attribute.
19       *
20       * @param key the attribute key
21       *
22       * @return the value of the attribute
23       */
24      Object getAttribute(String key);
25  
26      /***
27       * Returns an enumeration of attribute names.
28       *
29       * @return an enumeration of attribute names
30       */
31      Enumeration getAttributeNames();
32  
33      /***
34       * Set the internal value of an attribute.
35       *
36       * @param key the attribute key
37       * @param value the attribute value
38       */
39      void setAttributeValue(String key, Object value);
40  
41      /***
42       * Get the unique identifier of this attribute container
43       *
44       * @return the unique identifier of this attribute container
45       */
46      String getId();
47  
48      /***
49       * Removes an attribute.
50       *
51       * @param key the attribute key
52       */
53      void removeAttributeValue(String key);
54  }