T
- type of AssetProvider it is associated with.public abstract class AbstractItem<T extends AssetProvider> extends Object implements Item
Modifier | Constructor and Description |
---|---|
protected |
AbstractItem(T assetProvider,
ItemKey key) |
Modifier and Type | Method and Description |
---|---|
T |
getAssetProvider() |
ItemKey |
getItemKey() |
boolean |
isAsset()
A slightly more elegant way of doing (i instanceof Asset).
|
boolean |
isFolder()
A slightly more elegant way of doing (i instanceof Folder).
|
public T getAssetProvider()
getAssetProvider
in interface Item
public ItemKey getItemKey()
getItemKey
in interface Item
public boolean isFolder()
Item
Copyright © 2015 Magnolia International Ltd.. All rights reserved.