LogServices.java

00001 /*
00002  * OpenMobileIS - a free Java(TM) Framework for mobile applications Java(TM)
00003  * Copyright (C) 2004-2006 Philippe Delrieu
00004  * All rights reserved.
00005  * Contact: pdelrieu@openmobileis.org
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00020  * USA
00021  *
00022  *  Author : Philippe Delrieu
00023  *  
00024  *  Modifications :
00025  *  2004 Creation P.Delrieu
00026  * 
00027  */
00028 
00029 package org.openmobileis.common.util.log;
00030 
00037  public class LogServices {
00038   public final static int SYNCHROSERVICE = 1;
00039   public final static int SECURITYSERVICE = 2;
00040    public final static int SERVERSERVICE = 3;
00041   public final static int DEFAULTSERVICE = 4;
00042   public final static int DATABASESERVICE = 5;
00043   public final static int SERVICESERVICE = 6;
00044   public final static int WEBSERVICE = 7;
00045 
00046   public final static String toString(int service)  {
00047     String ret = "";
00048     switch (service)  {
00049       case WEBSERVICE :
00050         ret = "WebService";
00051         break;
00052       case SYNCHROSERVICE :
00053         ret = "SynchroService";
00054         break;
00055       case SECURITYSERVICE :
00056         ret = "SecurityService";
00057         break;
00058       case SERVERSERVICE :
00059         ret = "SERVERSERVICE";
00060         break;
00061       case DEFAULTSERVICE :
00062         ret = "DEFAULTSERVICE";
00063         break;
00064       case DATABASESERVICE :
00065         ret = "DATABASESERVICE";
00066         break;
00067       case SERVICESERVICE :
00068           ret = "ServiceService";
00069           break;
00070       default :
00071         ret = "UKNOWNSERVICE";
00072         break;
00073     }
00074     return ret;
00075   }
00076 
00077 }

Generated on Mon Dec 4 11:03:27 2006 for OpenMobileIS by  doxygen 1.5.1-p1