C# Class Dev2.Data.ServiceModel.ResourceTypeConverter

显示文件 Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
ToResourceType ( enSourceType sourceType ) : ResourceType
ToResourceTypes ( string typeStr, bool returnAllWhenNoMatch = true ) : ResourceType[]

Converts studio resource type strings (WorkflowService, Service, Source, ReservedService, or *) to an array of ResourceType's.

ToTypeString ( ResourceType resourceType ) : string

Converts the given resource type to a studio resource type string (WorkflowService, Service, Source, ReservedService, or *).

Method Details

ToResourceType() public static method

public static ToResourceType ( enSourceType sourceType ) : ResourceType
sourceType enSourceType
return ResourceType

ToResourceTypes() public static method

Converts studio resource type strings (WorkflowService, Service, Source, ReservedService, or *) to an array of ResourceType's.
public static ToResourceTypes ( string typeStr, bool returnAllWhenNoMatch = true ) : ResourceType[]
typeStr string The type string: WorkflowService, Service, ReservedService, Source or *.
returnAllWhenNoMatch bool Indicates that all types should be returned when no match is found.
return ResourceType[]

ToTypeString() public static method

Converts the given resource type to a studio resource type string (WorkflowService, Service, Source, ReservedService, or *).
public static ToTypeString ( ResourceType resourceType ) : string
resourceType ResourceType The type of the resource to be converted.
return string