Class RegexBasedFormatValidator
Provides base functionality for regular-expression-based format validation.
Inheritance
System.Object
RegexBasedFormatValidator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Manatee.Json.Schema
Assembly: Manatee.Json.dll
Syntax
public abstract class RegexBasedFormatValidator : IFormatValidator
Constructors
| Improve this Doc View SourceRegexBasedFormatValidator(String, Boolean)
Creates a new instance of the RegexBasedFormatValidator class.
Declaration
public RegexBasedFormatValidator(string pattern, bool isCaseSensitive = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern | The regular expression for validation. |
System.Boolean | isCaseSensitive | Indicates whether the regular expression should consider case. |
Properties
| Improve this Doc View SourceFormat
Gets the format this validator handles.
Declaration
public abstract string Format { get; }
Property Value
Type | Description |
---|---|
System.String |
SupportedBy
Gets the JSON Schema draft versions supported by this format.
Declaration
public abstract JsonSchemaVersion SupportedBy { get; }
Property Value
Type | Description |
---|---|
JsonSchemaVersion |
Methods
| Improve this Doc View SourceValidate(JsonValue)
Validates a value.
Declaration
public virtual bool Validate(JsonValue value)
Parameters
Type | Name | Description |
---|---|---|
JsonValue | value | The value to validate. |
Returns
Type | Description |
---|---|
System.Boolean | True if |