public string GetParam(OdcmProperty type) { if (type.IsComplex()) { return(type.IsSystem() ? string.Empty : type.GetTypeString() + " *" + type.Name.ToLowerFirstChar()); } return(type.GetTypeString() + " " + type.Name); }
public static string ToPropertyString(this OdcmProperty property) { return(string.Format("{0} {1}{2}", property.GetFullType(), (property.IsComplex() ? "*" : string.Empty), SanitizePropertyName(property))); }
public static string ToSetterTypeString(this OdcmProperty property) { return(string.Format("{0} {1}", property.GetFullType(), (property.IsComplex() ? "*" : string.Empty))); }
public string GetClass(OdcmProperty type) { return(type.IsComplex() ? string.Format("[{0}{1} class]", GetPrefix(), type.GetTypeString()) : "nil"); }
public static bool IsComplexCollectionOpenType(this OdcmProperty property, OdcmModel model) { return(property.IsComplex() && property.Projection.Type.Name.ToLower().EndsWith("collection") && model.GetComplexTypes().Any(complexType => complexType.Name.Equals(property.Projection.Type.Name) && complexType.IsOpen)); }