private string describeType(Profile profile, Profile.TypeRefComponent t) { StringBuilder b = new StringBuilder(); if (_pkp.HasLinkForTypeDocu(t.Code)) { b.Append("<a href=\""); b.Append(_pkp.GetLinkForTypeDocu(t.Code)); b.Append("\">"); b.Append(t.Code); b.Append("</a>"); } else { b.Append(t.Code); } if (t.Profile != null) { b.Append(String.Format("<a href=\"{0}\">", _pkp.GetLinkForProfileReference(profile, t.Profile))); b.Append("(Profile = " + t.Profile + ")"); b.Append("</a>"); } return(b.ToString()); }
private TypeRef HarvestTypeRef(Profile.TypeRefComponent type) { TypeRef typeref = new TypeRef(type.Code, type.Profile); //builder.CreateTypeRef(type.Code, type.Profile); // todo: now the typerefs are duplicated. so resolving deduplication must be done else where. return(typeref); }