src/main/java/com/mxgraph/io/mxObjectCodec.java
protected void writeAttribute(mxCodec enc, Object obj, String attr,
			Object value, Node node)
	{
		value = convertValueToXml(value);

		if (isPrimitiveValue(value))
		{
			writePrimitiveAttribute(enc, obj, attr, value, node);
		}
		else
		{
			writeComplexAttribute(enc, obj, attr, value, node);
		}
	}
/**
	 * Writes the given value into node using writePrimitiveAttribute
	 * or writeComplexAttribute depending on the type of the value.
	 */
Writes the given value into node using writePrimitiveAttribute
or writeComplexAttribute depending on the type of the value.
Writes the given value into node using writePrimitiveAttribute or writeComplexAttribute depending on the type of the value .
protected void writeAttribute(mxCodec enc, Object obj, String attr,
			Object value, Node node)
	{
		value = convertValueToXml(value);
		if (isPrimitiveValue(value))
		{
			writePrimitiveAttribute(enc, obj, attr, value, node);
		}
		else
		{
			writeComplexAttribute(enc, obj, attr, value, node);
		}
	}
protected void writeAttribute ( mxCodec enc , Object obj , String attr , Object value , Node node ) { value = convertValueToXml ( value ) ; if ( isPrimitiveValue ( value ) ) { writePrimitiveAttribute ( enc , obj , attr , value , node ) ; } else { writeComplexAttribute ( enc , obj , attr , value , node ) ; } }
Writes the given value into node using writePrimitiveAttribute
 or writeComplexAttribute depending on the type of the value.
Writes the given value into node using writePrimitiveAttribute or writeComplexAttribute depending on the type of the value .