public class FolderItemFactory extends HiveItemFactory
| Modifier and Type | Field and Description |
|---|---|
protected FolderCommon |
folder |
hiveDEFAULT_ID_DELIMITER, itemMap| Constructor and Description |
|---|
FolderItemFactory(CommonItemFactory parentFactory,
HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName) |
FolderItemFactory(CommonItemFactory parentFactory,
HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName,
String idDelimiter) |
FolderItemFactory(HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToFolder(DataItem item,
String name,
Map<String,Variant> attributes) |
protected DataItemCommand |
constructCommand(String localId) |
protected DataItemInputChained |
constructInput(String localId) |
protected WriteHandlerItem |
constructInputOutput(String localId,
WriteHandler writeHandler) |
protected WriteHandlerItem |
constructWriteHandler(String localId,
WriteHandler writeHandler) |
FolderItemFactory |
createSubFolderFactory(String name) |
void |
dispose()
Dispose the factory
|
void |
disposeAllItems()
Dispose all items but not the factory itself
|
void |
disposeItem(DataItem item)
Dispose an item if it was created by this factory
|
FolderCommon |
getFolder() |
addSubFactory, createCommand, createInput, createInputOutput, createOutput, generateId, getBaseId, isDisposed, removeSubFactory, setIdDelimiterprotected FolderCommon folder
public FolderItemFactory(HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName)
public FolderItemFactory(CommonItemFactory parentFactory, HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName)
public FolderItemFactory(CommonItemFactory parentFactory, HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName, String idDelimiter)
public void dispose()
ItemFactoryAll items that where created by this factory and where not disposed up to now are being disposed
After a call to this method it is not possible to create new items.
Multiple calls to ItemFactory.dispose() or calls to
ItemFactory.disposeAllItems() are possible.
dispose in interface ItemFactorydispose in class CommonItemFactorypublic void disposeItem(DataItem item)
ItemFactoryIf the item was not created by this factory or was already disposed this is no error and no exception is thrown
disposeItem in interface ItemFactorydisposeItem in class HiveItemFactoryitem - data item to disposeprotected DataItemCommand constructCommand(String localId)
constructCommand in class HiveItemFactoryprotected DataItemInputChained constructInput(String localId)
constructInput in class HiveItemFactoryprotected WriteHandlerItem constructWriteHandler(String localId, WriteHandler writeHandler)
constructWriteHandler in class HiveItemFactoryprotected WriteHandlerItem constructInputOutput(String localId, WriteHandler writeHandler)
constructInputOutput in class HiveItemFactorypublic FolderCommon getFolder()
public FolderItemFactory createSubFolderFactory(String name)
public void disposeAllItems()
CommonItemFactorydisposeAllItems in interface ItemFactorydisposeAllItems in class HiveItemFactory