/// <summary>
 /// Gets the item value from the items array.
 /// This method makes the combination between ItemsElementName and Items array
 /// to the get value.
 /// </summary>
 /// <param name="itemName">Name of the item.</param>
 /// <returns></returns>
 public Object GetItemValue(fileeffectiverights53_object_ItemsChoices itemName)
 {
     for (int i = 0; i <= this.Fileeffectiverights53ObjectItemsElementName.Count() - 1; i++)
         if (this.Fileeffectiverights53ObjectItemsElementName[i] == itemName)
             return this.Items[i];
     
     return null;
 }
 private IEnumerable<String> EvaluateEntity(
     fileeffectiverights53_object fileeffectiverights53Object, 
     fileeffectiverights53_object_ItemsChoices entityName,
     bool isEntityNullable = false)
 {
     var entity = fileeffectiverights53Object.GetAllObjectEntities()[entityName.ToString()];
     var isNilEntity = (isEntityNullable && (entity == null));
     return isNilEntity ? new string[] { "" } : VariableEntityEvaluator.EvaluateVariableForEntity(entity);
 }
        private Dictionary <string, EntityObjectStringType> GetDictionaryWithElement(
            fileeffectiverights53_object_ItemsChoices entityName, Dictionary <string, EntitySimpleBaseType> allEntities)
        {
            var dictionary = new Dictionary <String, EntityObjectStringType>();

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

            return(dictionary);
        }
        private IEnumerable <String> EvaluateEntity(
            fileeffectiverights53_object fileeffectiverights53Object,
            fileeffectiverights53_object_ItemsChoices entityName,
            bool isEntityNullable = false)
        {
            var entity      = fileeffectiverights53Object.GetAllObjectEntities()[entityName.ToString()];
            var isNilEntity = (isEntityNullable && (entity == null));

            return(isNilEntity ? new string[] { "" } : VariableEntityEvaluator.EvaluateVariableForEntity(entity));
        }
        /// <summary>
        /// Gets the item value from the items array.
        /// This method makes the combination between ItemsElementName and Items array
        /// to the get value.
        /// </summary>
        /// <param name="itemName">Name of the item.</param>
        /// <returns></returns>
        public Object GetItemValue(fileeffectiverights53_object_ItemsChoices itemName)
        {
            for (int i = 0; i <= this.Fileeffectiverights53ObjectItemsElementName.Count() - 1; i++)
            {
                if (this.Fileeffectiverights53ObjectItemsElementName[i] == itemName)
                {
                    return(this.Items[i]);
                }
            }

            return(null);
        }
 private Boolean hasEntityVariableReference(fileeffectiverights53_object_ItemsChoices entityName)
 {
     var entity = (EntityObjectStringType)this.GetItemValue(entityName);
     return ((entity != null) && (!string.IsNullOrEmpty(entity.var_ref)));
 }
        private Boolean hasEntityVariableReference(fileeffectiverights53_object_ItemsChoices entityName)
        {
            var entity = (EntityObjectStringType)this.GetItemValue(entityName);

            return((entity != null) && (!string.IsNullOrEmpty(entity.var_ref)));
        }
        private Dictionary<string, EntityObjectStringType> GetDictionaryWithElement(
            fileeffectiverights53_object_ItemsChoices entityName, Dictionary<string, EntitySimpleBaseType> allEntities)
        {
            var dictionary = new Dictionary<String, EntityObjectStringType>();
            dictionary.Add(entityName.ToString(), (EntityObjectStringType)allEntities[entityName.ToString()]);

            return dictionary;
        }