View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
10   */
11  package psiprobe.model;
12  
13  /**
14   * This bean represents HttpSession attribute. It is a part of the display model for
15   * ListSessionAttributesController.
16   */
17  public class Attribute {
18  
19    /** The name. */
20    private String name;
21  
22    /** The type. */
23    private String type;
24  
25    /** The value. */
26    private Object value;
27  
28    /** The serializable. */
29    private boolean serializable;
30  
31    /** The size. */
32    private long size;
33  
34    /**
35     * Gets the name.
36     *
37     * @return the name
38     */
39    public String getName() {
40      return name;
41    }
42  
43    /**
44     * Sets the name.
45     *
46     * @param name the new name
47     */
48    public void setName(String name) {
49      this.name = name;
50    }
51  
52    /**
53     * Gets the type.
54     *
55     * @return the type
56     */
57    public String getType() {
58      return type;
59    }
60  
61    /**
62     * Sets the type.
63     *
64     * @param type the new type
65     */
66    public void setType(String type) {
67      this.type = type;
68    }
69  
70    /**
71     * Gets the value.
72     *
73     * @return the value
74     */
75    public Object getValue() {
76      return value;
77    }
78  
79    /**
80     * Sets the value.
81     *
82     * @param value the new value
83     */
84    public void setValue(Object value) {
85      this.value = value;
86    }
87  
88    /**
89     * Checks if is serializable.
90     *
91     * @return true, if is serializable
92     */
93    public boolean isSerializable() {
94      return serializable;
95    }
96  
97    /**
98     * Sets the serializable.
99     *
100    * @param serializable the new serializable
101    */
102   public void setSerializable(boolean serializable) {
103     this.serializable = serializable;
104   }
105 
106   /**
107    * Gets the size.
108    *
109    * @return the size
110    */
111   public long getSize() {
112     return size;
113   }
114 
115   /**
116    * Sets the size.
117    *
118    * @param size the new size
119    */
120   public void setSize(long size) {
121     this.size = size;
122   }
123 
124 }