public virtual void AddContextDefinition(ContextDefinition toAdd) { ContextDefinition match = this.GetContextDefinition(toAdd.Name); if (match == null) { this.WorkFlow.ContextDefinitions.Add(toAdd); } }
public void AnyOf(string name, string literal, Type enumType, bool exclusive) { this.definition = new ContextDefinition(name, literal, this.FromEnum(enumType), ValidateOptions.AnyOf, exclusive); }
public void AnyOf(string name, string literal, IEnumerable <ContextItem> items, bool exclusive) { this.definition = new ContextDefinition(name, literal, items, ValidateOptions.AnyOf, exclusive); }