Package | org.vostokframework.domain.assets |
Class | public class AssetFactory |
Inheritance | AssetFactory Object |
Method | Defined By | ||
---|---|---|---|
AssetFactory | |||
description
| AssetFactory | ||
setUrlAssetParser(parser:UrlAssetParser):void
description
| AssetFactory |
AssetFactory | () | Constructor |
public function AssetFactory()
create | () | method |
public function create(src:String, assetPackage:AssetPackage, id:String = null, type:AssetType = null):Asset
description
Parameters
src:String | |
assetPackage:AssetPackage | |
id:String (default = null )
| |
type:AssetType (default = null )
|
Asset —
|
ArgumentError — if the <codeph>src</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
| |
ArgumentError — if the <codeph>assetPackage</codeph> argument is <codeph>null</codeph>.
| |
org.vostokframework.domain.assets.errors:UnsupportedAssetType — if the <codeph>type</codeph> argument is <codeph>null</codeph> and the framework cannot get the Asset Type over its <codeph>src</codeph> argument or the file extension in the <codeph>src</codeph> argument is not supported.
|
setUrlAssetParser | () | method |
public function setUrlAssetParser(parser:UrlAssetParser):void
description
Parameters
parser:UrlAssetParser |
ArgumentError — if the <codeph>settings</codeph> argument is <codeph>null</codeph>.
|