当前位置: 首页>>代码示例>>C#>>正文


C# ISdmxObject类代码示例

本文整理汇总了C#中ISdmxObject的典型用法代码示例。如果您正苦于以下问题:C# ISdmxObject类的具体用法?C# ISdmxObject怎么用?C# ISdmxObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ISdmxObject类属于命名空间,在下文中一共展示了ISdmxObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ContactCore

        public ContactCore(IContactMutableObject mutableBean, ISdmxObject parent)
            : base(mutableBean, parent)
        {
            this.id = mutableBean.Id;
            CopyTextTypes(name, mutableBean.Names);
            CopyTextTypes(role, mutableBean.Names);
            CopyTextTypes(departments, mutableBean.Departments);

            if (mutableBean.Email != null)
            {
                this.email = new List<string>(mutableBean.Email);
            }
            if (mutableBean.Telephone != null)
            {
                this.telephone = new List<string>(mutableBean.Telephone);
            }
            if (mutableBean.Fax != null)
            {
                this.fax = new List<string>(mutableBean.Fax);
            }
            if (mutableBean.Uri != null)
            {
                this.uri = new List<string>(mutableBean.Uri);
            }
            if (mutableBean.X400 != null)
            {
                this.x400 = new List<string>(mutableBean.X400);
            }
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:29,代码来源:ContactCore.cs

示例2: ReportedAttributeObjectObjectCore

        ///////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////BUILD FROM V2.1 SCHEMA                 //////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////////////
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="ReportedAttributeObjectObjectCore"/> class.
        /// </summary>
        /// <param name="parent">
        /// The parent. 
        /// </param>
        /// <param name="type">
        /// The type. 
        /// </param>
        public ReportedAttributeObjectObjectCore(ISdmxObject parent, ReportedAttributeType type)
            : base(SdmxStructureType.GetFromEnum(SdmxStructureEnumType.MetadataReportAttribute), parent)
        {
            this.metadataText = new List<ITextTypeWrapper>();
            this.reportedAttribute = new List<IReportedAttributeObject>();
            this.id = type.id;
            if (ObjectUtil.ValidCollection(type.StructuredText))
            {
                foreach (StructuredText text in type.StructuredText)
                {
                    this.metadataText.Add(new TextTypeWrapperImpl(text.Content, this));
                }
            }

            if (ObjectUtil.ValidCollection(type.Text))
            {
                foreach (Text text0 in type.Text)
                {
                    this.metadataText.Add(new TextTypeWrapperImpl(text0.Content, this));
                }
            }

            if (type.AttributeSet != null)
            {
                foreach (ReportedAttributeType currentType in type.AttributeSet.ReportedAttribute)
                {
                    this.reportedAttribute.Add(new ReportedAttributeObjectObjectCore(this, currentType));
                }
            }

            this.simpleValue = type.value;
            this.Validate();
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:47,代码来源:ReportedAttributeObjectObjectCore.cs

示例3: ObjectBaseCore

		public ObjectBaseCore(ISdmxObject builtFrom) {
			if (builtFrom == null) {
				throw new ValidationException(
						"Super Bean missing the required ISdmxObject that it is built from");
			}
			this._builtFrom = builtFrom;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:7,代码来源:SuperBeanImpl.cs

示例4: CrossReferenceImpl

        // FUNC this constructor does not account the sRef having the incorrect SdmxStructureType (i.e from a mutable agencySchemeMutableObject)
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="CrossReferenceImpl"/> class.
        /// </summary>
        /// <param name="referencedFrom">
        /// The referenced from. 
        /// </param>
        /// <param name="structureReference">
        /// The structure reference 
        /// </param>
        public CrossReferenceImpl(ISdmxObject referencedFrom, IStructureReference structureReference)
            : base(
                structureReference.MaintainableReference.AgencyId, 
                structureReference.MaintainableReference.MaintainableId, 
                structureReference.MaintainableReference.Version, 
                structureReference.TargetReference, 
                structureReference.IdentifiableIds)
        {
            this._referencedFrom = referencedFrom;
            this.ValidateReference();
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:23,代码来源:CrossReferenceImpl.cs

示例5: DeepEquals

 public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
 {
     if (sdmxObject == null)
     {
         return false;
     }
     var that = sdmxObject as IDataSetReference;
     if (that != null)
     {
         if (!ObjectUtil.Equivalent(this.DataProviderReference, that.DataProviderReference))
         {
             return false;
         }
         if (!ObjectUtil.Equivalent(this.DatasetId, that.DatasetId))
         {
             return false;
         }
     }
     return false;
 }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:20,代码来源:DataSetReferenceCore.cs

示例6: DeepEquals

 public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
 {
     if (sdmxObject == null)
     {
         return false;
     }
     var that = sdmxObject as IMetadataTargetKeyValues;
     if (that != null)
     {
         if (!ObjectUtil.EquivalentCollection(this._objectReferences, that.ObjectReferences))
         {
             return false;
         }
         if (!base.Equivalent(this._datasetReferences, that.DatasetReferences, includeFinalProperties))
         {
             return false;
         }
         return true;
     }
     return false;
 }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:21,代码来源:MetadataTargetKeyValuesCore.cs

示例7: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The sdmxObject. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            if (sdmxObject == null) return false;

            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (IConceptObject)sdmxObject;
                if (!ObjectUtil.Equivalent(this.parentConcept, that.ParentConcept))
                {
                    return false;
                }

                if (!ObjectUtil.Equivalent(this.parentAgency, that.ParentAgency))
                {
                    return false;
                }

                if (!this.Equivalent(this.isoConceptReference, that.IsoConceptReference))
                {
                    return false;
                }

                if (!this.Equivalent(this.coreRepresentation, that.CoreRepresentation, includeFinalProperties))
                {
                    return false;
                }

                return this.DeepEqualsNameable(that, includeFinalProperties);
            }

            return false;
        }
开发者ID:SDMXISTATFRAMEWORK,项目名称:ISTAT_ENHANCED_SDMXRI_WS,代码行数:42,代码来源:ConceptCore.cs

示例8: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The sdmxObject. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (IMetadataAttributeObject)sdmxObject;
                if (!this.Equivalent(this.metadataAttributes, that.MetadataAttributes, includeFinalProperties))
                {
                    return false;
                }

                if (!ObjectUtil.Equivalent(this.minOccurs, that.MinOccurs))
                {
                    return false;
                }

                if (!ObjectUtil.Equivalent(this.maxOccurs, that.MaxOccurs))
                {
                    return false;
                }

                if (this.presentational != that.Presentational)
                {
                    return false;
                }

                return this.DeepEqualsInternal(that, includeFinalProperties);
            }

            return false;
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:40,代码来源:MetadataAttributeObjectCore.cs

示例9: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The sdmxObject. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            if (sdmxObject == null) return false;

            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (IReportingCategoryObject)sdmxObject;
                if (!ObjectUtil.Equivalent(this.structuralMetadata, that.StructuralMetadata))
                {
                    return false;
                }

                if (!ObjectUtil.Equivalent(this.provisioningMetadata, that.ProvisioningMetadata))
                {
                    return false;
                }

                if (!this.Equivalent(this.reportingCategories, that.Items, includeFinalProperties))
                {
                    return false;
                }

                return this.DeepEqualsNameable(that, includeFinalProperties);
            }

            return false;
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:37,代码来源:ReportingCategoryCore.cs

示例10: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The sdmxObject. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            
            if(sdmxObject == null) return false;

            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (ICategoryObject)sdmxObject;
                if (!this.Equivalent(this._categories, that.Items, includeFinalProperties))
                {
                    return false;
                }

                return this.DeepEqualsNameable(that, includeFinalProperties);
            }

            return false;
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:28,代码来源:CategoryCore.cs

示例11: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The sdmxObject. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            if (sdmxObject == null) return false;
            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (ISchemeMapObject)sdmxObject;
                if (ObjectUtil.Equivalent(this.sourceRef, that.SourceRef))
                {
                    return false;
                }

                if (ObjectUtil.Equivalent(this.targetRef, that.TargetRef))
                {
                    return false;
                }

                return this.DeepEqualsNameable(that, includeFinalProperties);
            }

            return false;
        }
开发者ID:SDMXISTATFRAMEWORK,项目名称:ISTAT_ENHANCED_SDMXRI_WS,代码行数:31,代码来源:SchemeMapCore.cs

示例12: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The sdmxObject. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            if (sdmxObject == null) return false;
            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (IMeasureList)sdmxObject;
                if (!this.Equivalent(this.primaryMeasure, that.PrimaryMeasure, includeFinalProperties))
                {
                    return false;
                }

                return this.DeepEqualsInternal(that, includeFinalProperties);
            }

            return false;
        }
开发者ID:SDMXISTATFRAMEWORK,项目名称:ISTAT_ENHANCED_SDMXRI_WS,代码行数:26,代码来源:MeasureListCore.cs

示例13: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The agencyScheme. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            if (sdmxObject == null) return false;
            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (ICategoryMap)sdmxObject;
                if (!ObjectUtil.EquivalentCollection(this.sourceId, that.SourceId))
                {
                    return false;
                }

                if (!ObjectUtil.EquivalentCollection(this.targetId, that.TargetId))
                {
                    return false;
                }

                if (!ObjectUtil.Equivalent(this.alias, that.Alias))
                {
                    return false;
                }

                return true;
            }

            return false;
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:36,代码来源:CategoryMapCore.cs

示例14: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The sdmxObject. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            if (sdmxObject == null) return false;

            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (ICode)sdmxObject;
                if (!ObjectUtil.Equivalent(this.parentCode, that.ParentCode))
                {
                    return false;
                }

                return this.DeepEqualsNameable(that, includeFinalProperties);
            }

            return false;
        }
开发者ID:SDMXISTATFRAMEWORK,项目名称:ISTAT_ENHANCED_SDMXRI_WS,代码行数:27,代码来源:CodeCore.cs

示例15: DeepEquals

        /// <summary>
        /// The deep equals.
        /// </summary>
        /// <param name="sdmxObject">
        /// The sdmxObject. 
        /// </param>
        /// <param name="includeFinalProperties"> </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        public override bool DeepEquals(ISdmxObject sdmxObject, bool includeFinalProperties)
        {
            if (sdmxObject == null) return false;

            if (sdmxObject.StructureType == this.StructureType)
            {
                var that = (ILevelObject)sdmxObject;
                if (!this.Equivalent(this.childLevel, that.ChildLevel, includeFinalProperties))
                {
                    return false;
                }

                if (!this.Equivalent(this.textFormat, that.CodingFormat, includeFinalProperties))
                {
                    return false;
                }

                return this.DeepEqualsNameable(that, includeFinalProperties);
            }

            return false;
        }
开发者ID:SDMXISTATFRAMEWORK,项目名称:ISTAT_ENHANCED_SDMXRI_WS,代码行数:32,代码来源:LevelCore.cs


注:本文中的ISdmxObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。