示例#1
0
        /// <summary>
        /// Create a set of minimal options
        /// </summary>
        public static DocumentShelfOptions CreateDefault()
        {
            var opt = new DocumentShelfOptions();

            // use pre-definitions
            var preDefLib = new AasxPredefinedConcepts.DefinitionsVDI2770();
            var preDefs   = new AasxPredefinedConcepts.DefinitionsVDI2770.SetOfDefsVDI2770(preDefLib);

            opt.SemIdDocumentation = preDefs.SM_VDI2770_Documentation?.semanticId?.GetAsExactlyOneKey();
            if (opt.SemIdDocumentation != null)
            {
                opt.AllowSubmodelSemanticIds.Add(opt.SemIdDocumentation);
            }

            opt.SemIdDocument                     = preDefs.CD_VDI2770_Document?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentIdValue              = preDefs.CD_VDI2770_DocumentIdValue?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentClassId              = preDefs.CD_VDI2770_DocumentClassId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentClassName            = preDefs.CD_VDI2770_DocumentClassName?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentClassificationSystem =
                preDefs.CD_VDI2770_DocumentClassificationSystem?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdOrganizationName         = preDefs.CD_VDI2770_OrganizationName?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdOrganizationOfficialName =
                preDefs.CD_VDI2770_OrganizationOfficialName?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentVersion        = preDefs.CD_VDI2770_DocumentVersion?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdLanguage               = preDefs.CD_VDI2770_Language?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdTitle                  = preDefs.CD_VDI2770_Title?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDate                   = preDefs.CD_VDI2770_Date?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentVersionIdValue =
                preDefs.CD_VDI2770_DocumentVersionIdValue?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDigitalFile = preDefs.CD_VDI2770_DigitalFile?.GetCdReference()?.GetAsExactlyOneKey();

            opt.FormVdi2770 = CreateVdi2770TemplateDesc(opt);

            /* new, Birgit */
            opt.SemIdDocumentId          = preDefs.CD_VDI2770_DocumentId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdIsPrimaryDocumentId =
                preDefs.CD_VDI2770_IsPrimaryDocumentId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentVersionId = preDefs.CD_VDI2770_DocumentVersionId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdSummary           = preDefs.CD_VDI2770_Summary?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdKeywords          = preDefs.CD_VDI2770_Keywords?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdStatusValue       = preDefs.CD_VDI2770_StatusValue?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdRole             = preDefs.CD_VDI2770_Role?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDomainId         = preDefs.CD_VDI2770_DomainId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdReferencedObject = preDefs.CD_VDI2770_ReferencedObject?.GetCdReference()?.GetAsExactlyOneKey();

            // for V11, very little
            opt.AllowSubmodelSemanticIds.Add(
                AasxPredefinedConcepts.VDI2770v11.Static.SM_ManufacturerDocumentation.GetSemanticKey());

            return(opt);
        }
示例#2
0
        /// <summary>
        /// Create a set of minimal options
        /// </summary>
        public static DocuShelfSemanticConfig CreateDefault()
        {
            var opt = new DocuShelfSemanticConfig();

            // use pre-definitions
            var preDefLib = new AasxPredefinedConcepts.DefinitionsVDI2770();
            var preDefs   = new AasxPredefinedConcepts.DefinitionsVDI2770.SetOfDefsVDI2770(preDefLib);

            opt.SemIdDocumentation = preDefs.SM_VDI2770_Documentation?.semanticId?.GetAsExactlyOneKey();

            opt.SemIdDocument                     = preDefs.CD_VDI2770_Document?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentIdValue              = preDefs.CD_VDI2770_DocumentIdValue?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentClassId              = preDefs.CD_VDI2770_DocumentClassId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentClassName            = preDefs.CD_VDI2770_DocumentClassName?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentClassificationSystem =
                preDefs.CD_VDI2770_DocumentClassificationSystem?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdOrganizationName         = preDefs.CD_VDI2770_OrganizationName?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdOrganizationOfficialName =
                preDefs.CD_VDI2770_OrganizationOfficialName?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentVersion        = preDefs.CD_VDI2770_DocumentVersion?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdLanguage               = preDefs.CD_VDI2770_Language?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdTitle                  = preDefs.CD_VDI2770_Title?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDate                   = preDefs.CD_VDI2770_Date?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentVersionIdValue =
                preDefs.CD_VDI2770_DocumentVersionIdValue?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDigitalFile = preDefs.CD_VDI2770_DigitalFile?.GetCdReference()?.GetAsExactlyOneKey();

            /* new, Birgit */
            opt.SemIdDocumentId          = preDefs.CD_VDI2770_DocumentId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdIsPrimaryDocumentId =
                preDefs.CD_VDI2770_IsPrimaryDocumentId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDocumentVersionId = preDefs.CD_VDI2770_DocumentVersionId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdSummary           = preDefs.CD_VDI2770_Summary?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdKeywords          = preDefs.CD_VDI2770_Keywords?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdStatusValue       = preDefs.CD_VDI2770_StatusValue?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdRole             = preDefs.CD_VDI2770_Role?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdDomainId         = preDefs.CD_VDI2770_DomainId?.GetCdReference()?.GetAsExactlyOneKey();
            opt.SemIdReferencedObject = preDefs.CD_VDI2770_ReferencedObject?.GetCdReference()?.GetAsExactlyOneKey();

            return(opt);
        }