Class NoOpElementNameValidator
Represents an element name validator that does no validation.
public class NoOpElementNameValidator : IElementNameValidator
- Inheritance
-
NoOpElementNameValidator
- Implements
- Inherited Members
- Extension Methods
Properties
Instance
Gets the instance.
public static NoOpElementNameValidator Instance { get; }
Property Value
- NoOpElementNameValidator
The instance.
Methods
GetValidatorForChildContent(string)
Gets the validator to use for child content (a nested document or array).
public IElementNameValidator GetValidatorForChildContent(string elementName)
Parameters
elementName
stringThe name of the element.
Returns
- IElementNameValidator
The validator to use for child content.
IsValidElementName(string)
Determines whether the element name is valid.
public bool IsValidElementName(string elementName)
Parameters
elementName
stringThe name of the element.
Returns
- bool
True if the element name is valid.