Example #1
0
        public Dimension(IDimension dimension)
        {
            if (dimension.HasCodedRepresentation())
            {
                this._isCodelist = true;
                this._codelist = dimension.Representation.Representation.MaintainableReference.MaintainableId;
                this._codelistAgency = dimension.Representation.Representation.MaintainableReference.AgencyId;
                this._codelistVersion = dimension.Representation.Representation.MaintainableReference.Version;
            }
            else {
                this._isCodelist = false;
            }

            this._id = dimension.Id;
            this._conceptRef = dimension.ConceptRef.FullId;
            this._conceptSchemeId= dimension.ConceptRef.MaintainableReference.MaintainableId;
            this._conceptSchemeAgency = dimension.ConceptRef.MaintainableReference.AgencyId;
            this._conceptSchemeVersion = dimension.ConceptRef.MaintainableReference.Version;

            this._timeDimension = dimension.TimeDimension;
            this._measureDimension = dimension.MeasureDimension;
            this._frequencyDimension = dimension.FrequencyDimension;

            this._names=new List<TextTypeWrapper>();
            this._descriptions=new List<TextTypeWrapper>();
            this._codelistItems=new List<Code>();
        }