Class CommandValidator
Validates a given Command against a CommandDefinition to see if there's any errors with the structure before passing it up to the server for processing.
Inheritance
System.Object
CommandValidator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Petabridge.Cmd.Validation
Assembly: cs.temp.dll.dll
Syntax
public sealed class CommandValidator
Constructors
CommandValidator(CommandPalette)
Creates a new CommandValidator instance.
Declaration
public CommandValidator(CommandPalette palette)
Parameters
Type | Name | Description |
---|---|---|
CommandPalette | palette | The palette of the command we're going to validate. |
Properties
Palette
The palette of the command for which we're going to validate.
Declaration
public CommandPalette Palette { get; }
Property Value
Type | Description |
---|---|
CommandPalette |
Methods
Validate(Command, Boolean)
Declaration
public IEnumerable<ValidationError> Validate(Command cmd, bool skipArguments = false)
Parameters
Type | Name | Description |
---|---|---|
Command | cmd | |
System.Boolean | skipArguments |
Returns
Type | Description |
---|---|
IEnumerable<ValidationError> |