Show / Hide Table of Contents

    Class XPathMaskingExpression

    Implements the masking expression that replaces values in XML document located at the specified XPATH.

    Inheritance
    Object
    MaskingExpressionBase
    XPathMaskingExpression
    Implements
    IValidator
    IEquatable<MaskingExpressionBase>
    IExtensibleDataObject
    Inherited Members
    MaskingExpressionBase.Equals(Object)
    MaskingExpressionBase.Expression
    MaskingExpressionBase.ReplacementValue
    MaskingExpressionBase.ErrorMessage
    MaskingExpressionBase.ExtensionData
    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
    public sealed class XPathMaskingExpression : MaskingExpressionBase, IValidator, IEquatable<MaskingExpressionBase>, IExtensibleDataObject

    Constructors

    XPathMaskingExpression()

    Declaration
    public XPathMaskingExpression()

    Fields

    ElementName

    Name of the root element when object is serialized to XML.

    Declaration
    public const string ElementName = "XPATH-REPLACE"
    Field Value
    Type Description
    String

    Properties

    Namespaces

    Gets or sets collection of mappings between prefixes and namespaces used in XPath expression. This property is used for XML serialization.

    Declaration
    public XmlSerializerNamespaces Namespaces { get; set; }
    Property Value
    Type Description
    XmlSerializerNamespaces

    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
    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
    Boolean

    True, if objects are equal. False, if objects are not equal.

    Overrides
    MaskingExpressionBase.Equals(MaskingExpressionBase)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code of the current instance.

    Overrides
    MaskingExpressionBase.GetHashCode()

    ReplaceValue(String)

    Replaces the provided value according to the expressions configuration.

    Declaration
    protected override 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.

    Overrides
    MaskingExpressionBase.ReplaceValue(String)

    Validate()

    Evaluates the state of this object.

    Declaration
    public override bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Overrides
    MaskingExpressionBase.Validate()

    Implements

    IValidator
    System.IEquatable<T>
    System.Runtime.Serialization.IExtensibleDataObject
    Back to top Nevatech Sentinet 6.5 Online Documentation