コード例 #1
0
 public object Get(
     EventBean eventBean,
     int index)
 {
     return JsonFieldGetterHelperSchema.GetJsonIndexedProp(
         eventBean.Underlying,
         _field.PropertyName,
         index);
 }
コード例 #2
0
 public object Get(
     EventBean eventBean,
     string mapKey)
 {
     return JsonFieldGetterHelperSchema.GetJsonMappedProp(
         eventBean.Underlying,
         _field.PropertyName,
         mapKey);
 }
コード例 #3
0
        public override bool GetJsonExists(object @object)
        {
            var item = JsonFieldGetterHelperSchema.GetJsonIndexedProp(@object, _field.PropertyName, Index);
            if (item == null) {
                return false;
            }

            return InnerGetter.GetJsonExists(item);
        }
コード例 #4
0
        public override object GetJsonFragment(object @object)
        {
            var item = JsonFieldGetterHelperSchema.GetJsonIndexedProp(@object, _field.PropertyName, Index);
            if (item == null) {
                return null;
            }

            return InnerGetter.GetJsonFragment(item);
        }
コード例 #5
0
        public override bool GetJsonExists(object @object)
        {
            var value = JsonFieldGetterHelperSchema.GetJsonSimpleProp(_field, @object);
            if (value == null) {
                return false;
            }

            return InnerGetter.GetJsonExists(value);
        }
コード例 #6
0
        public override object GetJsonFragment(object @object)
        {
            var value = JsonFieldGetterHelperSchema.GetJsonSimpleProp(_field, @object);
            if (value == null) {
                return null;
            }

            return InnerGetter.GetJsonFragment(value);
        }
コード例 #7
0
        public override object GetJsonFragment(object @object)
        {
            if (FragmentType == null) {
                return null;
            }

            return JsonFieldGetterHelperSchema.HandleJsonCreateFragmentArray(
                (JsonEventObjectBase) @object,
                Field.PropertyName,
                FragmentType,
                EventBeanTypedEventFactory);
        }
コード例 #8
0
        public override object GetJsonFragment(object @object)
        {
            if (OptionalInnerType == null) {
                return null;
            }

            var value = JsonFieldGetterHelperSchema.GetJsonIndexedProp(@object, _field.PropertyName, Index);
            if (value == null) {
                return null;
            }

            return EventBeanTypedEventFactory.AdapterForTypedJson(value, OptionalInnerType);
        }
コード例 #9
0
 public override bool GetJsonExists(object @object)
 {
     return JsonFieldGetterHelperSchema.GetJsonIndexedPropExists(@object, _field, Index);
 }
コード例 #10
0
 public override object GetJsonProp(object @object)
 {
     return JsonFieldGetterHelperSchema.GetJsonIndexedProp(@object, _field.PropertyName, Index);
 }
コード例 #11
0
 public override bool GetJsonExists(object @object)
 {
     return JsonFieldGetterHelperSchema.GetJsonMappedExists(@object, _field.PropertyName, Key);
 }