private xmlfilecontent_object CreateFileObject(
            EntitySimpleBaseType filePath, EntitySimpleBaseType fileName, EntitySimpleBaseType path, EntitySimpleBaseType xpath)
        {
            var newXmlFileContentObject = new xmlfilecontent_object();

            EntitySimpleBaseType[]        items;
            xmlfilecontent_ItemsChoices[] itemChoices;
            if (filePath == null)
            {
                items          = new EntitySimpleBaseType[4];
                itemChoices    = new xmlfilecontent_ItemsChoices[3];
                itemChoices[0] = xmlfilecontent_ItemsChoices.path;
                itemChoices[1] = xmlfilecontent_ItemsChoices.filename;
                itemChoices[2] = xmlfilecontent_ItemsChoices.xpath;
                items[0]       = path;
                items[1]       = fileName;
                items[2]       = xpath;
            }
            else
            {
                items          = new EntitySimpleBaseType[3];
                itemChoices    = new xmlfilecontent_ItemsChoices[2];
                itemChoices[0] = xmlfilecontent_ItemsChoices.filepath;
                itemChoices[1] = xmlfilecontent_ItemsChoices.xpath;
                items[0]       = filePath;
                items[1]       = xpath;
            }

            newXmlFileContentObject.Items = items;
            newXmlFileContentObject.XmlfilecontentItemsElementName = itemChoices;

            return(newXmlFileContentObject);
        }
        private IEnumerable <String> EvaluateEntity(
            xmlfilecontent_object xmlfilecontentObject, xmlfilecontent_ItemsChoices entityName)
        {
            var entity = xmlfilecontentObject.GetAllObjectEntities()[entityName.ToString()];

            return(this.VariableEntityEvaluator.EvaluateVariableForEntity(entity));
        }
        private xmlfilecontent_object CreateFileObject(
            EntitySimpleBaseType filePath, EntitySimpleBaseType fileName, EntitySimpleBaseType path, EntitySimpleBaseType xpath)
        {
            var newXmlFileContentObject = new xmlfilecontent_object();
            EntitySimpleBaseType[] items;
            xmlfilecontent_ItemsChoices[] itemChoices;
            if (filePath == null)
            {
                items = new EntitySimpleBaseType[4];
                itemChoices = new xmlfilecontent_ItemsChoices[3];
                itemChoices[0] = xmlfilecontent_ItemsChoices.path;
                itemChoices[1] = xmlfilecontent_ItemsChoices.filename;
                itemChoices[2] = xmlfilecontent_ItemsChoices.xpath;
                items[0] = path;
                items[1] = fileName;
                items[2] = xpath;
            }
            else
            {
                items = new EntitySimpleBaseType[3];
                itemChoices = new xmlfilecontent_ItemsChoices[2];
                itemChoices[0] = xmlfilecontent_ItemsChoices.filepath;
                itemChoices[1] = xmlfilecontent_ItemsChoices.xpath;
                items[0] = filePath;
                items[1] = xpath;
            }

            newXmlFileContentObject.Items = items;
            newXmlFileContentObject.XmlfilecontentItemsElementName = itemChoices;

            return newXmlFileContentObject;
        }
Esempio n. 4
0
        private Dictionary <string, EntityObjectStringType> GetDictionaryWithElement(
            xmlfilecontent_ItemsChoices entityName, Dictionary <string, EntitySimpleBaseType> allEntities)
        {
            var dictionary = new Dictionary <String, EntityObjectStringType>();

            dictionary.Add(entityName.ToString(), (EntityObjectStringType)allEntities[entityName.ToString()]);

            return(dictionary);
        }
Esempio n. 5
0
        public Object GetItemValue(xmlfilecontent_ItemsChoices itemName)
        {
         
            for (int i = 0; i <= this.XmlfilecontentItemsElementName.Count() - 1; i++)
                if (this.XmlfilecontentItemsElementName[i] == itemName)
                    return this.Items[i];

            return null;
        }
Esempio n. 6
0
        public Object GetItemValue(xmlfilecontent_ItemsChoices itemName)
        {
            for (int i = 0; i <= this.XmlfilecontentItemsElementName.Count() - 1; i++)
            {
                if (this.XmlfilecontentItemsElementName[i] == itemName)
                {
                    return(this.Items[i]);
                }
            }

            return(null);
        }
 private IEnumerable<String> EvaluateEntity(
     xmlfilecontent_object xmlfilecontentObject, xmlfilecontent_ItemsChoices entityName)
 {
     var entity = xmlfilecontentObject.GetAllObjectEntities()[entityName.ToString()];
     return this.VariableEntityEvaluator.EvaluateVariableForEntity(entity);
 }
        private Dictionary<string, EntityObjectStringType> GetDictionaryWithElement(
            xmlfilecontent_ItemsChoices entityName, Dictionary<string, EntitySimpleBaseType> allEntities)
        {
            var dictionary = new Dictionary<String, EntityObjectStringType>();
            dictionary.Add(entityName.ToString(), (EntityObjectStringType)allEntities[entityName.ToString()]);

            return dictionary;
        }