Mercurial > hg > audiodb
annotate bindings/as3/ext/asunit/util/Properties.as @ 770:c54bc2ffbf92 tip
update tags
author | convert-repo |
---|---|
date | Fri, 16 Dec 2011 11:34:01 +0000 |
parents | 3a0b9700b3d2 |
children |
rev | line source |
---|---|
mas01mj@732 | 1 package asunit.util { |
mas01mj@732 | 2 import asunit.errors.UnimplementedFeatureError; |
mas01mj@732 | 3 import flash.errors.IllegalOperationError; |
mas01mj@732 | 4 |
mas01mj@732 | 5 [ExcludeClass] |
mas01mj@732 | 6 public dynamic class Properties { |
mas01mj@732 | 7 |
mas01mj@732 | 8 public function store(sharedObjectId:String):void { |
mas01mj@732 | 9 throw new UnimplementedFeatureError("Properties.store"); |
mas01mj@732 | 10 } |
mas01mj@732 | 11 |
mas01mj@732 | 12 public function put(key:String, value:Object):void { |
mas01mj@732 | 13 this[key] = value; |
mas01mj@732 | 14 } |
mas01mj@732 | 15 |
mas01mj@732 | 16 public function setProperty(key:String, value:Object):void { |
mas01mj@732 | 17 put(key, value); |
mas01mj@732 | 18 } |
mas01mj@732 | 19 |
mas01mj@732 | 20 public function getProperty(key:String):Object { |
mas01mj@732 | 21 try { |
mas01mj@732 | 22 return this[key]; |
mas01mj@732 | 23 } |
mas01mj@732 | 24 catch(e:Error) { |
mas01mj@732 | 25 throw IllegalOperationError("Properties.getProperty"); |
mas01mj@732 | 26 } |
mas01mj@732 | 27 return null; |
mas01mj@732 | 28 } |
mas01mj@732 | 29 } |
mas01mj@732 | 30 } |