src/main/java/com/mxgraph/io/mxObjectCodec.java
protected void decodeAttribute(mxCodec dec, Node attr, Object obj)
	{
		String name = attr.getNodeName();

		if (!name.equalsIgnoreCase("as") && !name.equalsIgnoreCase("id"))
		{
			Object value = attr.getNodeValue();
			String fieldname = getFieldName(name);

			if (isReference(obj, fieldname, value, false))
			{
				Object tmp = dec.getObject(String.valueOf(value));

				if (tmp == null)
				{
					log.log(Level.FINEST, "mxObjectCodec.decode: No object for "
							+ getName() + "." + fieldname + "=" + value);
					return; // exit
				}

				value = tmp;
			}

			if (!isExcluded(obj, fieldname, value, false))
			{
				setFieldValue(obj, fieldname, value);
			}
		}
	}
/**
	 * Reads the given attribute into the specified object.
	 */
Reads the given attribute into the specified object.
Reads the given attribute into the specified object .
protected void decodeAttribute(mxCodec dec, Node attr, Object obj)
	{
		String name = attr.getNodeName();
		if (!name.equalsIgnoreCase("as") && !name.equalsIgnoreCase("id"))
		{
			Object value = attr.getNodeValue();
			String fieldname = getFieldName(name);
			if (isReference(obj, fieldname, value, false))
			{
				Object tmp = dec.getObject(String.valueOf(value));
				if (tmp == null)
				{
					log.log(Level.FINEST, "mxObjectCodec.decode: No object for "
							+ getName() + "." + fieldname + "=" + value);
					return; 
				}
				value = tmp;
			}
			if (!isExcluded(obj, fieldname, value, false))
			{
				setFieldValue(obj, fieldname, value);
			}
		}
	}
protected void decodeAttribute ( mxCodec dec , Node attr , Object obj ) { String name = attr . getNodeName ( ) ; if ( ! name . equalsIgnoreCase ( "as" ) && ! name . equalsIgnoreCase ( "id" ) ) { Object value = attr . getNodeValue ( ) ; String fieldname = getFieldName ( name ) ; if ( isReference ( obj , fieldname , value , false ) ) { Object tmp = dec . getObject ( String . valueOf ( value ) ) ; if ( tmp == null ) { log . log ( Level . FINEST , "mxObjectCodec.decode: No object for " + getName ( ) + "." + fieldname + "=" + value ) ; return ; } value = tmp ; } if ( ! isExcluded ( obj , fieldname , value , false ) ) { setFieldValue ( obj , fieldname , value ) ; } } }
Reads the given attribute into the specified object.
Reads the given attribute into the specified object .
// exit