Click or drag to resize

DisallowedElementValidatorT Class

Defines a validator that disallows a certain entity to be present in a collection.
Inheritance Hierarchy
SystemObject
  Xploration.ValidationValidator
    Xploration.ValidationValidatorIEnumerableT
      Xploration.ValidationDisallowedElementValidatorT

Namespace:  Xploration.Validation
Assembly:  Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntax
public class DisallowedElementValidator<T> : Validator<IEnumerable<T>>, 
	IValidator<IEnumerable>, IValidator

Type Parameters

T
The type of the entity.

The DisallowedElementValidatorT type exposes the following members.

Constructors
  NameDescription
Public methodDisallowedElementValidatorT(T)
Initializes a new instance of the DisallowedElementValidatorT using the default equality comparer for type T.
Public methodDisallowedElementValidatorT(T, IEqualityComparerT)
Initializes a new instance of the DisallowedElementValidatorT using the given equality comparer for type T.
Top
Properties
  NameDescription
Public propertyDisallowedElement
Gets the element that is not allowed to be present in a collection.
Top
Methods
  NameDescription
Protected methodCreateResult
Creates a new validation result.
(Inherited from Validator.)
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Validator.)
Protected methodEquals(IValidator)
Determines if the given validator can be considered equal to the current validator.
(Overrides ValidatorEquals(IValidator).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Validator.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIsValidAsync(StateTransition, IEnumerableT, IEnumerableT)
Validates the new collection against the precense of a disallowed entity.
(Overrides ValidatorTIsValidAsync(StateTransition, T, T).)
Protected methodIsValidAsync(StateTransition, Object, Object)
Determines that the new value is valid.
(Inherited from ValidatorT.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from ValidatorT.)
Public methodValidateAsync(Object)
Validates the given entity asynchronously and determines if the entity is valid.
(Inherited from Validator.)
Public methodValidateAsync(T)
Validates the given value asynchronously and determines if the value is valid.
(Inherited from ValidatorT.)
Public methodValidateAsync(ValidationContextIEnumerable)
Returns true if the NewValue collection of the context does not contain the disallowed element.
Public methodValidateAsync(ValidationContext)
Validates the given ValidationContext asynchronously and determines if the context is valid.
(Inherited from ValidatorT.)
Public methodValidateAsync(ValidationContextT)
Validates the given ValidationContext asynchronously and determines if the context is valid.
(Inherited from ValidatorT.)
Public methodValidateAsync(Object, Object)
Validates the given new entity against the old entity asynchronously and determines if the new entity is valid.
(Inherited from Validator.)
Public methodValidateAsync(T, T)
Validates the given new value against the old value asynchronously and determines if the new value is valid.
(Inherited from ValidatorT.)
Top
Extension Methods
  NameDescription
Public Extension MethodExecuteAsync(Object)Overloaded.
Validates the given value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsync(ValidationContext)Overloaded.
Validates the given context asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsync(Object, Object)Overloaded.
Validates the given new value against the old value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncIEnumerable(IEnumerable)Overloaded.
Validates the given value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncIEnumerable(ValidationContextIEnumerable)Overloaded.
Validates the given context asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncIEnumerable(IEnumerable, IEnumerable)Overloaded.
Validates the given new value against the old value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodGetConcreteValidator
Returns the concrete validator of the current validator if the current validator is an IDelegatedValidator.
(Defined by IValidatorExtensions.)
Top
See Also