Class JsonPointerMaskingExpression
Implements the masking expression that replaces values in JSON document located at the specified JSON Pointer.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring.Filters
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class JsonPointerMaskingExpression : MaskingExpressionBase, IValidator, IEquatable<MaskingExpressionBase>, IExtensibleDataObject
Constructors
JsonPointerMaskingExpression()
Declaration
public JsonPointerMaskingExpression()
Fields
ElementName
Name of the root element when object is serialized to XML.
Declaration
public const string ElementName = "JSON-POINTER-REPLACE"
Field Value
Type | Description |
---|---|
System.String |
Properties
ReplacementExpression
Gets or sets the optional regular expression than can be used for parsing the matched value into groups. If property is set than the ReplacementValue property can contain the expression for building the final value from the matched groups.
Declaration
public string ReplacementExpression { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(MaskingExpressionBase)
Determines whether the specified object is equal to the current object.
Declaration
public override 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. |
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 override 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. |
Overrides
Validate()
Evaluates the state of the object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |