Commit e1dda2bad41a9c7f82e4515bdf9f5cde38926685

Authored by Emerson Oliveira
1 parent 9f722a52
Exists in master

Adição de javadoc para a classe

br.gov.frameworkdemoiselle.management.AttributeChangeNotification
impl/core/src/main/java/br/gov/frameworkdemoiselle/management/AttributeChangeNotification.java
@@ -40,24 +40,40 @@ package br.gov.frameworkdemoiselle.management; @@ -40,24 +40,40 @@ package br.gov.frameworkdemoiselle.management;
40 * Special notification to denote an attribute has changed values. 40 * Special notification to denote an attribute has changed values.
41 * 41 *
42 * @see GenericNotification 42 * @see GenericNotification
43 - *  
44 * @author serpro 43 * @author serpro
45 - *  
46 */ 44 */
47 public class AttributeChangeNotification extends GenericNotification { 45 public class AttributeChangeNotification extends GenericNotification {
48 - 46 +
49 private String attributeName; 47 private String attributeName;
50 - 48 +
51 private Class<? extends Object> attributeType; 49 private Class<? extends Object> attributeType;
52 - 50 +
53 private Object oldValue; 51 private Object oldValue;
54 - 52 +
55 private Object newValue; 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 super(message); 77 super(message);
62 this.attributeName = attributeName; 78 this.attributeName = attributeName;
63 this.attributeType = attributeType; 79 this.attributeType = attributeType;
@@ -65,46 +81,36 @@ public class AttributeChangeNotification extends GenericNotification { @@ -65,46 +81,36 @@ public class AttributeChangeNotification extends GenericNotification {
65 this.newValue = newValue; 81 this.newValue = newValue;
66 } 82 }
67 83
68 -  
69 public String getAttributeName() { 84 public String getAttributeName() {
70 return attributeName; 85 return attributeName;
71 } 86 }
72 87
73 -  
74 public void setAttributeName(String attributeName) { 88 public void setAttributeName(String attributeName) {
75 this.attributeName = attributeName; 89 this.attributeName = attributeName;
76 } 90 }
77 91
78 -  
79 public Class<? extends Object> getAttributeType() { 92 public Class<? extends Object> getAttributeType() {
80 return attributeType; 93 return attributeType;
81 } 94 }
82 95
83 -  
84 public void setAttributeType(Class<? extends Object> attributeType) { 96 public void setAttributeType(Class<? extends Object> attributeType) {
85 this.attributeType = attributeType; 97 this.attributeType = attributeType;
86 } 98 }
87 99
88 -  
89 public Object getOldValue() { 100 public Object getOldValue() {
90 return oldValue; 101 return oldValue;
91 } 102 }
92 103
93 -  
94 public void setOldValue(Object oldValue) { 104 public void setOldValue(Object oldValue) {
95 this.oldValue = oldValue; 105 this.oldValue = oldValue;
96 } 106 }
97 107
98 -  
99 public Object getNewValue() { 108 public Object getNewValue() {
100 return newValue; 109 return newValue;
101 } 110 }
102 111
103 -  
104 public void setNewValue(Object newValue) { 112 public void setNewValue(Object newValue) {
105 this.newValue = newValue; 113 this.newValue = newValue;
106 } 114 }
107 -  
108 -  
109 115
110 } 116 }