public static void addErrorInContext(UnmarshallingContext context, Throwable e) { LOGGER.log(FINE, "Failed to load", e); ArrayList<Throwable> list = (ArrayList<Throwable>)context.get("ReadError"); if (list == null) context.put("ReadError", list = new ArrayList<Throwable>()); list.add(e); }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { if (context.get(IN_NESTED)==null) { context.put(IN_NESTED,true); try { return super.unmarshal(reader,context); } finally { context.put(IN_NESTED,false); } } else return leafLabelConverter.unmarshal(reader,context); }
public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { TreeStringBuilder builder = (TreeStringBuilder)context.get(TreeStringBuilder.class); if (builder == null) { context.put(TreeStringBuilder.class, builder = new TreeStringBuilder()); // dedup at the end final TreeStringBuilder _builder = builder; context.addCompletionCallback(new Runnable() { public void run() { _builder.dedup(); } }, 0); } return builder.intern(reader.getValue()); }
public static void addErrorInContext(UnmarshallingContext context, Throwable e) { LOGGER.log(FINE, "Failed to load", e); ArrayList<Throwable> list = (ArrayList<Throwable>)context.get("ReadError"); if (list == null) context.put("ReadError", list = new ArrayList<Throwable>()); list.add(e); }
public static void addErrorInContext(UnmarshallingContext context, Throwable e) { ArrayList<Throwable> list = (ArrayList<Throwable>)context.get("ReadError"); if (list == null) context.put("ReadError", list = new ArrayList<Throwable>()); list.add(e); }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { ColumnNames result = (ColumnNames) super.unmarshal(reader, context); log.debug("Adding the result to the context under the key: " + ColumnNames.COLUMN_NAMES + " with value: " + result); context.put(ColumnNames.COLUMN_NAMES, result); return result; } }
public static void addErrorInContext(UnmarshallingContext context, Throwable e) { ArrayList<Throwable> list = (ArrayList<Throwable>)context.get("ReadError"); if (list == null) context.put("ReadError", list = new ArrayList<Throwable>()); list.add(e); }
public static void addErrorInContext(UnmarshallingContext context, Throwable e) { ArrayList<Throwable> list = (ArrayList<Throwable>)context.get("ReadError"); if (list == null) context.put("ReadError", list = new ArrayList<Throwable>()); list.add(e); }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { if (context.get(IN_NESTED)==null) { context.put(IN_NESTED,true); try { return super.unmarshal(reader,context); } finally { context.put(IN_NESTED,false); } } else return leafLabelConverter.unmarshal(reader,context); }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { if (context.get(IN_NESTED)==null) { context.put(IN_NESTED,true); try { return super.unmarshal(reader,context); } finally { context.put(IN_NESTED,false); } } else return leafLabelConverter.unmarshal(reader,context); }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { if (context.get(IN_NESTED)==null) { context.put(IN_NESTED,true); try { return super.unmarshal(reader,context); } finally { context.put(IN_NESTED,false); } } else return leafLabelConverter.unmarshal(reader,context); }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { if (context.get(IN_NESTED) == null) { context.put(IN_NESTED, true); try { return super.unmarshal(reader, context); } finally { context.put(IN_NESTED, false); } } else { return leafLabelConverter.unmarshal(reader, context); } }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { if (context.get(IN_NESTED)==null) { context.put(IN_NESTED,true); try { return super.unmarshal(reader,context); } finally { context.put(IN_NESTED,false); } } else return leafLabelConverter.unmarshal(reader,context); }
@Override public final Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // read attributes Map<String, String> attributes = this.attributeMapValidator.readValidatedAttributes(reader); String bindingId = attributes.get("bindingId"); context.put("thing-descriptions.bindingId", bindingId); List<?> typeList = (List<?>) context.convertAnother(context, List.class); return new ThingDescriptionList(typeList); }
@Override public final Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // read attributes Map<String, String> attributes = this.attributeMapValidator.readValidatedAttributes(reader); String bindingId = attributes.get("bindingId"); context.put("thing-descriptions.bindingId", bindingId); List<?> typeList = (List<?>) context.convertAnother(context, List.class); return new ThingDescriptionList(typeList); }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Content owner = (Content) context.get("content"); String path = (String) context.get("path"); String id = reader.getAttribute("id"); ComponentList list = new ComponentList(owner, id, path); ComponentList parentList = (ComponentList) context.get("list"); context.put("list", list); populateCollection(reader, context, list); context.put("list", parentList); return list; }
public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { TreeStringBuilder builder = (TreeStringBuilder)context.get(TreeStringBuilder.class); if (builder == null) { context.put(TreeStringBuilder.class, builder = new TreeStringBuilder()); // dedup at the end final TreeStringBuilder _builder = builder; context.addCompletionCallback(new Runnable() { public void run() { _builder.dedup(); } }, 0); } return builder.intern(reader.getValue()); }
public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { TreeStringBuilder builder = (TreeStringBuilder)context.get(TreeStringBuilder.class); if (builder == null) { context.put(TreeStringBuilder.class, builder = new TreeStringBuilder()); // dedup at the end final TreeStringBuilder _builder = builder; context.addCompletionCallback(new Runnable() { public void run() { _builder.dedup(); } }, 0); } return builder.intern(reader.getValue()); }
public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { TreeStringBuilder builder = (TreeStringBuilder) context.get(TreeStringBuilder.class); if (builder == null) { context.put(TreeStringBuilder.class, builder = new TreeStringBuilder()); // dedup at the end final TreeStringBuilder _builder = builder; context.addCompletionCallback(new Runnable() { public void run() { _builder.dedup(); } }, 0); } return builder.intern(reader.getValue()); }