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

net.sourceforge.jweb.json.JSONElement Maven / Gradle / Ivy

Go to download

本项目主要弥补在使用mybatis3+springmvc+jquery easyui快速搭建web应用系统是遇到的框架不足. 主要工作包括: 1,扩展了ApplicationContextAware,通过单例注入spring容器,提供spring容器外的bean获取方法 2,扩展了apache shiro框架,统一了安全结构 3,扩展了mybatis3拦截器,在两个拦截器中自动完成分页注入,实现内存分页。 4,分页设计数据库方言 5,提供了一个easyuigrid的模型 6,提供了java泛型的jstl 7, xml工具包等一些小工具

The newest version!
package net.sourceforge.jweb.json;

public abstract class JSONElement {

	/**
	 * this object name
	 */
	private String name;
	private String quotoString = "'";
	private Boolean quotoName = null;
	private boolean quotoValue = true;
	private boolean strict = true;

	public final String getName() {
		return name;
	}

	public final void setName(String name) {
		this.name = name;
	}

	public final String getQuotoString() {
		return quotoString;
	}

	public final void setQuotoString(String quotoString) {
		this.quotoString = quotoString;
	}

	public final boolean isQuotoName() {
		return quotoName == null || quotoName;
	}

	public final boolean quotoNameSet() {
		return quotoName != null;
	}

	public final void setQuotoName(boolean quotoName) {
		this.quotoName = quotoName;
	}

	public final boolean isQuotoValue() {
		return quotoValue;
	}

	public final void setQuotoValue(boolean quotoValue) {
		this.quotoValue = quotoValue;
	}
	/**
	 * if set strict mode, then json value will escape char such as ' ' as \\t ...
	 * @return
	 */
	public final boolean isStrict() {
		return strict;
	}
	/**
	 * if set strict mode, then json value will escape char such as ' ' as \\t ...
	 * @return
	 */
	public final void setStrict(boolean strict) {
		this.strict = strict;
	}

	/**
	 * Produce a string in double quotes with backslash sequences in all the right
	 * places. A backslash will be inserted within 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy