Class HarmonizationResult
Describes the results of a deserialization process.
Inherited Members
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class HarmonizationResult
Constructors
HarmonizationResult()
Initializes a new instance of the HarmonizationResult class.
Declaration
public HarmonizationResult()
Properties
Errors
Gets a collection of errors.
Declaration
public Collection<HarmonizationError> Errors { get; }
Property Value
Type | Description |
---|---|
Collection<HarmonizationError> |
ItemsRenamed
Gets or sets the number of items that were renamed during the process.
Declaration
public long ItemsRenamed { get; set; }
Property Value
Type | Description |
---|---|
long |
Messages
Gets a collection of messages.
Declaration
public Collection<HarmonizationError> Messages { get; }
Property Value
Type | Description |
---|---|
Collection<HarmonizationError> |
ResultMessages
Returns the collected warning and error exceptions as a series of ResultMessages
Declaration
public Collection<ResultMessage> ResultMessages { get; }
Property Value
Type | Description |
---|---|
Collection<ResultMessage> |
Success
Gets or sets a value indicating whether the process succeeded.
Declaration
public bool Success { get; set; }
Property Value
Type | Description |
---|---|
bool |
Warnings
Gets a collection of warnings.
Declaration
public Collection<HarmonizationError> Warnings { get; }
Property Value
Type | Description |
---|---|
Collection<HarmonizationError> |
Methods
AddError(string, int?, string)
Adds an error to the result.
Declaration
public void AddError(string message, int? lineNumber = null, string xpath = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message. |
int? | lineNumber | The line number at which the error occurred. |
string | xpath | The XPath of the XML node that caused the error. |
AddError(string, XElement)
Adds an error to the result.
Declaration
public void AddError(string message, XElement element)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message. |
XElement | element | The XML element that caused the error. |
AddError(string, XmlNode)
Adds an error to the result.
Declaration
public void AddError(string message, XmlNode node)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message. |
XmlNode | node | The XML node that caused the error. |
AddMessage(string, int?, string)
Adds an informational message to the result.
Declaration
public void AddMessage(string message, int? lineNumber = null, string xpath = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message text. |
int? | lineNumber | The line number to which the message applies. |
string | xpath | The XPath of the XML node that triggered the message. |
AddMessage(string, XElement)
Adds an informational message to the result.
Declaration
public void AddMessage(string message, XElement element)
Parameters
Type | Name | Description |
---|---|---|
string | message | The informational message message. |
XElement | element | The XML element that caused the error. |
AddMessage(string, XmlNode)
Adds an informational message to the result.
Declaration
public void AddMessage(string message, XmlNode node)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message text. |
XmlNode | node | The XML node that triggered the message. |
AddWarning(string, int?, string)
Adds a warning to the result.
Declaration
public void AddWarning(string message, int? lineNumber = null, string xpath = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The warning message. |
int? | lineNumber | The line number at which the warning occurred. |
string | xpath | The XPath of the XML node that caused the warning. |
AddWarning(string, XElement)
Adds an warning to the result.
Declaration
public void AddWarning(string message, XElement element)
Parameters
Type | Name | Description |
---|---|---|
string | message | The warning message. |
XElement | element | The XML element that caused the error. |
AddWarning(string, XmlNode)
Adds a warning to the result.
Declaration
public void AddWarning(string message, XmlNode node)
Parameters
Type | Name | Description |
---|---|---|
string | message | The warning message. |
XmlNode | node | The XML node that caused the warning. |