コード例 #1
0
        /// <summary>
        /// The get categorisation.
        /// </summary>
        /// <param name="xref">
        /// The xref.
        /// </param>
        /// <param name="structureWriter">
        /// The structure writer.
        /// </param>
        /// <exception cref="ArgumentException">
        /// </exception>
        public virtual void GetCategorisation(IMaintainableRefObject xref, IStructureWritingEngine structureWriter)
        {
            if (structureWriter == null)
            {
                throw new ArgumentException("IStructureWritingEngine can not be null");
            }

            IMaintainableObject bean = this.SdmxObjectRetrievalManager.GetCategorisation(xref);
            structureWriter.WriteStructure(bean);
        }
コード例 #2
0
 /// <summary>
 /// The get agency.
 /// </summary>
 /// <param name="id">
 /// The id.
 /// </param>
 /// <param name="structureWriter">
 /// The structure writer.
 /// </param>
 /// <exception cref="UnsupportedException">
 /// </exception>
 public virtual void GetAgency(string id, IStructureWritingEngine structureWriter)
 {
     throw new UnsupportedException(ExceptionCode.Unsupported);
 }
コード例 #3
0
        /// <summary>
        /// The get maintainable with references.
        /// </summary>
        /// <param name="query">
        /// The query.
        /// </param>
        /// <param name="structureWriter">
        /// The structure writer.
        /// </param>
        /// <exception cref="ArgumentException">
        /// </exception>
        public virtual void GetMaintainableWithReferences(
            IStructureReference query, IStructureWritingEngine structureWriter)
        {
            if (structureWriter == null)
            {
                throw new ArgumentException("IStructureWritingEngine can not be null");
            }

            ISet<IMaintainableObject> mBeans = this.SdmxObjectRetrievalManager.GetMaintainableWithReferences(query);
            ISdmxObjects beans = new SdmxObjectsImpl(null, mBeans);
            structureWriter.WriteStructures(beans);
        }
コード例 #4
0
        /// <summary>
        /// The get structure set beans.
        /// </summary>
        /// <param name="xref">
        /// The xref.
        /// </param>
        /// <param name="structureWriter">
        /// The structure writer.
        /// </param>
        /// <exception cref="ArgumentException">
        /// </exception>
        public virtual void GetStructureSetBeans(IMaintainableRefObject xref, IStructureWritingEngine structureWriter)
        {
            if (structureWriter == null)
            {
                throw new ArgumentException("IStructureWritingEngine can not be null");
            }

            ISet<IStructureSetObject> mBeans = this.SdmxObjectRetrievalManager.GetStructureSetBeans(xref);
            ISdmxObjects beans = new SdmxObjectsImpl(null, mBeans);
            structureWriter.WriteStructures(beans);
        }
コード例 #5
0
        /// <summary>
        /// The get maintainable.
        /// </summary>
        /// <param name="query">
        /// The query.
        /// </param>
        /// <param name="structureWriter">
        /// The structure writer.
        /// </param>
        /// <exception cref="ArgumentException">
        /// </exception>
        public virtual void GetMaintainable(IStructureReference query, IStructureWritingEngine structureWriter)
        {
            if (structureWriter == null)
            {
                throw new ArgumentException("IStructureWritingEngine can not be null");
            }

            IMaintainableObject bean = this.SdmxObjectRetrievalManager.GetMaintainable(query);
            structureWriter.WriteStructure(bean);
        }