本文整理汇总了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);
}
}
示例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();
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}