src/main/java/com/mxgraph/io/mxCodecRegistry.java
public static mxObjectCodec register(mxObjectCodec codec)
	{
		if (codec != null)
		{
			String name = codec.getName();
			codecs.put(name, codec);

			String classname = getName(codec.getTemplate());

			if (!classname.equals(name))
			{
				addAlias(classname, name);
			}
		}

		return codec;
	}
/**
	 * Registers a new codec and associates the name of the template constructor
	 * in the codec with the codec object. Automatically creates an alias if the
	 * codename and the classname are not equal.
	 */
Registers a new codec and associates the name of the template constructor
in the codec with the codec object. Automatically creates an alias if the
codename and the classname are not equal.
Registers a new codec and associates the name of the template constructor in the codec with the codec object . Automatically creates an alias if the codename and the classname are not equal .
public static mxObjectCodec register(mxObjectCodec codec)
	{
		if (codec != null)
		{
			String name = codec.getName();
			codecs.put(name, codec);
			String classname = getName(codec.getTemplate());
			if (!classname.equals(name))
			{
				addAlias(classname, name);
			}
		}
		return codec;
	}
public static mxObjectCodec register ( mxObjectCodec codec ) { if ( codec != null ) { String name = codec . getName ( ) ; codecs . put ( name , codec ) ; String classname = getName ( codec . getTemplate ( ) ) ; if ( ! classname . equals ( name ) ) { addAlias ( classname , name ) ; } } return codec ; }
Registers a new codec and associates the name of the template constructor
 in the codec with the codec object.
Registers a new codec and associates the name of the template constructor in the codec with the codec object .