All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tsc9526.monalisa.tools.converters.Conversion Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
/*******************************************************************************************
 *	Copyright (c) 2016, zzg.zhou([email protected])
 * 
 *  Monalisa 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.

 *	This program 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 this program.  If not, see .
 *******************************************************************************************/
package com.tsc9526.monalisa.tools.converters;

/**
 * 
 * @author zzg.zhou([email protected])
 */
public interface Conversion {
	public static String DEFAULT_DATETIME_FORMAT="yyyy-MM-dd HH:mm:ss";
	
	public static final String TYPE_OBJECT  = "object"; 
	public static final String TYPE_STRING  = "string"; 
	public static final String TYPE_INT     = "int"; 
	public static final String TYPE_INTEGER = "integer"; 
	public static final String TYPE_LONG    = "long"; 
	public static final String TYPE_FLOAT   = "float";
	public static final String TYPE_DOUBLE  = "double";
	public static final String TYPE_SHORT   = "short";
	public static final String TYPE_BOOLEAN = "boolean";
	public static final String TYPE_BYTE    = "byte";
	public static final String TYPE_CHAR    = "char";
	public static final String TYPE_CHARACTER   = "character";
	public static final String TYPE_BIG_DECIMAL = "bigdecimal";
	public static final String TYPE_DATETIME    = "datetime";
	
	public static final String TYPE_ARRAYS      = "arrays"; 
	public static final String TYPE_JSON        = "json"; 
	public static final String TYPE_ENUM        = "enum"; 
	
	public Object[] getTypeKeys();
 
	public T convert(Object value, Class type);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy