Пример #1
0
 public object Get(
     EventBean eventBean,
     string mapKey)
 {
     var data = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return GetOAMapValue(data, propertyIndex, mapKey);
 }
 public object Get(
     EventBean eventBean,
     int index)
 {
     var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return GetObjectArrayInternal(array, index);
 }
Пример #3
0
 public object Get(
     EventBean eventBean,
     int index)
 {
     var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return GetArrayValue(array, propertyIndex, index);
 }
 public bool IsExistsProperty(EventBean eventBean)
 {
     Object[] array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     Object value = array[_propertyIndex];
     if (value == null)
     {
         return false;
     }
     return HandleNestedValueExists(value);
 }
 public Object GetFragment(EventBean obj)
 {
     Object[] array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj);
     Object value = array[_propertyIndex];
     if (value == null)
     {
         return null;
     }
     return HandleNestedValueFragment(value);
 }
        public bool IsExistsProperty(EventBean eventBean)
        {
            var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
            var value = array[PropertyIndex];

            if (value == null)
            {
                return(false);
            }
            return(HandleNestedValueExists(value));
        }
        public Object GetFragment(EventBean obj)
        {
            var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj);
            var value = array[PropertyIndex];

            if (value == null)
            {
                return(null);
            }
            return(HandleNestedValueFragment(value));
        }
        public object GetFragment(EventBean obj)
        {
            // If the map does not contain the key, this is allowed and represented as null
            var value = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj)[propertyIndex];

            if (value == null) {
                return null;
            }

            // Object within the map
            var theEvent = (EventBean) value;
            return eventBeanEntryGetter.GetFragment(theEvent);
        }
        public override bool IsExistsProperty(EventBean eventBean)
        {
            var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
            var value = array[_propertyIndex];

            if (value == null)
            {
                return(false);
            }

            // Object within the map
            if (value is EventBean)
            {
                return(_entryGetter.IsExistsProperty((EventBean)value));
            }
            return(_entryGetter.IsBeanExistsProperty(value));
        }
 public override bool IsExistsProperty(EventBean eventBean)
 {
     Object[] array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return(array.Length > _index);
 }
 public Object Get(EventBean eventBean)
 {
     Object[] array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return(GetObjectArray(array));
 }
Пример #12
0
 public Object GetFragment(EventBean obj)
 {
     Object[]    array   = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj);
     EventBean[] wrapper = (EventBean[])array[_propertyIndex];
     return(BaseNestableEventUtil.GetBNArrayPropertyBean(wrapper, _index));
 }
Пример #13
0
 public object GetFragment(EventBean obj)
 {
     var wrapper = (EventBean[]) BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj)[propertyIndex];
     return BaseNestableEventUtil.GetArrayPropertyFragment(wrapper, index, nestedGetter);
 }
Пример #14
0
 public override bool IsExistsProperty(EventBean eventBean)
 {
     var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return IsExistsProperty(array);
 }
 public Object Get(EventBean eventBean)
 {
     return(GetObjectArray(BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean)));
 }
 public object GetFragment(EventBean obj)
 {
     return BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj)[propertyIndex];
 }
Пример #17
0
 public override object Get(EventBean obj)
 {
     var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj);
     return GetObjectArray(array);
 }
Пример #18
0
 public object Get(EventBean eventBean)
 {
     var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return GetObjectArray(array);
 }
 public object Get(EventBean obj)
 {
     return GetObjectArray(BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj));
 }
Пример #20
0
 public Object GetFragment(EventBean obj)
 {
     EventBean[] wrapper = (EventBean[])BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj)[_propertyIndex];
     return(BaseNestableEventUtil.GetArrayPropertyFragment(wrapper, _index, _nestedGetter));
 }
 public bool IsExistsProperty(EventBean eventBean)
 {
     Object[] data = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return GetOAMapExists(data, _propertyIndex, _key);
 }
 public Object Get(EventBean eventBean)
 {
     Object[] data = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return GetOAMapValue(data, _propertyIndex, _key);
 }
 public Object GetFragment(EventBean obj)
 {
     Object[] array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj);
     return(array[_propertyIndex]);
 }
Пример #24
0
 public bool IsExistsProperty(EventBean eventBean)
 {
     return(IsObjectArrayExistsProperty(BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean)));
 }
 public object GetFragment(EventBean obj)
 {
     var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(obj);
     var wrapper = (EventBean[]) array[propertyIndex];
     return BaseNestableEventUtil.GetBNArrayPropertyBean(wrapper, index);
 }
 public bool IsExistsProperty(EventBean eventBean)
 {
     Object[] array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return IsObjectArrayExistsProperty(array);
 }
Пример #27
0
 public override bool IsExistsProperty(EventBean eventBean)
 {
     var array = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return CollectionUtil.ArrayExistsAtIndex((Array) array[propertyIndex], index);
 }
 public Object Get(EventBean eventBean, String mapKey)
 {
     Object[] data = BaseNestableEventUtil.CheckedCastUnderlyingObjectArray(eventBean);
     return(GetObjectArrayInternal(data, mapKey));
 }