public EnvelopeMapAnnotation Build(ISchemaAnnotationReader schemaAnnotationReader) { if (schemaAnnotationReader == null) { throw new ArgumentNullException(nameof(schemaAnnotationReader)); } EnvelopeMapType = schemaAnnotationReader.SchemaMetadata.IsEnvelopeSchema ? schemaAnnotationReader.GetAnnotationElement("EnvelopeMapSpecName")?.Value.IfNotNull(n => Type.GetType(n, true)) : null; return(this); }
public PropertyExtractorAnnotation Build(ISchemaAnnotationReader schemaAnnotationReader) { if (schemaAnnotationReader == null) { throw new ArgumentNullException(nameof(schemaAnnotationReader)); } Extractors = schemaAnnotationReader.GetAnnotationElement("Properties").IfNotNull( p => { var extractorCollection = new PropertyExtractorCollection(); extractorCollection.ReadXml(p.CreateReader()); return(extractorCollection); }) ?? PropertyExtractorCollection.Empty; return(this); }
public AnnotationDummy Build(ISchemaAnnotationReader schemaAnnotationReader) { return(AnnotationDummySpy.Object.Build(schemaAnnotationReader)); }