C# Class Sage.ResourceManagement.Resource

Represents a file resource for use with Sage.
Inheritance: IXmlConvertible
Datei anzeigen Open project: igorfrance/sage Class Usage Examples

Public Methods

Method Description
Equals ( Resource other ) : bool

Compares this resource to another resource.

Equals ( object obj ) : bool
GetHashCode ( ) : int
GetResolvedPhysicalPath ( SageContext context ) : string

Gets the resolved physical path of this resource.

GetResolvedWebPath ( SageContext context ) : string

Gets the resolved web-accessible path of this resource.

IsValidFor ( string userAgentID ) : bool

Determines whether this resource is valid for the specified user agent ID.

Parse ( XmlElement element ) : void
Resource ( XmlElement configElement, string projectId ) : System

Initializes a new instance of the Resource class, using the specified configElement.

ToString ( ) : string
ToXml ( XmlDocument document ) : XmlElement

Generates an XmlElement that represents the configuration of this instance.

ToXml ( XmlDocument ownerDocument, SageContext context ) : XmlNode

Generates an XmlElement that represent a this resource.

operator ( ) : bool

Implements the operator !=.

Method Details

Equals() public method

Compares this resource to another resource.
public Equals ( Resource other ) : bool
other Resource The resource to compare this resource with.
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetResolvedPhysicalPath() public method

Gets the resolved physical path of this resource.
public GetResolvedPhysicalPath ( SageContext context ) : string
context SageContext The context under which this method is executed.
return string

GetResolvedWebPath() public method

Gets the resolved web-accessible path of this resource.
public GetResolvedWebPath ( SageContext context ) : string
context SageContext The context under which this method is executed.
return string

IsValidFor() public method

Determines whether this resource is valid for the specified user agent ID.
public IsValidFor ( string userAgentID ) : bool
userAgentID string The user agent ID.
return bool

Parse() public method

public Parse ( XmlElement element ) : void
element System.Xml.XmlElement
return void

Resource() public method

Initializes a new instance of the Resource class, using the specified configElement.
public Resource ( XmlElement configElement, string projectId ) : System
configElement System.Xml.XmlElement The configuration element that defines this resource.
projectId string The identification string of the project this library belongs to.
return System

ToString() public method

public ToString ( ) : string
return string

ToXml() public method

Generates an XmlElement that represents the configuration of this instance.
public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument The document to use to create the element with.
return System.Xml.XmlElement

ToXml() public method

Generates an XmlElement that represent a this resource.
public ToXml ( XmlDocument ownerDocument, SageContext context ) : XmlNode
ownerDocument System.Xml.XmlDocument The owner document to use to create the element.
context SageContext The context under which this method is executed, used to resolve the paths and load resources with.
return System.Xml.XmlNode

operator() public static method

Implements the operator !=.
public static operator ( ) : bool
return bool