Search Results for

    Show / Hide Table of Contents

    Class MaskingExpressionBase

    Represents the base class for all masking expressions.

    Inheritance
    object
    MaskingExpressionBase
    JsonPathMaskingExpression
    JsonPointerMaskingExpression
    RegexMaskingExpression
    XPathMaskingExpression
    Implements
    IValidator
    IEquatable<MaskingExpressionBase>
    IExtensibleDataObject
    Inherited Members
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    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
    object.Equals(object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code of the current instance.

    Overrides
    object.GetHashCode()

    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.

    Implements

    IValidator
    IEquatable<T>
    IExtensibleDataObject
    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation