mas01mj@732: package asunit.util { mas01mj@732: import asunit.errors.UnimplementedFeatureError; mas01mj@732: import flash.errors.IllegalOperationError; mas01mj@732: mas01mj@732: [ExcludeClass] mas01mj@732: public dynamic class Properties { mas01mj@732: mas01mj@732: public function store(sharedObjectId:String):void { mas01mj@732: throw new UnimplementedFeatureError("Properties.store"); mas01mj@732: } mas01mj@732: mas01mj@732: public function put(key:String, value:Object):void { mas01mj@732: this[key] = value; mas01mj@732: } mas01mj@732: mas01mj@732: public function setProperty(key:String, value:Object):void { mas01mj@732: put(key, value); mas01mj@732: } mas01mj@732: mas01mj@732: public function getProperty(key:String):Object { mas01mj@732: try { mas01mj@732: return this[key]; mas01mj@732: } mas01mj@732: catch(e:Error) { mas01mj@732: throw IllegalOperationError("Properties.getProperty"); mas01mj@732: } mas01mj@732: return null; mas01mj@732: } mas01mj@732: } mas01mj@732: }