1 /***************************************************************************2 * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *3 * Please look at license.txt in info directory for more license detail. *4 **************************************************************************/5 package org.exoplatform.services.communication.sms.encoder;6 7 import org.exoplatform.services.communication.sms.common.ConvertException;8 9 /**10 * @author: Ove Ranheim11 * @email: oranheim@users.sourceforge.net12 */13 public interface Formatter {14 15 /**16 * Formatter service identifier, like Sms operator code for different17 * formats18 */19 public MessageFormat getFormat();20 21 /**22 * Convert source to wanted message body format23 */24 public Object convert(Object object) throws ConvertException;25 26 }