NameFilter

Validates names produced by a name generator against a set of configurable constraints.

Implements: INameFilter

Constructors

Constructor
Description

NameFilter()

Instantiates a new NameFilter with no constraints.

Methods

Method
Returns
Description

Add(System.String[] patterns)

Adds new patterns to this filter.

Add(FilterConstraint constraint)

Adds a new constraint to this filter.

IsValid(Name name)

System.Boolean

Returns true if the specified name does not match any of this filter's contraints, else returns false.

IsValid(System.String name)

System.Boolean

Returns true if the specified name does not match any of this filter's contraints, else returns false.

Properties

Property
Type
Description

Constraints

System.Collections.Generic.List <FilterConstraint>

The list of constraints that names must pass to be considered valid.

Last updated