コード例 #1
0
    public Node representData(Object data) {
      final ConfigurationSerializable serializable = (ConfigurationSerializable) data;
      final Map<String, Object> values = new LinkedHashMap<String, Object>();
      values.put(
          ConfigurationSerialization.SERIALIZED_TYPE_KEY,
          ConfigurationSerialization.getAlias(serializable.getClass()));
      values.putAll(serializable.serialize());

      return super.representData(values);
    }