示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }
示例#6
0
        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);
        }
示例#7
0
        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);
        }
示例#8
0
 public static void GetPropertyTypeString(EnumerationProperty obj, MethodReturnEventArgs <string> e)
 {
     GetElementTypeString(obj, e);
     PropertyActions.DecorateParameterType(obj, e, true, obj.IsList, obj.HasPersistentOrder);
 }
示例#9
0
 public static void GetElementTypeString(DateTimeProperty obj, MethodReturnEventArgs <string> e)
 {
     e.Result = "DateTime";
     PropertyActions.DecorateElementType(obj, e, true);
 }
示例#10
0
 public static void GetPropertyType(DateTimeProperty obj, MethodReturnEventArgs <Type> e)
 {
     e.Result = typeof(DateTime);
     PropertyActions.DecorateParameterType(obj, e, true, obj.IsList, obj.HasPersistentOrder);
 }
示例#11
0
 public static void GetPropertyTypeString(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs <string> e)
 {
     GetElementTypeString(obj, e);
     PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder);
 }
示例#12
0
 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);
 }
示例#13
0
 public static void GetPropertyTypeString(CalculatedObjectReferenceProperty obj, MethodReturnEventArgs <string> e)
 {
     GetElementTypeString(obj, e);
     PropertyActions.DecorateParameterType(obj, e, false, false, false);
 }
示例#14
0
 public static void GetElementTypeString(StringProperty obj, MethodReturnEventArgs <string> e)
 {
     e.Result = "string";
     PropertyActions.DecorateElementType(obj, e, false);
 }
示例#15
0
 public static void GetPropertyType(StringProperty obj, MethodReturnEventArgs <Type> e)
 {
     e.Result = typeof(string);
     PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder);
 }