src/main/java/com/mxgraph/io/mxObjectCodec.java
protected void encodeObject(mxCodec enc, Object obj, Node node)
	{
		mxCodec.setAttribute(node, "id", enc.getId(obj));
		encodeFields(enc, obj, node);
		encodeElements(enc, obj, node);
	}
/**
	 * Encodes the value of each member in then given obj
	 * into the given node using {@link #encodeFields(mxCodec, Object, Node)}
	 * and {@link #encodeElements(mxCodec, Object, Node)}.
	 * 
	 * @param enc Codec that controls the encoding process.
	 * @param obj Object to be encoded.
	 * @param node XML node that contains the encoded object.
	 */
Encodes the value of each member in then given obj
into the given node using  #encodeFields(mxCodec, Object, Node)
and  #encodeElements(mxCodec, Object, Node).

@param enc Codec that controls the encoding process.
@param obj Object to be encoded.
@param node XML node that contains the encoded object.
Encodes the value of each member in then given obj into the given node using #encodeFields ( mxCodec Object Node ) and #encodeElements ( mxCodec Object Node ) . @param enc Codec that controls the encoding process . @param obj Object to be encoded . @param node XML node that contains the encoded object .
protected void encodeObject(mxCodec enc, Object obj, Node node)
	{
		mxCodec.setAttribute(node, "id", enc.getId(obj));
		encodeFields(enc, obj, node);
		encodeElements(enc, obj, node);
	}
protected void encodeObject ( mxCodec enc , Object obj , Node node ) { mxCodec . setAttribute ( node , "id" , enc . getId ( obj ) ) ; encodeFields ( enc , obj , node ) ; encodeElements ( enc , obj , node ) ; }
Encodes the value of each member in then given obj
 into the given node using {@link #encodeFields(mxCodec, Object, Node)}
 and {@link #encodeElements(mxCodec, Object, Node)}.
Encodes the value of each member in then given obj into the given node using { @link #encodeFields ( mxCodec Object Node ) } and { @link #encodeElements ( mxCodec Object Node ) } .