Show / Hide Table of Contents

    Class RegexValueExtractor

    Implements an object value extractor that retrieves a part from the provided string by matching it with a regular expression.

    Inheritance
    Object
    ValueExtractorBase
    RegexValueExtractor
    Implements
    IValidator
    IEquatable<ValueExtractorBase>
    IExtensibleDataObject
    Inherited Members
    ValueExtractorBase.ErrorMessage
    ValueExtractorBase.ExtensionData
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Processing
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class RegexValueExtractor : ValueExtractorBase, IValidator, IEquatable<ValueExtractorBase>, IExtensibleDataObject

    Constructors

    RegexValueExtractor()

    Declaration
    public RegexValueExtractor()

    Fields

    ElementName

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

    Declaration
    public const string ElementName = "EXTRACT-REGEX"
    Field Value
    Type Description
    String

    Properties

    CultureInvariant

    Gets or sets the flag indicating that cultural differences in language are ignored.

    Declaration
    public bool CultureInvariant { get; set; }
    Property Value
    Type Description
    Boolean

    ExplicitCapture

    Gets or sets the flag indicating that the only valid captures are explicitly named or numbered groups of the form (?<name>…). This allows unnamed parentheses to act as noncapturing groups without the syntactic clumsiness of the expression (?:...).

    Declaration
    public bool ExplicitCapture { get; set; }
    Property Value
    Type Description
    Boolean

    IgnoreCase

    Gets or sets the flag indicating case-insensitive matching.

    Declaration
    public bool IgnoreCase { get; set; }
    Property Value
    Type Description
    Boolean

    IgnoreWhitespace

    Gets or sets the flag that eliminates unescaped white space from the pattern and enables comments marked with #. However, the flag value does not affect or eliminate white space in character classes.

    Declaration
    public bool IgnoreWhitespace { get; set; }
    Property Value
    Type Description
    Boolean

    Multiline

    Gets or sets the flag indicating multiline mode. Changes the meaning of ^ and $ so they match at the beginning and end, respectively, of any line, and not just the beginning and end of the entire string. Leaving this property to False changes the meaning of the dot (.) so it matches every character (instead of every character except \n).

    Declaration
    public bool Multiline { get; set; }
    Property Value
    Type Description
    Boolean

    Pattern

    Gets or sets the regular expression pattern to be matched.

    Declaration
    public string Pattern { get; set; }
    Property Value
    Type Description
    String

    RightToLeft

    Gets or sets the flag indicating that the search will be from right to left instead of from left to right.

    Declaration
    public bool RightToLeft { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    Equals(ValueExtractorBase)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(ValueExtractorBase other)
    Parameters
    Type Name Description
    ValueExtractorBase other

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    True if the specified object is equal to the current object; otherwise, false.

    Overrides
    ValueExtractorBase.Equals(ValueExtractorBase)

    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
    Boolean

    True if the specified object is equal to the current object; otherwise, false.

    Overrides
    ValueExtractorBase.Equals(Object)

    Extract(MessagePipelineContext, Object)

    Extracts and formats a value from provided object.

    Declaration
    public override object Extract(MessagePipelineContext context, object value)
    Parameters
    Type Name Description
    MessagePipelineContext context

    Provides the message processing context.

    Object value

    An object to extract value from.

    Returns
    Type Description
    Object

    A value extracted from the object.

    Overrides
    ValueExtractorBase.Extract(MessagePipelineContext, Object)

    GetHashCode()

    Returns hash code for the value of this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code for the value of this instance.

    Overrides
    ValueExtractorBase.GetHashCode()

    ToString()

    Returns string representation of the object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    String representing the object's content.

    Overrides
    Object.ToString()

    Validate()

    Evaluates the state of the object.

    Declaration
    public override bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Overrides
    ValueExtractorBase.Validate()

    Implements

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