C# Class CCNet.SourceNotifier.XmlProcessor.XmlExporter

Incapsulates XML generation.
Show file Open project: shuruev/CCNet.Extensions

Public Methods

Method Description
CreateDocument ( object content ) : System.Xml.Linq.XDocument

Creates the standart XML document for the specified content.

ExportDateTime ( System.DateTime dateTime ) : string

Converts DateTime to string.

ExportPendingChange ( Microsoft.TeamFoundation.VersionControl.Client.PendingChange change ) : System.Xml.Linq.XElement

Creates XML element containing the information on the specified pending change.

ExportPendingChangesGroup ( PendingChange>.IGrouping changesGroup ) : System.Xml.Linq.XElement

Creates XML element containing the information on the specified pending changes group.

ExportTimeSpanDays ( System.TimeSpan timeSpan ) : string

Converts TimeSpan to string.

ExportUserInfo ( IUserInfo userInfo ) : System.Xml.Linq.XElement

Creates XML element containing the information on the specified user.

Method Details

CreateDocument() public static method

Creates the standart XML document for the specified content.
public static CreateDocument ( object content ) : System.Xml.Linq.XDocument
content object
return System.Xml.Linq.XDocument

ExportDateTime() public static method

Converts DateTime to string.
public static ExportDateTime ( System.DateTime dateTime ) : string
dateTime System.DateTime
return string

ExportPendingChange() public static method

Creates XML element containing the information on the specified pending change.
public static ExportPendingChange ( Microsoft.TeamFoundation.VersionControl.Client.PendingChange change ) : System.Xml.Linq.XElement
change Microsoft.TeamFoundation.VersionControl.Client.PendingChange
return System.Xml.Linq.XElement

ExportPendingChangesGroup() public static method

Creates XML element containing the information on the specified pending changes group.
public static ExportPendingChangesGroup ( PendingChange>.IGrouping changesGroup ) : System.Xml.Linq.XElement
changesGroup PendingChange>.IGrouping
return System.Xml.Linq.XElement

ExportTimeSpanDays() public static method

Converts TimeSpan to string.
public static ExportTimeSpanDays ( System.TimeSpan timeSpan ) : string
timeSpan System.TimeSpan
return string

ExportUserInfo() public static method

Creates XML element containing the information on the specified user.
public static ExportUserInfo ( IUserInfo userInfo ) : System.Xml.Linq.XElement
userInfo IUserInfo
return System.Xml.Linq.XElement