本文整理汇总了C#中IComplexStructureReferenceObject.GetMaintainableRefObject方法的典型用法代码示例。如果您正苦于以下问题:C# IComplexStructureReferenceObject.GetMaintainableRefObject方法的具体用法?C# IComplexStructureReferenceObject.GetMaintainableRefObject怎么用?C# IComplexStructureReferenceObject.GetMaintainableRefObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IComplexStructureReferenceObject
的用法示例。
在下文中一共展示了IComplexStructureReferenceObject.GetMaintainableRefObject方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetMutableDataflow
/// <summary>
/// Gets a single Dataflow , this expects the ref object either to contain
/// a URN or all the attributes required to uniquely identify the object. If version information
/// is missing then the latest version is assumed.
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <param name="allowedDataflow">
/// The allowed Dataflow.
/// </param>
/// <returns>
/// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.DataStructure.IDataflowMutableObject"/> .
/// </returns>
public IDataflowMutableObject GetMutableDataflow(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList<IMaintainableRefObject> allowedDataflow)
{
var xref = complexRef.GetMaintainableRefObject();
return xref.HasVersion()
? this._retrievalEngineContainer.DataflowRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints(), allowedDataflow).FirstOrDefault()
: this._retrievalEngineContainer.DataflowRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType, allowedDataflow);
}
示例2: GetMutableDataflowObjects
/// <summary>
/// Gets DataflowObjects that match the parameters in the ref @object. If the ref @object is null or
/// has no attributes set, then this will be interpreted as a search for all DataflowObjects
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <param name="allowedDataflow">
/// The allowed Dataflow.
/// </param>
/// <returns>
/// list of sdmxObjects that match the search criteria
/// </returns>
public ISet<IDataflowMutableObject> GetMutableDataflowObjects(
IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList<IMaintainableRefObject> allowedDataflow)
{
var xref = complexRef.GetMaintainableRefObject();
return this._retrievalEngineContainer.DataflowRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints(), allowedDataflow);
}
示例3: GetMutableStructureSetObjects
/// <summary>
/// Gets StructureSetObjects that match the parameters in the ref @object. If the ref @object is null or
/// has no attributes set, then this will be interpreted as a search for all StructureSetObjects
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <returns>
/// list of sdmxObjects that match the search criteria
/// </returns>
public ISet<IStructureSetMutableObject> GetMutableStructureSetObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
{
// 8.12 ISTAT ENHANCEMENT
var xref = complexRef.GetMaintainableRefObject();
return this._retrievalEngineContainer.StructureSetRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints());
}
示例4: GetMutableCategorisation
/// <summary>
/// Gets a single Categorisation, this expects the ref object either to contain
/// a URN or all the attributes required to uniquely identify the object. If version information
/// is missing then the latest version is assumed.
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <param name="allowedDataflows">
/// The allowed Dataflows.
/// </param>
/// <returns>
/// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.CategoryScheme.ICategorisationMutableObject"/> .
/// </returns>
public ICategorisationMutableObject GetMutableCategorisation(
IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList<IMaintainableRefObject> allowedDataflows)
{
var xref = complexRef.GetMaintainableRefObject();
if (xref.HasVersion())
{
return this._retrievalEngineContainer.CategorisationRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints(), allowedDataflows).FirstOrDefault();
}
//// complexRef.GetVersionConstraints() Change this when mapping store is modified to host proper categorisation artefacts
return this._retrievalEngineContainer.CategorisationRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType, allowedDataflows);
}
示例5: GetMutableStructureSet
/// <summary>
/// Gets a structure set @object, this expects the ref object either to contain
/// a URN or all the attributes required to uniquely identify the object. If version information
/// is missing then the latest version is assumed.
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <returns>
/// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.Mapping.IStructureSetMutableObject"/> .
/// </returns>
public IStructureSetMutableObject GetMutableStructureSet(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
{
// 8.11 ISTAT ENHANCEMENT
var xref = complexRef.GetMaintainableRefObject();
return xref.HasVersion()
? this._retrievalEngineContainer.StructureSetRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()).FirstOrDefault()
: this._retrievalEngineContainer.StructureSetRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType);
}
示例6: GetMutableHierarchicCodeListObjects
/// <summary>
/// Gets HierarchicalCodelistObjects that match the parameters in the ref @object. If the ref @object is null or
/// has no attributes set, then this will be interpreted as a search for all HierarchicalCodelistObjects
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <returns>
/// list of sdmxObjects that match the search criteria
/// </returns>
public ISet<IHierarchicalCodelistMutableObject> GetMutableHierarchicCodeListObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
{
var xref = complexRef.GetMaintainableRefObject();
return this._retrievalEngineContainer.HclRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints());
}
示例7: GetMutableHierarchicCodeList
/// <summary>
/// Gets a single HierarchicCodeList , this expects the ref object either to contain
/// a URN or all the attributes required to uniquely identify the object. If version information
/// is missing then the latest version is assumed.
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <returns>
/// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.Codelist.IHierarchicalCodelistMutableObject"/> .
/// </returns>
public IHierarchicalCodelistMutableObject GetMutableHierarchicCodeList(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
{
var xref = complexRef.GetMaintainableRefObject();
return xref.HasVersion()
? this._retrievalEngineContainer.HclRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()).FirstOrDefault()
: this._retrievalEngineContainer.HclRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType);
}
示例8: GetMutableDataStructureObjects
/// <summary>
/// Gets DataStructureObjects that match the parameters in the ref @object. If the ref @object is null or
/// has no attributes set, then this will be interpreted as a search for all dataStructureObjects
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <returns>
/// list of sdmxObjects that match the search criteria
/// </returns>
public ISet<IDataStructureMutableObject> GetMutableDataStructureObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
{
var xref = complexRef.GetMaintainableRefObject();
return this._retrievalEngineContainer.DSDRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints());
}
示例9: GetMutableCategoryScheme
/// <summary>
/// Gets a single CategoryScheme , this expects the ref object either to contain
/// a URN or all the attributes required to uniquely identify the object. If version information
/// is missing then the latest version is assumed.
/// </summary>
/// <param name="complexRef">
/// The reference object defining the search parameters.
/// </param>
/// <param name="returnDetail">
/// The return Detail.
/// </param>
/// <returns>
/// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.CategoryScheme.ICategorySchemeMutableObject"/> .
/// </returns>
public ICategorySchemeMutableObject GetMutableCategoryScheme(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
{
var xref = complexRef.GetMaintainableRefObject();
return xref.HasVersion()
? this._retrievalEngineContainer.CategorySchemeRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()).FirstOrDefault()
: this._retrievalEngineContainer.CategorySchemeRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType);
}