com.mxgraph.io.mxTerminalChangeCodec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AptSpringProcessor Show documentation
Show all versions of AptSpringProcessor Show documentation
This project contains the apt processor that implements all the checks enumerated in @Verify. It is a self contained, and
shaded jar.
The newest version!
/**
* Copyright (c) 2006, Gaudenz Alder
*/
package com.mxgraph.io;
import java.util.Map;
import org.w3c.dom.Node;
import com.mxgraph.model.mxGraphModel.mxTerminalChange;
/**
* Codec for mxChildChanges. This class is created and registered
* dynamically at load time and used implicitely via mxCodec
* and the mxCodecRegistry.
*/
public class mxTerminalChangeCodec extends mxObjectCodec
{
/**
* Constructs a new model codec.
*/
public mxTerminalChangeCodec()
{
this(new mxTerminalChange(), new String[] { "model", "previous" },
new String[] { "cell", "terminal" }, null);
}
/**
* Constructs a new model codec for the given arguments.
*/
public mxTerminalChangeCodec(Object template, String[] exclude,
String[] idrefs, Map mapping)
{
super(template, exclude, idrefs, mapping);
}
/* (non-Javadoc)
* @see com.mxgraph.io.mxObjectCodec#afterDecode(com.mxgraph.io.mxCodec, org.w3c.dom.Node, java.lang.Object)
*/
@Override
public Object afterDecode(mxCodec dec, Node node, Object obj)
{
if (obj instanceof mxTerminalChange)
{
mxTerminalChange change = (mxTerminalChange) obj;
change.setPrevious(change.getTerminal());
}
return obj;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy