host.anzo.simon.codec.messages.MsgToString Maven / Gradle / Ivy
/*
* Copyright (C) 2008 Alexander Christian . All rights reserved.
*
* This file is part of SIMON.
*
* SIMON is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SIMON is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SIMON. If not, see .
*/
package host.anzo.simon.codec.messages;
/**
* ToString
message
*
* @author ACHR
*/
public class MsgToString extends AbstractMessage {
private static final long serialVersionUID = 1L;
String remoteObjectName;
public MsgToString() {
super(SimonMessageConstants.MSG_TOSTRING);
}
public String getRemoteObjectName() {
return remoteObjectName;
}
public void setRemoteObjectName(String remoteObjectName) {
this.remoteObjectName = remoteObjectName;
}
@Override
public String toString() {
// it is a good practice to create toString() method on message classes.
return getSequence() + ":MsgToString(ron=" + remoteObjectName + ")";
}
}