public static void serialize( SerializationStreamWriter streamWriter, erd.client.util.model.Clazz instance) throws SerializationException { streamWriter.writeString(getAccessModifier(instance)); streamWriter.writeString(getBelongsTo(instance)); streamWriter.writeString(getLineStart(instance)); streamWriter.writeObject(getMethods(instance)); streamWriter.writeObject(getStatus(instance)); streamWriter.writeObject(getVariables(instance)); erd.client.util.model.JavaObject_FieldSerializer.serialize(streamWriter, instance); }
public static void deserialize( SerializationStreamReader streamReader, erd.client.util.model.Clazz instance) throws SerializationException { setAccessModifier(instance, streamReader.readString()); setBelongsTo(instance, streamReader.readString()); setLineStart(instance, streamReader.readString()); setMethods(instance, (java.util.List) streamReader.readObject()); setStatus(instance, (erd.client.util.model.Clazz.ObjectStatus) streamReader.readObject()); setVariables(instance, (java.util.List) streamReader.readObject()); erd.client.util.model.JavaObject_FieldSerializer.deserialize(streamReader, instance); }