Version 2.1.0.0

DefaultValidatorLocator class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public class DefaultValidatorLocator : IValidatorLocator
Inheritance
  • System.Object
  • DefaultValidatorLocator

Constructors

DefaultValidatorLocator()
public DefaultValidatorLocator()

Fields

AttributeNumberMap
protected readonly Dictionary<Type, int> AttributeNumberMap
AttributeValidatorSearchIndex
public static readonly TypeSearchIndex AttributeValidatorSearchIndex
CustomValidatorFilter
public Func<Type, bool> CustomValidatorFilter
MemberValidatorCache
protected readonly DoubleLookupDictionary<MemberInfo, Type, Validator[]> MemberValidatorCache
ResultList
protected readonly List<TypeSearchResult> ResultList
SearchResultList
protected readonly List<TypeSearchResult[]> SearchResultList
ValueValidatorCache
protected readonly Dictionary<Type, Validator[]> ValueValidatorCache
ValueValidatorSearchIndex
public static readonly TypeSearchIndex ValueValidatorSearchIndex

Methods

CreateValidators(MemberInfo, Type, Boolean)
protected virtual Validator[] CreateValidators(MemberInfo member, Type memberValueType, bool isCollectionElement)
Parameters
System.Reflection.MemberInfo member

System.Type memberValueType

System.Boolean isCollectionElement

Returns
Validator[]

CreateValidators(Type)
protected virtual Validator[] CreateValidators(Type valueType)
Parameters
System.Type valueType

Returns
Validator[]

GetValidators(MemberInfo, Type, Boolean)
public virtual IList<Validator> GetValidators(MemberInfo member, Type memberValueType, bool isCollectionElement)
Parameters
System.Reflection.MemberInfo member

System.Type memberValueType

System.Boolean isCollectionElement

Returns
System.Collections.Generic.IList<Validator>

GetValidators(Type)
public virtual IList<Validator> GetValidators(Type valueType)
Parameters
System.Type valueType

Returns
System.Collections.Generic.IList<Validator>

PotentiallyHasValidatorsFor(MemberInfo, Type, Boolean)
public bool PotentiallyHasValidatorsFor(MemberInfo member, Type memberValueType, bool isCollectionElement)
Parameters
System.Reflection.MemberInfo member

System.Type memberValueType

System.Boolean isCollectionElement

Returns
System.Boolean

PotentiallyHasValidatorsFor(Type)
public bool PotentiallyHasValidatorsFor(Type valueType)
Parameters
System.Type valueType

Returns
System.Boolean