Package | away3d.library.naming |
Class | public class ConflictStrategyBase |
Inheritance | ConflictStrategyBase Object |
Subclasses | ErrorConflictStrategy, IgnoreConflictStrategy, NumSuffixConflictStrategy |
See also
Method | Defined By | ||
---|---|---|---|
ConflictStrategyBase | |||
Create instance of this conflict strategy. | ConflictStrategyBase | ||
resolveConflict(changedAsset:IAsset, oldAsset:IAsset, assetsDictionary:Object, precedence:String):void
Resolve a naming conflict between two assets. | ConflictStrategyBase |
Method | Defined By | ||
---|---|---|---|
updateNames(ns:String, nonConflictingName:String, oldAsset:IAsset, newAsset:IAsset, assetsDictionary:Object, precedence:String):void
Provided as a convenience method for all conflict strategy classes, as a way to finalize
the conflict resolution by applying the new names and dispatching the correct events. | ConflictStrategyBase |
ConflictStrategyBase | () | Constructor |
public function ConflictStrategyBase()
create | () | method |
public function create():ConflictStrategyBase
Create instance of this conflict strategy. Used internally by the AssetLibrary to make sure the same strategy instance is not used in all AssetLibrary instances, which would break any state caching that happens inside the strategy class.
ReturnsConflictStrategyBase |
resolveConflict | () | method |
public function resolveConflict(changedAsset:IAsset, oldAsset:IAsset, assetsDictionary:Object, precedence:String):void
Resolve a naming conflict between two assets. Must be implemented by concrete strategy classes.
Parameters
changedAsset:IAsset | |
oldAsset:IAsset | |
assetsDictionary:Object | |
precedence:String |
updateNames | () | method |
protected function updateNames(ns:String, nonConflictingName:String, oldAsset:IAsset, newAsset:IAsset, assetsDictionary:Object, precedence:String):void
Provided as a convenience method for all conflict strategy classes, as a way to finalize the conflict resolution by applying the new names and dispatching the correct events.
Parameters
ns:String | |
nonConflictingName:String | |
oldAsset:IAsset | |
newAsset:IAsset | |
assetsDictionary:Object | |
precedence:String |