home *** CD-ROM | disk | FTP | other *** search
- package org.puremvc.as3.patterns.observer
- {
- import org.puremvc.as3.interfaces.*;
-
- public class Notification implements INotification
- {
-
-
- private var body:Object;
-
- private var name:String;
-
- private var type:String;
-
- public function Notification(name:String, body:Object = null, type:String = null)
- {
- super();
- this.name = name;
- this.body = body;
- this.type = type;
- }
-
- public function setBody(body:Object) : void
- {
- this.body = body;
- }
-
- public function getName() : String
- {
- return name;
- }
-
- public function toString() : String
- {
- var msg:String = "Notification Name: " + getName();
- msg += "\nBody:" + (body == null ? "null" : body.toString());
- return msg + ("\nType:" + (type == null ? "null" : type));
- }
-
- public function getType() : String
- {
- return type;
- }
-
- public function setType(type:String) : void
- {
- this.type = type;
- }
-
- public function getBody() : Object
- {
- return body;
- }
- }
- }
-