C# Класс Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderImpl

Наследование: InventoryFolderBase
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Items InventoryItemBase>.Dictionary
PATH_DELIMITER string

Открытые методы

Метод Описание
AddChildFolder ( InventoryFolderImpl folder ) : void

Add a folder that already exists.

ContainsChildFolder ( UUID folderID ) : bool

Does this folder contain the given child folder?

CreateChildFolder ( UUID folderID, string folderName, ushort type ) : InventoryFolderImpl

Create a new subfolder.

DeleteItem ( UUID itemID ) : bool

Deletes an item if it exists in this folder or any children

FindAsset ( UUID assetID ) : InventoryItemBase
FindFolder ( UUID folderID ) : InventoryFolderImpl

Returns the folder requested if it is this folder or is a descendent of this folder. The search is depth first.

FindFolderByPath ( string path ) : InventoryFolderImpl

Find a folder given a PATH_DELIMITER delimited path starting from this folder

FindFolderForType ( short type ) : InventoryFolderImpl

Look through all child subfolders for a folder marked as one for a particular folder type, and return it.

FindItem ( UUID itemID ) : InventoryItemBase

Returns the item if it exists in this folder or in any of this folder's descendant folders

FindItemByPath ( string path ) : InventoryItemBase

Find an item given a PATH_DELIMITOR delimited path starting from this folder. This method does not handle paths that contain multiple delimiters FIXME: We do not yet handle situations where folders or items have the same name. We could handle this by some XPath like expression FIXME: Delimiters which occur in names themselves are not currently escapable.

GetChildFolder ( UUID folderID ) : InventoryFolderImpl

Get a child folder

InventoryFolderImpl ( ) : System
InventoryFolderImpl ( InventoryFolderBase folderbase ) : System
Purge ( ) : void

Delete all the folders and items in this folder.

RemoveChildFolder ( UUID folderID ) : InventoryFolderImpl

Removes the given child subfolder.

RequestListOfFolderImpls ( ) : List
RequestListOfFolders ( ) : List

Return a copy of the list of child folders in this folder. The folders themselves are the originals.

RequestListOfItems ( ) : List

Return a copy of the list of child items in this folder. The items themselves are the originals.

Описание методов

AddChildFolder() публичный Метод

Add a folder that already exists.
public AddChildFolder ( InventoryFolderImpl folder ) : void
folder InventoryFolderImpl
Результат void

ContainsChildFolder() публичный Метод

Does this folder contain the given child folder?
public ContainsChildFolder ( UUID folderID ) : bool
folderID UUID
Результат bool

CreateChildFolder() публичный Метод

Create a new subfolder.
public CreateChildFolder ( UUID folderID, string folderName, ushort type ) : InventoryFolderImpl
folderID UUID
folderName string
type ushort
Результат InventoryFolderImpl

DeleteItem() публичный Метод

Deletes an item if it exists in this folder or any children
public DeleteItem ( UUID itemID ) : bool
itemID UUID
Результат bool

FindAsset() публичный Метод

public FindAsset ( UUID assetID ) : InventoryItemBase
assetID UUID
Результат InventoryItemBase

FindFolder() публичный Метод

Returns the folder requested if it is this folder or is a descendent of this folder. The search is depth first.
public FindFolder ( UUID folderID ) : InventoryFolderImpl
folderID UUID
Результат InventoryFolderImpl

FindFolderByPath() публичный Метод

Find a folder given a PATH_DELIMITER delimited path starting from this folder
public FindFolderByPath ( string path ) : InventoryFolderImpl
path string /// The path to the required folder. /// It this is empty or consists only of the PATH_DELIMTER then this folder itself is returned. ///
Результат InventoryFolderImpl

FindFolderForType() публичный Метод

Look through all child subfolders for a folder marked as one for a particular folder type, and return it.
public FindFolderForType ( short type ) : InventoryFolderImpl
type short
Результат InventoryFolderImpl

FindItem() публичный Метод

Returns the item if it exists in this folder or in any of this folder's descendant folders
public FindItem ( UUID itemID ) : InventoryItemBase
itemID UUID
Результат InventoryItemBase

FindItemByPath() публичный Метод

Find an item given a PATH_DELIMITOR delimited path starting from this folder. This method does not handle paths that contain multiple delimiters FIXME: We do not yet handle situations where folders or items have the same name. We could handle this by some XPath like expression FIXME: Delimiters which occur in names themselves are not currently escapable.
public FindItemByPath ( string path ) : InventoryItemBase
path string /// The path to the required item. ///
Результат InventoryItemBase

GetChildFolder() публичный Метод

Get a child folder
public GetChildFolder ( UUID folderID ) : InventoryFolderImpl
folderID UUID
Результат InventoryFolderImpl

InventoryFolderImpl() публичный Метод

public InventoryFolderImpl ( ) : System
Результат System

InventoryFolderImpl() публичный Метод

public InventoryFolderImpl ( InventoryFolderBase folderbase ) : System
folderbase InventoryFolderBase
Результат System

Purge() публичный Метод

Delete all the folders and items in this folder.
public Purge ( ) : void
Результат void

RemoveChildFolder() публичный Метод

Removes the given child subfolder.
public RemoveChildFolder ( UUID folderID ) : InventoryFolderImpl
folderID UUID
Результат InventoryFolderImpl

RequestListOfFolderImpls() публичный Метод

public RequestListOfFolderImpls ( ) : List
Результат List

RequestListOfFolders() публичный Метод

Return a copy of the list of child folders in this folder. The folders themselves are the originals.
public RequestListOfFolders ( ) : List
Результат List

RequestListOfItems() публичный Метод

Return a copy of the list of child items in this folder. The items themselves are the originals.
public RequestListOfItems ( ) : List
Результат List

Описание свойств

Items публичное свойство

Items that are contained in this folder
public Dictionary Items
Результат InventoryItemBase>.Dictionary

PATH_DELIMITER публичное статическое свойство

public static string PATH_DELIMITER
Результат string