C# 클래스 Universe.Modules.Archivers.InventoryArchiveUtils

Utility methods for inventory archiving
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ESCAPE_CHARACTER char
PATH_DELIMITER char

공개 메소드들

메소드 설명
EscapeArchivePath ( string path ) : string

Escape an archive path.

FindFolderByPath ( IInventoryService inventoryService, InventoryFolderBase startFolder, string path ) : List

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

FindFolderByPath ( IInventoryService inventoryService, UUID userId, string path ) : List

Find a folder given a PATH_DELIMITER delimited path starting from a user's root folder

FindItemByPath ( IInventoryService inventoryService, InventoryFolderBase startFolder, 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.

FindItemByPath ( IInventoryService inventoryService, UUID userId, string path ) : InventoryItemBase

Find an item given a PATH_DELIMITOR delimited path starting from the user's root 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.

SplitEscapedPath ( string path ) : string[]

Split a human escaped path into two components if it contains an un-escaped path delimiter, or one component if no delimiter is present

UnescapeArchivePath ( string path ) : string

Un-escape an archive path.

UnescapePath ( string path ) : string

Un-escapes a human escaped path. This means that "\\" goes to "\", and "\/" goes to "/"

메소드 상세

EscapeArchivePath() 공개 정적인 메소드

Escape an archive path.
public static EscapeArchivePath ( string path ) : string
path string
리턴 string

FindFolderByPath() 공개 정적인 메소드

Find a folder given a PATH_DELIMITER delimited path starting from this folder
public static FindFolderByPath ( IInventoryService inventoryService, InventoryFolderBase startFolder, string path ) : List
inventoryService IInventoryService /// Inventory service to query ///
startFolder Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase /// The folder from which the path starts ///
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. ///
리턴 List

FindFolderByPath() 공개 정적인 메소드

Find a folder given a PATH_DELIMITER delimited path starting from a user's root folder
public static FindFolderByPath ( IInventoryService inventoryService, UUID userId, string path ) : List
inventoryService IInventoryService /// Inventory service to query ///
userId UUID /// User id to search ///
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. ///
리턴 List

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 static FindItemByPath ( IInventoryService inventoryService, InventoryFolderBase startFolder, string path ) : InventoryItemBase
inventoryService IInventoryService /// Inventory service to query ///
startFolder Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase /// The folder from which the path starts ///
path string /// The path to the required item. ///
리턴 Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

FindItemByPath() 공개 정적인 메소드

Find an item given a PATH_DELIMITOR delimited path starting from the user's root 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 static FindItemByPath ( IInventoryService inventoryService, UUID userId, string path ) : InventoryItemBase
inventoryService IInventoryService /// Inventory service to query ///
userId UUID /// The user to search ///
path string /// The path to the required item. ///
리턴 Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

SplitEscapedPath() 공개 정적인 메소드

Split a human escaped path into two components if it contains an un-escaped path delimiter, or one component if no delimiter is present
public static SplitEscapedPath ( string path ) : string[]
path string
리턴 string[]

UnescapeArchivePath() 공개 정적인 메소드

Un-escape an archive path.
public static UnescapeArchivePath ( string path ) : string
path string
리턴 string

UnescapePath() 공개 정적인 메소드

Un-escapes a human escaped path. This means that "\\" goes to "\", and "\/" goes to "/"
public static UnescapePath ( string path ) : string
path string
리턴 string

프로퍼티 상세

ESCAPE_CHARACTER 공개적으로 정적으로 프로퍼티

public static char ESCAPE_CHARACTER
리턴 char

PATH_DELIMITER 공개적으로 정적으로 프로퍼티

public static char PATH_DELIMITER
리턴 char