/// <exception cref="ArgumentNullException"> /// <paramref name="model"/> is null. /// </exception> protected ProjectGenerator(ClassModel model) { if (model == null) throw new ArgumentNullException("model"); this.model = model; }
/// <exception cref="ArgumentException"> /// The <paramref name="model"/> has invalid language. /// </exception> protected override ProjectGenerator CreateProjectGenerator(ClassModel model) { Language language = model.Language; if (language == CSharpLanguage.Instance) return new CSharpProjectGenerator(model, Version); if (language == JavaLanguage.Instance) return new JavaProjectGenerator(model); throw new ArgumentException("The model has an unknown language."); }
/// <exception cref="ArgumentException"> /// The <paramref name="model"/> is invalid. /// </exception> protected abstract ProjectGenerator CreateProjectGenerator(ClassModel model);
/// <exception cref="ArgumentNullException"> /// <paramref name="model"/> is null. /// </exception> public JavaProjectGenerator(ClassModel model) : base(model) { }
/// <exception cref="ArgumentNullException"> /// <paramref name="model"/> is null. /// </exception> public CSharpProjectGenerator(ClassModel model, SolutionType solutionType) : base(model) { this.solutionType = solutionType; }