public interface Item
Modifier and Type | Method and Description |
---|---|
AssetProvider |
getAssetProvider() |
ItemKey |
getItemKey() |
String |
getName()
Returns the name of this item; this same name should be usable by
Folder.getItem(String) . |
Folder |
getParent()
|
String |
getPath()
Returns the canonical path to this item; in case an item is reachable by several paths, this would return the
principal path that the
AssetProvider knows. |
boolean |
isAsset()
A slightly more elegant way of doing (i instanceof Asset).
|
boolean |
isFolder()
A slightly more elegant way of doing (i instanceof Folder).
|
ItemKey getItemKey()
String getName()
Folder.getItem(String)
.String getPath()
AssetProvider
knows.
Note: some providers might hide or show only a subsection of their actual data. This should return the path
"relative" to that subsection.Folder getParent()
boolean isFolder()
boolean isAsset()
AssetProvider getAssetProvider()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.