Skip to content
Browse files

renamed decoder methods addCommandClass() to addClass()

and hasCommandClass() to hasClass()
  • Loading branch information...
1 parent 023e22b commit 34ef2ab807bb3e83b2686fb6aea9818693edd542 @neilmanuell neilmanuell committed Mar 15, 2011
View
8 src/org/osflash/statemachine/SignalFSMInjector.as
@@ -77,8 +77,8 @@ package org.osflash.statemachine {
* @param commandClass a command Class reference
* @return Whether the command Class was added successfully
*/
- public function addCommandClass( commandClass:Class ):Boolean{
- return _decoder.addCommandClass( commandClass );
+ public function addClass( commandClass:Class ):Boolean{
+ return _decoder.addClass( commandClass );
}
/**
@@ -87,8 +87,8 @@ package org.osflash.statemachine {
* @param name this can either be the name, the fully qualified name or an instance of the Class
* @return
*/
- public function hasCommandClass( name:Object ):Boolean{
- return _decoder.hasCommandClass( name );
+ public function hasClass( name:Object ):Boolean{
+ return _decoder.hasClass( name );
}
/**
View
10 src/org/osflash/statemachine/decoding/SignalXMLStateDecoder.as
@@ -82,13 +82,13 @@ package org.osflash.statemachine.decoding {
* Adds a command Class reference.
*
* Any command declared in the state declaration must be added here.
- * @param commandClass the command class
+ * @param value the command class
* @return whether the command class has been add successfully
*/
- public function addCommandClass( commandClass:Class ):Boolean{
+ public function addClass( value:Class ):Boolean{
if( classBagMap == null ) classBagMap = [];
- if( hasCommandClass( commandClass ) ) return false;
- classBagMap.push( new ClassBag( commandClass ) );
+ if( hasClass( value ) ) return false;
+ classBagMap.push( new ClassBag( value ) );
return true;
}
@@ -98,7 +98,7 @@ package org.osflash.statemachine.decoding {
* @param name this can either be the name, the fully qualified name or an instance of the Class
* @return
*/
- public function hasCommandClass( name:Object ):Boolean{
+ public function hasClass( name:Object ):Boolean{
return ( getCommandClass( name ) != null );
}

0 comments on commit 34ef2ab

Please sign in to comment.
Something went wrong with that request. Please try again.