/// <summary>
        /// Populate a Conceptscheme property of SDMXObjectBuilder for insert this in DataStructure response
        /// whitout calling all dataflows and whitout calling a list of concept
        /// </summary>
        public void BuildConcepts(string DataflowRealCode, List <IConceptObjectImpl> ListConcepts)
        {
            ConceptBuilder _conceptBuilder = new ConceptBuilder(this.ConceptSchemeNames, this.parsingObject, this.versionTypeResp);

            _conceptBuilder.Code            = string.Format(FlyConfiguration.ConceptSchemeFormat, DataflowRealCode);
            _conceptBuilder.VersionTypeResp = this.versionTypeResp;

            if (!this.parsingObject.ReturnStub)
            {
                _conceptBuilder.Concepts = ListConcepts;
            }

            IConceptSchemeObject conceptScheme = _conceptBuilder.BuildConceptScheme();

            this.ReferencesObject.ConceptSchemes.Add(conceptScheme);
            this.ReferencesObject.Concepts.Add(conceptScheme.Id, ListConcepts);
        }
Exemplo n.º 2
0
        private void BuildAcceptSection(ConceptBuilder shapeConcept, string acceptName)
        {
            var acceptExtrude = shapeConcept.GetRelatedConcept(acceptName);

            if (acceptExtrude.Node == null)
            {
                return;
            }
            string resourceName;
            string sectionName;
            string labelName;

            if (!ExtractResourceName(acceptName, out resourceName, out sectionName, out labelName))
            {
                throw new Exception("The used concept should exist");
            }
            AddButton(resourceName, sectionName, labelName);
        }
 private static void AcceptOperation(ConceptBuilder shapeBuilder, string functionName)
 {
     shapeBuilder.SetCapability(functionName, string.Empty);
 }