コード例 #1
0
 public object GetMap(IDictionary<string, object> map)
 {
     // If the map does not contain the key, this is allowed and represented as null
     var value = map.Get(_propertyMap);
     if (value == null) return null;
     // Object within the map
     if (value is EventBean) return _mapEntryGetter.Get((EventBean) value);
     return _mapEntryGetter.GetBeanProp(value);
 }
コード例 #2
0
        public object GetObjectArray(object[] array)
        {
            // If the map does not contain the key, this is allowed and represented as null
            var value = array[_propertyIndex];

            if (value == null) return null;

            // object within the map
            if (value is EventBean) return _entryGetter.Get((EventBean) value);
            return _entryGetter.GetBeanProp(value);
        }
コード例 #3
0
        public object GetMap(DataMap map)
        {
            // If the map does not contain the key, this is allowed and represented as null
            var value = map.Get(_propertyMap);

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

            if (value is EventBean)
            {
                return(_mapEntryGetter.Get((EventBean)value));
            }

            // Object within the map
            return(_mapEntryGetter.GetBeanProp(value));
        }