/** * Construct Composite Value * * @param compositeMetaType the composite type of the data * @param items map of strings to values * @throws IllegalArgumentException for a null metaType */ public CompositeValueSupport(CompositeMetaType compositeMetaType, Map<String, MetaValue> items) { init(compositeMetaType, items); }
/** * Construct Composite Value * * @param compositeMetaType the composite type of the data * @param items map of strings to values * @throws IllegalArgumentException for a null metaType */ public CompositeValueSupport(CompositeMetaType compositeMetaType, Map<String, MetaValue> items) { init(compositeMetaType, items); }
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { ObjectInputStream.GetField getField = in.readFields(); SortedMap contents = (SortedMap) getField.get("contents", null); CompositeMetaType compositeType = (CompositeMetaType) getField.get("metaType", null); try { init(compositeType, contents); } catch (Exception e) { throw new RuntimeException("Error deserializing composite value", e); } } }
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { ObjectInputStream.GetField getField = in.readFields(); SortedMap contents = (SortedMap) getField.get("contents", null); CompositeMetaType compositeType = (CompositeMetaType) getField.get("metaType", null); try { init(compositeType, contents); } catch (Exception e) { throw new RuntimeException("Error deserializing composite value", e); } } }