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

org.frameworkset.util.annotations.wraper.PathVariableWraper Maven / Gradle / Ivy

Go to download

bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com

There is a newer version: 6.2.7
Show newest version
/**
 *  Copyright 2008 biaoping.yin
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.  
 */
package org.frameworkset.util.annotations.wraper;

import java.util.Locale;

import org.frameworkset.util.annotations.AnnotationUtils;
import org.frameworkset.util.annotations.PathVariable;

import com.frameworkset.util.SimpleStringUtil;

/**
 * 

PathVariableWraper.java

*

Description:

*

bboss workgroup

*

Copyright (c) 2005-2013

* * @Date 2013年10月3日 * @author biaoping.yin * @version 1.0 */ public class PathVariableWraper { private String value; private String editor; private String defaultvalue; /** * 解码字符集 * @return */ private String decodeCharset; /** * 参数原始字符集 * @return */ private String charset; /** * 参数转换字符集 * @return */ private String convertcharset; /** * 指定日期格式 * @return */ private String dateformat; private Locale locale; public PathVariableWraper(PathVariable pv) { value = pv.value(); editor = pv.editor(); defaultvalue = AnnotationUtils.converDefaultValue(pv.defaultvalue()); /** * 解码字符集 * @return */ decodeCharset = AnnotationUtils.converDefaultValue(pv.decodeCharset()); /** * 参数原始字符集 * @return */ charset = AnnotationUtils.converDefaultValue(pv.charset()); /** * 参数转换字符集 * @return */ convertcharset = AnnotationUtils.converDefaultValue(pv.convertcharset()); /** * 指定日期格式 * @return */ dateformat = AnnotationUtils.converDefaultValue(pv.dateformat()); if(SimpleStringUtil.isNotEmpty(pv.locale() )) { try { locale = new Locale(pv.locale()); } catch(Exception e) { } } } public String value(){ return this.value; } public String editor(){ return this.editor; } public String defaultvalue(){ return this.defaultvalue; } /** * 解码字符集 * @return */ public String decodeCharset(){ return this.decodeCharset; } /** * 参数原始字符集 * @return */ public String charset(){ return this.charset; } /** * 参数转换字符集 * @return */ public String convertcharset(){ return this.convertcharset; } /** * 指定日期格式 * @return */ public String dateformat(){ return this.dateformat; } public Locale getLocale() { return locale; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy