Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 8
0
 public static void GetPropertyTypeString(EnumerationProperty obj, MethodReturnEventArgs <string> e)
 {
     GetElementTypeString(obj, e);
     PropertyActions.DecorateParameterType(obj, e, true, obj.IsList, obj.HasPersistentOrder);
 }
Exemplo n.º 9
0
 public static void GetElementTypeString(DateTimeProperty obj, MethodReturnEventArgs <string> e)
 {
     e.Result = "DateTime";
     PropertyActions.DecorateElementType(obj, e, true);
 }
Exemplo n.º 10
0
 public static void GetPropertyType(DateTimeProperty obj, MethodReturnEventArgs <Type> e)
 {
     e.Result = typeof(DateTime);
     PropertyActions.DecorateParameterType(obj, e, true, obj.IsList, obj.HasPersistentOrder);
 }
Exemplo n.º 11
0
 public static void GetPropertyTypeString(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs <string> e)
 {
     GetElementTypeString(obj, e);
     PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder);
 }
Exemplo n.º 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);
 }
Exemplo n.º 13
0
 public static void GetPropertyTypeString(CalculatedObjectReferenceProperty obj, MethodReturnEventArgs <string> e)
 {
     GetElementTypeString(obj, e);
     PropertyActions.DecorateParameterType(obj, e, false, false, false);
 }
Exemplo n.º 14
0
 public static void GetElementTypeString(StringProperty obj, MethodReturnEventArgs <string> e)
 {
     e.Result = "string";
     PropertyActions.DecorateElementType(obj, e, false);
 }
Exemplo n.º 15
0
 public static void GetPropertyType(StringProperty obj, MethodReturnEventArgs <Type> e)
 {
     e.Result = typeof(string);
     PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder);
 }