@Override public boolean containsKey(Object key) { boolean result = super.containsKey(key); if (result == false && parent != null) result = parent.containsKey(key); return result; }
@Override public boolean containsKey(Object key) { boolean result = super.containsKey(key); if (result == false && parent != null) result = parent.containsKey(key); return result; }
public Object submitConverted(final Rewrite event, final EvaluationContext context, final Object value) { String convertedName = getParameterConvertedName(property); if (!context.containsKey(property)) { if (value != null && value.getClass().isArray()) storeValue(event, context, convertedName, value); else storeValue(event, context, convertedName, new Object[] { value }); } else { Object[] values = (Object[]) context.get(convertedName); List<Object> list = Arrays.asList(values); if (value.getClass().isArray()) list.addAll(Arrays.asList((Object[]) value)); else list.add(value); storeValue(event, context, convertedName, list.toArray()); } return null; }
@Override public Object submit(final Rewrite event, final EvaluationContext context, final Object value) { String unconvertedName = getParameterUnconvertedName(property); if (!context.containsKey(property)) { if (value.getClass().isArray()) storeValue(event, context, unconvertedName, value); else storeValue(event, context, unconvertedName, new Object[] { value }); } else { Object[] values = (Object[]) context.get(unconvertedName); List<Object> list = Arrays.asList(values); if (value.getClass().isArray()) list.addAll(Arrays.asList((Object[]) value)); else list.add(value); storeValue(event, context, unconvertedName, list.toArray()); } return null; }
@Override public Object submit(final Rewrite event, final EvaluationContext context, final Object value) { String unconvertedName = getParameterUnconvertedName(property); if (!context.containsKey(property)) { if (value.getClass().isArray()) storeValue(event, context, unconvertedName, value); else storeValue(event, context, unconvertedName, new Object[] { value }); } else { Object[] values = (Object[]) context.get(unconvertedName); List<Object> list = Arrays.asList(values); if (value.getClass().isArray()) list.addAll(Arrays.asList((Object[]) value)); else list.add(value); storeValue(event, context, unconvertedName, list.toArray()); } return null; }
public Object submitConverted(final Rewrite event, final EvaluationContext context, final Object value) { String convertedName = getParameterConvertedName(property); if (!context.containsKey(property)) { if (value != null && value.getClass().isArray()) storeValue(event, context, convertedName, value); else storeValue(event, context, convertedName, new Object[] { value }); } else { Object[] values = (Object[]) context.get(convertedName); List<Object> list = Arrays.asList(values); if (value.getClass().isArray()) list.addAll(Arrays.asList((Object[]) value)); else list.add(value); storeValue(event, context, convertedName, list.toArray()); } return null; }