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; }
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); }
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; }
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; }