Class ValueExtractorBase
Represents a base class for a value extraction component that allows to retrieve and format a value from the provided object. The sample implementation can be an XPATH query that takes a value from the provided XML document.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Processing
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public abstract class ValueExtractorBase : IValidator, IEquatable<ValueExtractorBase>, IExtensibleDataObject
Constructors
ValueExtractorBase()
Declaration
protected ValueExtractorBase()
Properties
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization roundtrips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
System.Runtime.Serialization.ExtensionDataObject |
Methods
Equals(ValueExtractorBase)
Determines whether the specified object is equal to the current object.
Declaration
public virtual bool Equals(ValueExtractorBase other)
Parameters
Type | Name | Description |
---|---|---|
ValueExtractorBase | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
Extract(MessagePipelineContext, Object)
Extracts and formats a value from provided object.
Declaration
public abstract object Extract(MessagePipelineContext context, object value)
Parameters
Type | Name | Description |
---|---|---|
MessagePipelineContext | context | Provides the message processing context. |
System.Object | value | An object to extract value from. |
Returns
Type | Description |
---|---|
System.Object | A value extracted from the object. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code of the current instance. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public virtual bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |