public CodeListRef(CodeList codeList, Id alias) { Id = codeList.Id; AgencyId = codeList.AgencyId; Version = codeList.Version; Alias = alias; }
public virtual bool TryParse(string s, string startTime, out object obj) { if (IsCoded) { var code = CodeList.Get(s); if (code == null) { obj = null; return(false); } obj = code.Id.ToString(); return(true); } else { return(TextFormat.TryParse(s, startTime, out obj)); } }
public bool TrySerialize(object obj, out string s, out string startTime) { if (IsCoded) { var code = CodeList.Get(obj.ToString()); if (code == null) { s = startTime = null; return(false); } s = code.Id; startTime = null; return(true); } else { return(TextFormat.TrySerialize(obj, out s, out startTime)); } }
public void AddCodeList(CodeList codeList, Id alias) { Contract.AssertNotNull(codeList, "codeList"); AddCodeList(new CodeListRef(codeList, alias)); }
public Dimension(Concept concept, CodeList codeList) : base(concept, codeList) { }
public PrimaryMeasure(Concept concept, CodeList codeList) : base(concept, codeList) { }
public CrossSectionalMeasure(Concept concept, CodeList codeList) : base(concept, codeList) { }
public Attribute(Concept concept, CodeList codeList) : base(concept, codeList) { }
public Component(Concept concept, CodeList codeList) { this.Concept = concept; this.CodeList = codeList; this.TextFormat = DefaultTextFormat; }