Commit e1dda2bad41a9c7f82e4515bdf9f5cde38926685
1 parent
9f722a52
Exists in
master
Adição de javadoc para a classe
br.gov.frameworkdemoiselle.management.AttributeChangeNotification
Showing
1 changed file
with
27 additions
and
21 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/management/AttributeChangeNotification.java
... | ... | @@ -40,24 +40,40 @@ package br.gov.frameworkdemoiselle.management; |
40 | 40 | * Special notification to denote an attribute has changed values. |
41 | 41 | * |
42 | 42 | * @see GenericNotification |
43 | - * | |
44 | 43 | * @author serpro |
45 | - * | |
46 | 44 | */ |
47 | 45 | public class AttributeChangeNotification extends GenericNotification { |
48 | - | |
46 | + | |
49 | 47 | private String attributeName; |
50 | - | |
48 | + | |
51 | 49 | private Class<? extends Object> attributeType; |
52 | - | |
50 | + | |
53 | 51 | private Object oldValue; |
54 | - | |
52 | + | |
55 | 53 | private Object newValue; |
56 | - | |
57 | - public AttributeChangeNotification(){} | |
58 | - | |
59 | - public AttributeChangeNotification(Object message, String attributeName, Class<? extends Object> attributeType, Object oldValue, | |
60 | - Object newValue) { | |
54 | + | |
55 | + /** | |
56 | + * Constructor without params. | |
57 | + */ | |
58 | + public AttributeChangeNotification() { | |
59 | + } | |
60 | + | |
61 | + /** | |
62 | + * Set all the class attibutes, according to the parameters received. | |
63 | + * | |
64 | + * @param message | |
65 | + * message to be displayed. | |
66 | + * @param attributeName | |
67 | + * name of the monitored attribute. | |
68 | + * @param attributeType | |
69 | + * type of the monitored attribute. | |
70 | + * @param oldValue | |
71 | + * old value of the monitored attribute. | |
72 | + * @param newValue | |
73 | + * new value for the monitored attribute. | |
74 | + */ | |
75 | + public AttributeChangeNotification(Object message, String attributeName, Class<? extends Object> attributeType, | |
76 | + Object oldValue, Object newValue) { | |
61 | 77 | super(message); |
62 | 78 | this.attributeName = attributeName; |
63 | 79 | this.attributeType = attributeType; |
... | ... | @@ -65,46 +81,36 @@ public class AttributeChangeNotification extends GenericNotification { |
65 | 81 | this.newValue = newValue; |
66 | 82 | } |
67 | 83 | |
68 | - | |
69 | 84 | public String getAttributeName() { |
70 | 85 | return attributeName; |
71 | 86 | } |
72 | 87 | |
73 | - | |
74 | 88 | public void setAttributeName(String attributeName) { |
75 | 89 | this.attributeName = attributeName; |
76 | 90 | } |
77 | 91 | |
78 | - | |
79 | 92 | public Class<? extends Object> getAttributeType() { |
80 | 93 | return attributeType; |
81 | 94 | } |
82 | 95 | |
83 | - | |
84 | 96 | public void setAttributeType(Class<? extends Object> attributeType) { |
85 | 97 | this.attributeType = attributeType; |
86 | 98 | } |
87 | 99 | |
88 | - | |
89 | 100 | public Object getOldValue() { |
90 | 101 | return oldValue; |
91 | 102 | } |
92 | 103 | |
93 | - | |
94 | 104 | public void setOldValue(Object oldValue) { |
95 | 105 | this.oldValue = oldValue; |
96 | 106 | } |
97 | 107 | |
98 | - | |
99 | 108 | public Object getNewValue() { |
100 | 109 | return newValue; |
101 | 110 | } |
102 | 111 | |
103 | - | |
104 | 112 | public void setNewValue(Object newValue) { |
105 | 113 | this.newValue = newValue; |
106 | 114 | } |
107 | - | |
108 | - | |
109 | 115 | |
110 | 116 | } | ... | ... |