Class MaskingExpressionBase
Represents the base class for all masking expressions.
Inheritance
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring.Filters
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public abstract class MaskingExpressionBase : IValidator, IEquatable<MaskingExpressionBase>, IExtensibleDataObject
Constructors
MaskingExpressionBase()
Declaration
protected MaskingExpressionBase()
Properties
ErrorMessage
Gets the summary of validation errors.
Declaration
public string ErrorMessage { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Expression
Gets or sets the language-specific expression that matches values to be replaced.
Declaration
public string Expression { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization round-trips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
System.Runtime.Serialization.ExtensionDataObject |
ReplacementValue
Gets or sets the string value to replace the matched value.
Declaration
public string ReplacementValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(MaskingExpressionBase)
Determines whether the specified object is equal to the current object.
Declaration
public virtual bool Equals(MaskingExpressionBase other)
Parameters
Type | Name | Description |
---|---|---|
MaskingExpressionBase | 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
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
ReplaceValue(String)
Replaces the provided value according to the expressions configuration.
Declaration
protected abstract string ReplaceValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | String value to be masked. |
Returns
Type | Description |
---|---|
System.String | String with matched values been replaced. |
Validate()
Evaluates the state of this object.
Declaration
public virtual bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |