public override void Validate() { KScriptValidator validator = new KScriptValidator(KScript()); validator.AddValidator(new KScriptValidationObject("to", false, KScriptValidator.ExpectedInput.DefID)); validator.AddValidator(new KScriptValidationObject("output", true)); validator.Validate(this); }
public override void Validate() { KScriptValidator validator = new KScriptValidator(KScript()); validator.AddValidator(new KScriptValidationObject("args", true)); validator.AddValidator(new KScriptValidationObject("method", false)); validator.Validate(this); }
public override void Validate() { KScriptValidator validator = new KScriptValidator(KScript()); validator.AddValidator(new KScriptValidationObject("name", false)); validator.AddValidator(new KScriptValidationObject("params", true)); validator.Validate(this); }
public override void Validate() { KScriptValidator validator = new KScriptValidator(KScript()); validator.AddValidator(new KScriptValidationObject("index", false, KScriptValidator.ExpectedInput.Number)); validator.AddValidator(new KScriptValidationObject("from", false, KScriptValidator.ExpectedInput.ArrayID)); validator.Validate(this); }
public override void Validate() { KScriptValidator validator = new KScriptValidator(KScript()); validator.AddValidator(new KScriptValidationObject("destination", false)); validator.AddValidator(new KScriptValidationObject("url", false, KScriptValidator.ExpectedInput.URL)); validator.Validate(this); }
public override void Validate() { KScriptValidator validator = new KScriptValidator(KScript()); validator.AddValidator(new KScriptValidationObject("Contents", true)); validator.AddValidator(new KScriptValidationObject("trim", true, KScriptValidator.ExpectedInput.Bool)); validator.AddValidator(new KScriptValidationObject("type", true, Enum.GetNames(typeof(Types)).Select(i => i.ToLower()).ToArray())); validator.Validate(this); }
public override void Validate() { KScriptValidator validator = new KScriptValidator(KScript()); validator.AddValidator(new KScriptValidationObject("type", false, Enum.GetNames(typeof(types)))); validator.Validate(this); }
public override void Validate() { KScriptValidator validator = new KScriptValidator(KScript()); validator.AddValidator(new KScriptValidationObject("to", false)); //validator.AddValidator(new KScriptValidationObject("from", false, KScriptValidator.ExpectedInput.FileLocation)); validator.Validate(this); }