C# 클래스 Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderImpl

상속: InventoryFolderBase
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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