Пример #1
0
 internal static GEDCOMAddressStructure CreateAddressStructure(GEDCOMRecord record)
 {
     return(new GEDCOMAddressStructure(record));
 }
Пример #2
0
 internal static GEDCOMSourceRepositoryCitationStructure CreateSourceRepositoryStructure(GEDCOMRecord record)
 {
     return(new GEDCOMSourceRepositoryCitationStructure(record));
 }
Пример #3
0
 /// <summary>
 ///   Constructs a GEDCOMRepositoryRecord from a GEDCOMRecord
 /// </summary>
 /// <param name = "record">a GEDCOMRecord</param>
 public GEDCOMRepositoryRecord(GEDCOMRecord record) : base(record)
 {
 }
Пример #4
0
 internal static GEDCOMHeaderSourceStructure CreateHeaderSourceStructure(GEDCOMRecord record)
 {
     return(new GEDCOMHeaderSourceStructure(record));
 }
Пример #5
0
        internal static GEDCOMRecord Create(GEDCOMRecord record)
        {
            switch (record.TagName)
            {
            case GEDCOMTag.ADDR:
                return(CreateAddressStructure(record));

            case GEDCOMTag.ASSO:
                return(CreateAssociationStructure(record));

            case GEDCOMTag.CHAN:
                return(CreateChangeDateStructure(record));

            case GEDCOMTag.CALN:
                return(CreateCallNumberStructure(record));

            case GEDCOMTag.AFN:
            case GEDCOMTag.RIN:
            case GEDCOMTag.RFN:
            case GEDCOMTag.REFN:
                return(CreateExternalIDStructure(record));

            case GEDCOMTag.FAM:
                return(CreateFamilyRecord(record));

            case GEDCOMTag.FAMC:
            case GEDCOMTag.FAMS:
                return(CreateLinkStructure(record));

            case GEDCOMTag.HEAD:
                return(CreateHeaderRecord(record));

            case GEDCOMTag.INDI:
                return(CreateIndividualRecord(record));

            case GEDCOMTag.OBJE:
                if (record.Level == 0)
                {
                    return(CreateMultimediaRecord(record));
                }

                return(CreateMultimediaStructure(record));

            case GEDCOMTag.NAME:
                return(CreateNameStructure(record));

            case GEDCOMTag.NOTE:
                if (record.Level == 0)
                {
                    return(CreateNoteRecord(record));
                }

                return(CreateNoteStructure(record));

            case GEDCOMTag.PLAC:
                return(CreatePlaceStructure(record));

            case GEDCOMTag.REPO:
                if (record.Level == 0)
                {
                    return(CreateRepositoryRecord(record));
                }

                return(CreateSourceRepositoryStructure(record));

            case GEDCOMTag.SOUR:
                if (record.Level == 0)
                {
                    return(CreateSourceRecord(record));
                }

                if (String.IsNullOrEmpty(record.XRefId))
                {
                    return(CreateHeaderSourceStructure(record));
                }

                return(CreateSourceStructure(record));

            case GEDCOMTag.SUBM:
                return(CreateSubmitterRecord(record));

            case GEDCOMTag.SUBN:
                return(CreateSubmissionRecord(record));

            default:
                //Check if the tag is an Fact type tag
                EventClass eventClass = GEDCOMUtil.GetEventClass(record.Tag);
                if (eventClass != EventClass.Unknown)
                {
                    return(CreateEventStructure(record, eventClass));
                }

                return(record);
            }
        }
Пример #6
0
 internal static GEDCOMChangeDateStructure CreateChangeDateStructure(GEDCOMRecord record)
 {
     return(new GEDCOMChangeDateStructure(record));
 }
Пример #7
0
 internal static GEDCOMEventStructure CreateEventStructure(GEDCOMRecord record, EventClass eventClass)
 {
     return(new GEDCOMEventStructure(record, eventClass));
 }
Пример #8
0
 internal static GEDCOMFamilyRecord CreateFamilyRecord(GEDCOMRecord record)
 {
     return(new GEDCOMFamilyRecord(record));
 }
Пример #9
0
 internal static GEDCOMHeaderRecord CreateHeaderRecord(GEDCOMRecord record)
 {
     return(new GEDCOMHeaderRecord(record));
 }
 /// <summary>
 ///   Constructs a GEDCOMHeaderRecord from a GEDCOMRecord
 /// </summary>
 /// <param name = "record">a GEDCOMRecord</param>
 public GEDCOMHeaderRecord(GEDCOMRecord record) : base(record)
 {
 }
 /// <summary>
 ///   Constructs a GEDCOMIndividualRecord from a GEDCOMRecord
 /// </summary>
 /// <param name = "record">a GEDCOMRecord</param>
 public GEDCOMIndividualRecord(GEDCOMRecord record) : base(record)
 {
 }
Пример #12
0
 /// <summary>
 ///   Constructs a GEDCOMBaseRecord from a GEDCOMRecord
 /// </summary>
 /// <param name = "record">a GEDCOMRecord</param>
 public GEDCOMBaseRecord(GEDCOMRecord record) : base(record)
 {
 }
Пример #13
0
 /// <summary>
 ///   Constructs a GEDCOMMultimediaRecord from a GEDCOMRecord
 /// </summary>
 /// <param name = "record">a GEDCOMRecord</param>
 public GEDCOMMultimediaRecord(GEDCOMRecord record) : base(record)
 {
 }
 /// <summary>
 ///   Constructs a GEDCOMFamilyRecord from a GEDCOMRecord
 /// </summary>
 /// <param name = "record">a GEDCOMRecord</param>
 public GEDCOMFamilyRecord(GEDCOMRecord record) : base(record)
 {
 }
Пример #15
0
 internal static GEDCOMAssociationStructure CreateAssociationStructure(GEDCOMRecord record)
 {
     return(new GEDCOMAssociationStructure(record));
 }
Пример #16
0
 internal static GEDCOMIndividualRecord CreateIndividualRecord(GEDCOMRecord record)
 {
     return(new GEDCOMIndividualRecord(record));
 }
Пример #17
0
 internal static GEDCOMCallNumberStructure CreateCallNumberStructure(GEDCOMRecord record)
 {
     return(new GEDCOMCallNumberStructure(record));
 }
Пример #18
0
 internal static GEDCOMMultimediaRecord CreateMultimediaRecord(GEDCOMRecord record)
 {
     return(new GEDCOMMultimediaRecord(record));
 }
Пример #19
0
 internal static GEDCOMExternalIDStructure CreateExternalIDStructure(GEDCOMRecord record)
 {
     return(new GEDCOMExternalIDStructure(record));
 }
Пример #20
0
 internal static GEDCOMNoteRecord CreateNoteRecord(GEDCOMRecord record)
 {
     return(new GEDCOMNoteRecord(record));
 }
Пример #21
0
 internal static GEDCOMFamilyLinkStructure CreateLinkStructure(GEDCOMRecord record)
 {
     return(new GEDCOMFamilyLinkStructure(record));
 }
Пример #22
0
 internal static GEDCOMRepositoryRecord CreateRepositoryRecord(GEDCOMRecord record)
 {
     return(new GEDCOMRepositoryRecord(record));
 }
Пример #23
0
 internal static GEDCOMMultimediaStructure CreateMultimediaStructure(GEDCOMRecord record)
 {
     return(new GEDCOMMultimediaStructure(record));
 }
Пример #24
0
 internal static GEDCOMSourceRecord CreateSourceRecord(GEDCOMRecord record)
 {
     return(new GEDCOMSourceRecord(record));
 }
Пример #25
0
 internal static GEDCOMPlaceStructure CreatePlaceStructure(GEDCOMRecord record)
 {
     return(new GEDCOMPlaceStructure(record));
 }
Пример #26
0
 internal static GEDCOMSubmissionRecord CreateSubmissionRecord(GEDCOMRecord record)
 {
     return(new GEDCOMSubmissionRecord(record));
 }
Пример #27
0
 /// <summary>
 ///   Constructs a GEDCOMSourceRecord from a GEDCOMRecord
 /// </summary>
 /// <param name = "record">a GEDCOMRecord</param>
 public GEDCOMSourceRecord(GEDCOMRecord record) : base(record)
 {
 }
Пример #28
0
 /// <summary>
 ///   Constructs a GEDCOMSubmitterRecord from a GEDCOMRecord
 /// </summary>
 /// <param name = "record">a GEDCOMRecord</param>
 public GEDCOMSubmitterRecord(GEDCOMRecord record) : base(record)
 {
 }