Package com.jme3.asset
Class AssetKey<T>
java.lang.Object
com.jme3.asset.AssetKey<T>
- Direct Known Subclasses:
 AudioKey,FilterKey,MaterialKey,ModelKey,OgreMaterialKey,ShaderAssetKey,ShaderNodeDefinitionKey,TextureKey
AssetKey is a key that is used to
 look up a resource from a cache.
 This class should be immutable.- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionclone()booleanClass<? extends AssetCache>protected static StringgetExtension(String name) protected static StringgetName()Class<? extends AssetProcessor>inthashCode()voidread(JmeImporter im) static StringreducePath(String path) Removes all relative elements of a path (A/B/../C.png and A/./C.png).toString()voidwrite(JmeExporter ex)  
- 
Field Details
- 
name
 - 
folder
 - 
extension
 
 - 
 - 
Constructor Details
- 
AssetKey
 - 
AssetKey
public AssetKey() 
 - 
 - 
Method Details
- 
clone
 - 
getExtension
 - 
getFolder
 - 
getName
- Returns:
 - The asset path
 
 - 
getExtension
- Returns:
 - The extension of the 
AssetKey's name. For example, the name "Interface/Logo/Monkey.png" has an extension of "png". 
 - 
getFolder
- Returns:
 - The folder in which the asset is located in.
 E.g. if the 
nameis "Models/MyModel/MyModel.j3o" then "Models/MyModel/" is returned. 
 - 
getCacheType
- Returns:
 - The preferred cache class for this asset type. Specify "null"
 if caching is to be disabled. By default, the
 
SimpleAssetCacheis returned. 
 - 
getProcessorType
- Returns:
 - The preferred processor type for this asset type. Specify "null" if no processing is required.
 
 - 
reducePath
Removes all relative elements of a path (A/B/../C.png and A/./C.png).- Parameters:
 path- The path containing relative elements- Returns:
 - A path without relative elements
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 - 
write
- Specified by:
 writein interfaceSavable- Throws:
 IOException
 - 
read
- Specified by:
 readin interfaceSavable- Throws:
 IOException
 
 -