Beispiel #1
0
        private void Initialize()
        {
            __EntityName = "Action";

            ElementBaseData ebdParametersIn = new ElementBaseData(ActionElementIndex.ParametersIn)
            {
                Data = new List <Field>()
            };
            ElementBaseData ebdParametersOut = new ElementBaseData(ActionElementIndex.ParametersOut)
            {
                Data = new List <Field>()
            };
            ElementBaseData ebdParametersInOut = new ElementBaseData(ActionElementIndex.ParametersInOut)
            {
                Data = new List <Field>()
            };
            ElementBaseData ebdScript = new ElementBaseData(ActionElementIndex.Script)
            {
                Data = String.Empty
            };

            ActionFields.Add("ParametersIn", AddField(ebdParametersIn));
            ActionFields.Add("ParametersOut", AddField(ebdParametersOut));
            ActionFields.Add("ParametersInOut", AddField(ebdParametersInOut));
            ActionFields.Add("Script", AddField(ebdScript));

            AttachedCollections.Add(ebdParametersIn);
            AttachedCollections.Add(ebdParametersOut);
            AttachedCollections.Add(ebdParametersInOut);
        }
Beispiel #2
0
        private void Initialize()
        {
            __EntityName = "Method";

            ElementBaseData ebdArguments = new ElementBaseData(MethodElementIndex.Arguments)
            {
                Data = new List <Argument>()
            };
            ElementBaseData ebdCode = new ElementBaseData(MethodElementIndex.Code)
            {
                Data = String.Empty
            };
            ElementBaseData ebdReturnType = new ElementBaseData(MethodElementIndex.ReturnType)
            {
                Data = new FieldType()
            };
            ElementBaseData ebdFramework = new ElementBaseData(MethodElementIndex.Framework)
            {
                Data = String.Empty
            };

            MethodFields.Add("Arguments", AddField(ebdArguments));
            MethodFields.Add("Code", AddField(ebdCode));
            MethodFields.Add("ReturnType", AddField(ebdReturnType));
            MethodFields.Add("Framework", AddField(ebdFramework));

            AttachedCollections.Add(ebdArguments);
            AttachedCollections.Add(ebdReturnType);
        }
Beispiel #3
0
        private void Initialize()
        {
            __EntityName = "Argument";

            ElementBaseData ebdFieldType = new ElementBaseData(ArgumentElementIndex.FieldType)
            {
                Data = new FieldType()
            };
            ElementBaseData ebdIsEntity = new ElementBaseData(ArgumentElementIndex.IsEntity)
            {
                Data = false
            };

            ArgumentFields.Add("FieldType", AddField(ebdFieldType));
            ArgumentFields.Add("IsEntity", AddField(ebdIsEntity));

            AttachedCollections.Add(ebdFieldType);
        }
        private void Initialize()
        {
            __EntityName = "Enumeration";

            ElementBaseData ebdIterations = new ElementBaseData(EnumerationElementIndex.Iterations)
            {
                Data = new List <Iteration>()
            };
            ElementBaseData ebdFieldType = new ElementBaseData(EnumerationElementIndex.FieldType)
            {
                Data = new FieldType()
            };

            EnumerationFields.Add("Iterations", AddField(ebdIterations));
            EnumerationFields.Add("FieldType", AddField(ebdFieldType));

            AttachedCollections.Add(ebdIterations);
            AttachedCollections.Add(ebdFieldType);
        }
        private void Initialize()
        {
            __EntityName = "Interface";

            ElementBaseData ebdFields = new ElementBaseData(InterfaceElementIndex.Fields)
            {
                Data = new List <Field>()
            };
            ElementBaseData ebdNamespace = new ElementBaseData(InterfaceElementIndex.Namespace)
            {
                Data = String.Empty
            };
            ElementBaseData ebdBluePrintGuid = new ElementBaseData(InterfaceElementIndex.BluePrintGuid)
            {
                Data = Guid.Empty
            };
            ElementBaseData ebdVersion = new ElementBaseData(InterfaceElementIndex.Version)
            {
                Data = String.Empty
            };
            ElementBaseData ebdExtended = new ElementBaseData(InterfaceElementIndex.Extended)
            {
                Data = new Extension()
            };
            ElementBaseData ebdFieldContainerGuid = new ElementBaseData(InterfaceElementIndex.FieldContainerGuid)
            {
                Data = Guid.NewGuid()
            };

            InterfaceFields.Add("Fields", AddField(ebdFields));
            InterfaceFields.Add("Namespace", AddField(ebdNamespace));
            InterfaceFields.Add("BluePrintGuid", AddField(ebdBluePrintGuid));
            InterfaceFields.Add("Version", AddField(ebdVersion));
            InterfaceFields.Add("Extended", AddField(ebdExtended));
            InterfaceFields.Add("FieldContainerGuid", AddField(ebdFieldContainerGuid));

            AttachedCollections.Add(ebdFields);
            AttachedCollections.Add(ebdExtended);
        }
Beispiel #6
0
        private void Initialize()
        {
            __EntityName = "Field";

            ElementBaseData ebdDisplayName = new ElementBaseData(FieldElementIndex.DisplayName)
            {
                Data = String.Empty
            };
            ElementBaseData ebdRules = new ElementBaseData(FieldElementIndex.Rules)
            {
                Data = new List <Rule>()
            };
            ElementBaseData ebdDataType = new ElementBaseData(FieldElementIndex.DataType)
            {
                Data = new DataType()
            };
            ElementBaseData ebdAttributes = new ElementBaseData(FieldElementIndex.Attributes)
            {
                Data = new List <Attribute>()
            };
            ElementBaseData ebdDefaultValue = new ElementBaseData(FieldElementIndex.DefaultValue)
            {
                Data = String.Empty
            };
            ElementBaseData ebdFieldType = new ElementBaseData(FieldElementIndex.FieldType)
            {
                Data = new FieldType()
            };
            ElementBaseData ebdIsNodeAttribute = new ElementBaseData(FieldElementIndex.IsNodeAttribute)
            {
                Data = false
            };
            ElementBaseData ebdIsNodeValue = new ElementBaseData(FieldElementIndex.IsNodeValue)
            {
                Data = false
            };
            ElementBaseData ebdIsDateOnly = new ElementBaseData(FieldElementIndex.IsDateOnly)
            {
                Data = false
            };
            ElementBaseData ebdIsTimeOnly = new ElementBaseData(FieldElementIndex.IsTimeOnly)
            {
                Data = false
            };
            ElementBaseData ebdUseForMatching = new ElementBaseData(FieldElementIndex.UseForMatching)
            {
                Data = false
            };
            ElementBaseData ebdIsEntity = new ElementBaseData(FieldElementIndex.IsEntity)
            {
                Data = false
            };
            ElementBaseData ebdDataChangeNotification = new ElementBaseData(FieldElementIndex.DataChangeNotification)
            {
                Data = false
            };
            ElementBaseData ebdDependant = new ElementBaseData(FieldElementIndex.Dependant)
            {
                Data = false
            };
            ElementBaseData ebdHideOnAdd = new ElementBaseData(FieldElementIndex.HideOnAdd)
            {
                Data = false
            };
            ElementBaseData ebdHideOnEdit = new ElementBaseData(FieldElementIndex.HideOnEdit)
            {
                Data = false
            };
            ElementBaseData ebdHideOnSummary = new ElementBaseData(FieldElementIndex.HideOnSummary)
            {
                Data = false
            };
            ElementBaseData ebdRedact = new ElementBaseData(FieldElementIndex.Redact)
            {
                Data = false
            };
            ElementBaseData ebdConfirm = new ElementBaseData(FieldElementIndex.Confirm)
            {
                Data = false
            };
            ElementBaseData ebdFieldPresentations = new ElementBaseData(FieldElementIndex.FieldPresentations)
            {
                Data = new List <FieldPresentation>()
            };

            FieldFields.Add("DisplayName", AddField(ebdDisplayName));
            FieldFields.Add("Rules", AddField(ebdRules));
            FieldFields.Add("DataType", AddField(ebdDataType));
            FieldFields.Add("Attributes", AddField(ebdAttributes));
            FieldFields.Add("DefaultValue", AddField(ebdDefaultValue));
            FieldFields.Add("FieldType", AddField(ebdFieldType));
            FieldFields.Add("IsNodeAttribute", AddField(ebdIsNodeAttribute));
            FieldFields.Add("IsNodeValue", AddField(ebdIsNodeValue));
            FieldFields.Add("IsDateOnly", AddField(ebdIsDateOnly));
            FieldFields.Add("IsTimeOnly", AddField(ebdIsTimeOnly));
            FieldFields.Add("UseForMatching", AddField(ebdUseForMatching));
            FieldFields.Add("IsEntity", AddField(ebdIsEntity));
            FieldFields.Add("DataChangeNotification", AddField(ebdDataChangeNotification));
            FieldFields.Add("Dependant", AddField(ebdDependant));
            FieldFields.Add("HideOnAdd", AddField(ebdHideOnAdd));
            FieldFields.Add("HideOnEdit", AddField(ebdHideOnEdit));
            FieldFields.Add("HideOnSummary", AddField(ebdHideOnSummary));
            FieldFields.Add("Redact", AddField(ebdRedact));
            FieldFields.Add("Confirm", AddField(ebdConfirm));
            FieldFields.Add("FieldPresentations", AddField(ebdFieldPresentations));

            AttachedCollections.Add(ebdRules);
            AttachedCollections.Add(ebdDataType);
            AttachedCollections.Add(ebdAttributes);
            AttachedCollections.Add(ebdFieldType);
            AttachedCollections.Add(ebdFieldPresentations);
        }
Beispiel #7
0
        private void Initialize()
        {
            __EntityName = "Entity";

            ElementBaseData ebdFields = new ElementBaseData(EntityElementIndex.Fields)
            {
                Data = new List <Field>()
            };
            ElementBaseData ebdActions = new ElementBaseData(EntityElementIndex.Actions)
            {
                Data = new List <Action>()
            };
            ElementBaseData ebdEnumerators = new ElementBaseData(EntityElementIndex.Enumerators)
            {
                Data = new List <Enumeration>()
            };
            ElementBaseData ebdAttributes = new ElementBaseData(EntityElementIndex.Attributes)
            {
                Data = new List <Attribute>()
            };
            ElementBaseData ebdInterfaces = new ElementBaseData(EntityElementIndex.Interfaces)
            {
                Data = new List <Interface>()
            };
            ElementBaseData ebdExtended = new ElementBaseData(EntityElementIndex.Extended)
            {
                Data = new Extension()
            };
            ElementBaseData ebdEntityId = new ElementBaseData(EntityElementIndex.EntityId)
            {
                Data = 0
            };
            ElementBaseData ebdEntityName = new ElementBaseData(EntityElementIndex.EntityName)
            {
                Data = String.Empty
            };
            ElementBaseData ebdBluePrintGuid = new ElementBaseData(EntityElementIndex.BluePrintGuid)
            {
                Data = Guid.Empty
            };
            ElementBaseData ebdVersion = new ElementBaseData(EntityElementIndex.Version)
            {
                Data = String.Empty
            };
            ElementBaseData ebdDeletionType = new ElementBaseData(EntityElementIndex.DeletionType)
            {
                Data = DeletionTypeOption.Delete
            };
            ElementBaseData ebdIcon = new ElementBaseData(EntityElementIndex.Icon)
            {
                Data = String.Empty
            };
            ElementBaseData ebdMethods = new ElementBaseData(EntityElementIndex.Methods)
            {
                Data = new List <Method>()
            };
            ElementBaseData ebdFieldContainerGuid = new ElementBaseData(EntityElementIndex.FieldContainerGuid)
            {
                Data = Guid.NewGuid()
            };

            EntityFields.Add("Fields", AddField(ebdFields));
            EntityFields.Add("Actions", AddField(ebdActions));
            EntityFields.Add("Enumerators", AddField(ebdEnumerators));
            EntityFields.Add("Attributes", AddField(ebdAttributes));
            EntityFields.Add("Interfaces", AddField(ebdInterfaces));
            EntityFields.Add("Extended", AddField(ebdExtended));
            EntityFields.Add("EntityId", AddField(ebdEntityId));
            EntityFields.Add("EntityName", AddField(ebdEntityName));
            EntityFields.Add("BluePrintGuid", AddField(ebdBluePrintGuid));
            EntityFields.Add("Version", AddField(ebdVersion));
            EntityFields.Add("DeletionType", AddField(ebdDeletionType));
            EntityFields.Add("Icon", AddField(ebdIcon));
            EntityFields.Add("Methods", AddField(ebdMethods));
            EntityFields.Add("FieldContainerGuid", AddField(ebdFieldContainerGuid));

            AttachedCollections.Add(ebdFields);
            AttachedCollections.Add(ebdActions);
            AttachedCollections.Add(ebdEnumerators);
            AttachedCollections.Add(ebdAttributes);
            AttachedCollections.Add(ebdInterfaces);
            AttachedCollections.Add(ebdExtended);
            AttachedCollections.Add(ebdMethods);
        }