public IEnumerable<ObjectType> ProcessVariables(ObjectType objcetType)
        {
            textfilecontent_object fileContentObject = (textfilecontent_object)objcetType;
            List<ObjectType> fileContentObjects = new List<ObjectType>();

            IEnumerable<string> variablesFromfileName = this.ProcessVariableForFileName(fileContentObject);
            IEnumerable<string> variablesFromline = this.ProcessVariableForLine(fileContentObject);
            IEnumerable<string> variablesFrompath = this.ProcessVariableForPath(fileContentObject);

            if (this.IsVariablesWasProcessed(variablesFromfileName, variablesFromline, variablesFrompath))
            {
                FileContentObjectTypeFactory factory = new FileContentObjectTypeFactory();
                fileContentObjects.AddRange(factory.CreateObjectTypeByCombinationOfEntities(fileContentObject, variablesFromfileName, variablesFromline, variablesFrompath));
            }

            return fileContentObjects;
        }
Exemple #2
0
        public IEnumerable <ObjectType> ProcessVariables(ObjectType objcetType)
        {
            textfilecontent_object fileContentObject  = (textfilecontent_object)objcetType;
            List <ObjectType>      fileContentObjects = new List <ObjectType>();

            IEnumerable <string> variablesFromfileName = this.ProcessVariableForFileName(fileContentObject);
            IEnumerable <string> variablesFromline     = this.ProcessVariableForLine(fileContentObject);
            IEnumerable <string> variablesFrompath     = this.ProcessVariableForPath(fileContentObject);

            if (this.IsVariablesWasProcessed(variablesFromfileName, variablesFromline, variablesFrompath))
            {
                FileContentObjectTypeFactory factory = new FileContentObjectTypeFactory();
                fileContentObjects.AddRange(factory.CreateObjectTypeByCombinationOfEntities(fileContentObject, variablesFromfileName, variablesFromline, variablesFrompath));
            }

            return(fileContentObjects);
        }