Class MaskingExpressionBase
Represents the base class for all masking expressions.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring.Filters
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[KnownType(typeof(RegexMaskingExpression))]
[KnownType(typeof(XPathMaskingExpression))]
[KnownType(typeof(JsonPointerMaskingExpression))]
[KnownType(typeof(JsonPathMaskingExpression))]
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
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 |
|---|---|
| string |
Expression
Gets or sets the language-specific expression that matches values to be replaced.
Declaration
[DataMember]
public string Expression { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExtensionData
Gets or sets ExtensionDataObject that enables serialization round-trips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
| Type | Description |
|---|---|
| ExtensionDataObject |
ReplacementValue
Gets or sets the string value to replace the matched value.
Declaration
[DataMember]
public string ReplacementValue { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| bool | 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 |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | 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 |
|---|---|
| int | 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 |
|---|---|---|
| string | value | String value to be masked. |
Returns
| Type | Description |
|---|---|
| string | String with matched values been replaced. |
Validate()
Evaluates the state of this object.
Declaration
public virtual bool Validate()
Returns
| Type | Description |
|---|---|
| bool | True if state is valid; otherwise, false. |