private void Add_Annotation(CodeType Code, string title, string text) { if (title != string.Empty || text != string.Empty) { if (Code.Annotations == null) { Code.Annotations = new List<AnnotationType>(); } AnnotationType Annotation = new AnnotationType(); Annotation.AnnotationTitle = title; Annotation.AnnotationText = new List<TextType>(); Annotation.AnnotationText.Add(new TextType(null, text)); Code.Annotations.Add(Annotation); } }
private CodeType Create_Code(string id, string name, string description, string language, string parentId, AnnotationType annotation) { CodeType RetVal; RetVal = new CodeType(id, name, description, language, parentId, annotation); return RetVal; }
public CodeType(string id, string name, string description, string language, string parentId, AnnotationType annotation) { this.id = id; if (!string.IsNullOrEmpty(name)) { this.Name = new List<TextType>(); this.Name.Add(new TextType(language, name)); } else { this.Name = null; } if (!string.IsNullOrEmpty(description)) { this.Description = new List<TextType>(); this.Description.Add(new TextType(language, description)); } else { this.Description = null; } if (annotation != null) { this.Annotations = new List<AnnotationType>(); this.Annotations.Add(annotation); } else { this.Annotations = null; } if (!string.IsNullOrEmpty(parentId)) { this.Items = new List<object>(); this.Items.Add(new LocalCodeReferenceType()); ((LocalCodeReferenceType)this.Items[0]).Items = new List<object>(); ((LocalCodeReferenceType)this.Items[0]).Items.Add(new LocalCodeRefType()); ((LocalCodeRefType)((LocalCodeReferenceType)this.Items[0]).Items[0]).id = parentId; } else { this.Items = null; } }
private void Add_Annotation(CategoryType Category, string title, string text) { if (Category.Annotations == null) { Category.Annotations = new List<AnnotationType>(); } AnnotationType Annotation = new AnnotationType(); Annotation.AnnotationTitle = title; Annotation.AnnotationText = new List<TextType>(); Annotation.AnnotationText.Add(new TextType(null, text)); Category.Annotations.Add(Annotation); }
public CategoryType(string id, string name, string description, string language, AnnotationType annotation) { this.id = id; if (!string.IsNullOrEmpty(name)) { this.Name = new List<TextType>(); this.Name.Add(new TextType(language, name)); } else { this.Name = null; } if (!string.IsNullOrEmpty(description)) { this.Description = new List<TextType>(); this.Description.Add(new TextType(language, description)); } else { this.Description = null; } if (annotation != null) { this.Annotations = new List<AnnotationType>(); this.Annotations.Add(annotation); } else { this.Annotations = null; } }
public CodelistType(string id, string agencyId, string version, string name, string description, string language, AnnotationType annotation) { this.id = id; this.agencyID = agencyId; this.version = version; if (!string.IsNullOrEmpty(name)) { this.Name = new List<TextType>(); this.Name.Add(new TextType(language, name)); } else { this.Name = null; } if (!string.IsNullOrEmpty(description)) { this.Description = new List<TextType>(); this.Description.Add(new TextType(language, description)); } else { this.Description = null; } if (annotation != null) { this.Annotations = new List<AnnotationType>(); this.Annotations.Add(annotation); } else { this.Annotations = null; } }
public ReportStructureType(string id, AnnotationType annotation) { this.id = id; if (annotation != null) { this.Annotations = new List<AnnotationType>(); this.Annotations.Add(annotation); } this.metadataTargetField = new List<LocalMetadataTargetReferenceType>(); }
public MetadataTargetType(string id, AnnotationType annotation) { this.id = id; if (annotation != null) { this.Annotations = new List<AnnotationType>(); this.Annotations.Add(annotation); } }
public MetadataAttributeType(string id, bool isPresentationField, AnnotationType annotation) { this.id = id; this.isPresentationalField = isPresentationField; if (annotation != null) { this.Annotations = new List<AnnotationType>(); this.Annotations.Add(annotation); } this.metadataAttributeField = new List<MetadataAttributeType>(); }
public IdentifiableObjectTargetType(string id, ObjectTypeCodelistType objectType, AnnotationType annotation) { this.id = id; this.objectType = objectType; if (annotation != null) { this.Annotations = new List<AnnotationType>(); this.Annotations.Add(annotation); } }
public HierarchicalCodelistType(string ID, string AgencyId, string Version, bool IsExternalReference, string Uri, string Name, string Description, AnnotationType Annotation) { this.id = ID; this.agencyID = AgencyId; this.version = Version; this.isExternalReference = IsExternalReference; this.uri = Uri; if (!string.IsNullOrEmpty(Name)) { this.Name = new List<SDMXObjectModel.Common.TextType>(); this.Name.Add(new SDMXObjectModel.Common.TextType()); this.Name[0].Value = Name; } else { this.Name = null; } if (!string.IsNullOrEmpty(Description)) { this.Description = new List<SDMXObjectModel.Common.TextType>(); this.Description.Add(new SDMXObjectModel.Common.TextType()); this.Description[0].Value = Description; } else { this.Description = null; } if (Annotation == null) { this.Annotations = null; } else { this.Annotations = new List<SDMXObjectModel.Common.AnnotationType>(); this.Annotations.Add(new SDMXObjectModel.Common.AnnotationType()); this.Annotations[0].AnnotationText = new List<SDMXObjectModel.Common.TextType>(); this.Annotations[0].AnnotationText.Add(new SDMXObjectModel.Common.TextType()); this.Annotations[0].AnnotationText[0].Value = Annotation.AnnotationText[0].Value; this.Annotations[0].AnnotationTitle = Annotation.AnnotationTitle; } }