public boolean contains(TemplateModel item) throws TemplateModelException { Object itemPojo = ((ObjectWrapperAndUnwrapper) getObjectWrapper()).unwrap(item); try { return collection.contains(itemPojo); } catch (ClassCastException e) { throw new _TemplateModelException(e, "Failed to check if the collection contains the item. Probably the item's Java type, ", itemPojo != null ? new _DelayedShortClassName(itemPojo.getClass()) : (Object) "Null", ", doesn't match the type of (some of) the collection items; see cause exception."); } }
for (Iterator iter = args.entrySet().iterator(); iter.hasNext(); ) { final Map.Entry entry = (Map.Entry) iter.next(); final Object arg = unwrapper.unwrap((TemplateModel) entry.getValue()); argArray[0] = arg; final Object paramName = entry.getKey();
final TemplateModel tm = environment.getGlobalNamespace().get(name); if (incompatibleImprovements >= _TemplateAPI.VERSION_INT_2_3_22 && unwrapper != null) { return unwrapper.unwrap(tm); } else { // Legacy behavior branch if (tm instanceof AdapterTemplateModel) {
public boolean contains(TemplateModel item) throws TemplateModelException { Object itemPojo = ((ObjectWrapperAndUnwrapper) getObjectWrapper()).unwrap(item); try { return collection.contains(itemPojo); } catch (ClassCastException e) { throw new _TemplateModelException(e, "Failed to check if the collection contains the item. Probably the item's Java type, ", itemPojo != null ? new _DelayedShortClassName(itemPojo.getClass()) : (Object) "Null", ", doesn't match the type of (some of) the collection items; see cause exception."); } }
public boolean contains(TemplateModel item) throws TemplateModelException { Object itemPojo = ((ObjectWrapperAndUnwrapper) getObjectWrapper()).unwrap(item); try { return collection.contains(itemPojo); } catch (ClassCastException e) { throw new _TemplateModelException(e, "Failed to check if the collection contains the item. Probably the item's Java type, ", itemPojo != null ? new _DelayedShortClassName(itemPojo.getClass()) : (Object) "Null", ", doesn't match the type of (some of) the collection items; see cause exception."); } }
for (Iterator iter = args.entrySet().iterator(); iter.hasNext(); ) { final Map.Entry entry = (Map.Entry) iter.next(); final Object arg = unwrapper.unwrap((TemplateModel) entry.getValue()); argArray[0] = arg; final Object paramName = entry.getKey();
for (Iterator iter = args.entrySet().iterator(); iter.hasNext(); ) { final Map.Entry entry = (Map.Entry) iter.next(); final Object arg = unwrapper.unwrap((TemplateModel) entry.getValue()); argArray[0] = arg; final Object paramName = entry.getKey();
final TemplateModel tm = environment.getGlobalNamespace().get(name); if (incompatibleImprovements >= _TemplateAPI.VERSION_INT_2_3_22 && unwrapper != null) { return unwrapper.unwrap(tm); } else { // Legacy behavior branch if (tm instanceof AdapterTemplateModel) {
final TemplateModel tm = environment.getGlobalNamespace().get(name); if (incompatibleImprovements >= _TemplateAPI.VERSION_INT_2_3_22 && unwrapper != null) { return unwrapper.unwrap(tm); } else { // Legacy behavior branch if (tm instanceof AdapterTemplateModel) {