public String toString() { return this.getClass().getSimpleName() + "[" + messageType.name() + ": " + org.feature.multi.perspective.classification.resource.clt.util.CltStringUtil.explode( arguments, ", ") + "]"; }
public String serialize() { java.util.List<String> parts = new java.util.ArrayList<String>(); parts.add(messageType.name()); for (String argument : arguments) { parts.add(argument); } return org.feature.multi.perspective.classification.resource.clt.util.CltStringUtil.encode( DELIMITER, parts); }
public static CltDebugMessage deserialize(String response) { java.util.List<String> parts = org.feature.multi.perspective.classification.resource.clt.util.CltStringUtil.decode( response, DELIMITER); String messageType = parts.get(0); String[] arguments = new String[parts.size() - 1]; for (int i = 1; i < parts.size(); i++) { arguments[i - 1] = parts.get(i); } org.feature.multi.perspective.classification.resource.clt.debug.ECltDebugMessageTypes type = org.feature.multi.perspective.classification.resource.clt.debug.ECltDebugMessageTypes .valueOf(messageType); CltDebugMessage message = new CltDebugMessage(type, arguments); return message; }