/**
 * Copyright 2009 - 2014 Jörgen Lundgren
 * 
 * This file is part of org.amf4j.
 * 
 * org.amf4j is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * org.amf4j 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 Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with org.amf4j. If not, see <http://www.gnu.org/licenses/>.
 */
package org.amf4j.messaging;

/**
 * A means to translate one {@code Message} into another. One use-case would be to encode or decode {@code Message}s.
 * 
 * @since 1.0.0
 * @author Jörgen Lundgren
 */
public interface MessageTranslator {
	/**
	 * Returns a {@code Message} that represents a potentially translated version of {@code message}.
	 * 
	 * @param message the {@code Message} to translate or return as is
	 * @return a {@code Message} that represents a potentially translated version of {@code message}
	 */
	Message translate(Message message);
}