public bool GetJsonExists(object @object)
        {
            var result = GetJsonProvidedIndexedProp(@object, field, index);
            if (result == null) {
                return false;
            }

            return nestedGetter.IsBeanExistsProperty(result);
        }
        public bool GetJsonExists(object @object)
        {
            var nested = GetJsonProvidedSimpleProp(@object, field);
            if (nested == null) {
                return false;
            }

            return nestedGetter.IsBeanExistsProperty(nested);
        }
Ejemplo n.º 3
0
        private bool IsExistsProperty(object[] array)
        {
            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)
        {
            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));
        }