internal override void SoalBuilderInstance(SoalBuilderInstance _this) { base.SoalBuilderInstance(_this); SoalFactory f = new SoalFactory(_this.MModel); _this.Object = f.PrimitiveType(); _this.Object.Name = "object"; _this.String = f.PrimitiveType(); _this.String.Name = "string"; _this.Int = f.PrimitiveType(); _this.Int.Name = "int"; _this.Long = f.PrimitiveType(); _this.Long.Name = "long"; _this.Float = f.PrimitiveType(); _this.Float.Name = "float"; _this.Double = f.PrimitiveType(); _this.Double.Name = "double"; _this.Byte = f.PrimitiveType(); _this.Byte.Name = "byte"; _this.Bool = f.PrimitiveType(); _this.Bool.Name = "bool"; _this.Void = f.PrimitiveType(); _this.Void.Name = "void"; _this.Date = f.PrimitiveType(); _this.Date.Name = "Date"; _this.Time = f.PrimitiveType(); _this.Time.Name = "Time"; _this.DateTime = f.PrimitiveType(); _this.DateTime.Name = "DateTime"; _this.TimeSpan = f.PrimitiveType(); _this.TimeSpan.Name = "TimeSpan"; }
public override void Operation(OperationBuilder _this) { base.Operation(_this); SoalFactory f = new SoalFactory(_this.MModel); _this.Result = f.OutputParameter(); }
static SoalGenerator() { MutableModel xsdModel = new MutableModel("xmlschema"); SoalFactory f = new SoalFactory(xsdModel); var xsNs = f.Namespace(); xsNs.Prefix = "xs"; xsNs.Uri = "http://www.w3.org/2001/XMLSchema"; XsdNamespace = xsNs.ToImmutable(); }
public static void SetAnnotationPropertyValue(this AnnotatedElementBuilder annotatedElement, string annotationName, string propertyName, object value) { var annot = annotatedElement.Annotations.FirstOrDefault(a => a.Name == annotationName); if (annot == null) { SoalFactory f = new SoalFactory(annotatedElement.MModel); annot = f.Annotation(); annot.Name = annotationName; annotatedElement.Annotations.Add(annot); } annot.SetPropertyValue(propertyName, value); }