src/main/java/com/mxgraph/io/mxObjectCodec.java
protected void decodeChild(mxCodec dec, Node child, Object obj)
	{
		String fieldname = getFieldName(((Element) child).getAttribute("as"));

		if (fieldname == null || !isExcluded(obj, fieldname, child, false))
		{
			Object template = getFieldTemplate(obj, fieldname, child);
			Object value = null;

			if (child.getNodeName().equals("add"))
			{
				value = ((Element) child).getAttribute("value");

				if (value == null)
				{
					value = child.getTextContent();
				}
			}
			else
			{
				value = dec.decode(child, template);
				// log.log(Level.FINEST, "Decoded " + child.getNodeName() + "."
				// + fieldname + "=" + value);
			}

			addObjectValue(obj, fieldname, value, template);
		}
	}
/**
	 * Reads the specified child into the given object.
	 */
Reads the specified child into the given object.
Reads the specified child into the given object .
protected void decodeChild(mxCodec dec, Node child, Object obj)
	{
		String fieldname = getFieldName(((Element) child).getAttribute("as"));
		if (fieldname == null || !isExcluded(obj, fieldname, child, false))
		{
			Object template = getFieldTemplate(obj, fieldname, child);
			Object value = null;
			if (child.getNodeName().equals("add"))
			{
				value = ((Element) child).getAttribute("value");
				if (value == null)
				{
					value = child.getTextContent();
				}
			}
			else
			{
				value = dec.decode(child, template);
			}
			addObjectValue(obj, fieldname, value, template);
		}
	}
protected void decodeChild ( mxCodec dec , Node child , Object obj ) { String fieldname = getFieldName ( ( ( Element ) child ) . getAttribute ( "as" ) ) ; if ( fieldname == null || ! isExcluded ( obj , fieldname , child , false ) ) { Object template = getFieldTemplate ( obj , fieldname , child ) ; Object value = null ; if ( child . getNodeName ( ) . equals ( "add" ) ) { value = ( ( Element ) child ) . getAttribute ( "value" ) ; if ( value == null ) { value = child . getTextContent ( ) ; } } else { value = dec . decode ( child , template ) ; } addObjectValue ( obj , fieldname , value , template ) ; } }
Reads the specified child into the given object.
Reads the specified child into the given object .
// log.log(Level.FINEST, "Decoded " + child.getNodeName() + "." // + fieldname + "=" + value);