public static void GetPropertyType(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs <Type> e) { var def = obj.ReferencedObjectClass; e.Result = Type.GetType(def.Module.Namespace + "." + def.Name + ", " + Zetbox.API.Helper.InterfaceAssembly, true); PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder); }
public static void GetPropertyType(EnumerationProperty obj, MethodReturnEventArgs <Type> e) { var cls = obj.Enumeration; e.Result = Type.GetType(cls.Module.Namespace + "." + cls.Name + ", " + Zetbox.API.Helper.InterfaceAssembly, true); PropertyActions.DecorateParameterType(obj, e, true, obj.IsList, obj.HasPersistentOrder); }
public static void GetPropertyType(CompoundObjectProperty obj, MethodReturnEventArgs <Type> e) { var def = obj.CompoundObjectDefinition; e.Result = Type.GetType(def.Module.Namespace + "." + def.Name, true); PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder); }
public static void GetPropertyType(CalculatedObjectReferenceProperty obj, MethodReturnEventArgs <Type> e) { var def = obj.ReferencedClass; e.Result = Type.GetType(def.Module.Namespace + "." + def.Name, true); PropertyActions.DecorateParameterType(obj, e, false, false, false); }
public static void GetElementTypeString(EnumerationProperty obj, MethodReturnEventArgs <string> e) { var cls = obj.Enumeration; if (cls == null) { e.Result = "<no enum>"; } else if (cls.Module == null) { e.Result = "<no namespace>." + cls.Name; } else { e.Result = cls.Module.Namespace + "." + cls.Name; } PropertyActions.DecorateElementType(obj, e, true); }
public static void GetElementTypeString(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs <string> e) { var def = obj.ReferencedObjectClass; if (def == null) { e.Result = "<no class>"; } else if (def.Module == null) { e.Result = "<no namespace>." + def.Name; } else { e.Result = def.Module.Namespace + "." + def.Name; } PropertyActions.DecorateElementType(obj, e, false); }
public static void GetElementTypeString(CompoundObjectProperty obj, MethodReturnEventArgs <string> e) { var def = obj.CompoundObjectDefinition; if (def == null) { e.Result = "<no type>"; } else if (def.Module == null) { e.Result = "<no namespace>." + def.Name; } else { e.Result = def.Module.Namespace + "." + def.Name; } PropertyActions.DecorateElementType(obj, e, false); }
public static void GetPropertyTypeString(EnumerationProperty obj, MethodReturnEventArgs <string> e) { GetElementTypeString(obj, e); PropertyActions.DecorateParameterType(obj, e, true, obj.IsList, obj.HasPersistentOrder); }
public static void GetElementTypeString(DateTimeProperty obj, MethodReturnEventArgs <string> e) { e.Result = "DateTime"; PropertyActions.DecorateElementType(obj, e, true); }
public static void GetPropertyType(DateTimeProperty obj, MethodReturnEventArgs <Type> e) { e.Result = typeof(DateTime); PropertyActions.DecorateParameterType(obj, e, true, obj.IsList, obj.HasPersistentOrder); }
public static void GetPropertyTypeString(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs <string> e) { GetElementTypeString(obj, e); PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder); }
public static void GetPropertyTypeString(ObjectReferenceProperty obj, MethodReturnEventArgs <string> e) { GetElementTypeString(obj, e); PropertyActions.DecorateParameterType(obj, e, false, obj.GetIsList(), obj.RelationEnd.Parent.GetOtherEnd(obj.RelationEnd).HasPersistentOrder); }
public static void GetPropertyTypeString(CalculatedObjectReferenceProperty obj, MethodReturnEventArgs <string> e) { GetElementTypeString(obj, e); PropertyActions.DecorateParameterType(obj, e, false, false, false); }
public static void GetElementTypeString(StringProperty obj, MethodReturnEventArgs <string> e) { e.Result = "string"; PropertyActions.DecorateElementType(obj, e, false); }
public static void GetPropertyType(StringProperty obj, MethodReturnEventArgs <Type> e) { e.Result = typeof(string); PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder); }