org.test4j.json.helper
类 JSONSingle

java.lang.Object
  继承者 org.test4j.json.helper.JSONSingle
所有已实现的接口:
Serializable, JSONObject

public class JSONSingle
extends Object
implements JSONObject

单值对象

作者:
darui.wudr
另请参见:
序列化表格

字段摘要
 
从接口 org.test4j.json.helper.JSONObject 继承的字段
JSON_ClazzFlag, JSON_ReferFlag, JSON_ValueFlag
 
构造方法摘要
JSONSingle()
           
JSONSingle(boolean quote)
           
JSONSingle(String value)
           
 
方法摘要
 String description()
          描述JSON对象的内容
区别于toString()
 boolean equals(Object obj)
           
 int hashCode()
           
static JSONSingle newInstance(Object value)
          构造单值json对象
 void setBeginIndex(int beginIndex)
           
 void setEndIndex(int endIndex)
           
 void setValue(String value)
           
 String toClazzName()
           
 Object toPrimitiveValue()
          将value值转换为原始类型
 String toReferenceID()
           
 String toString()
           
 String toStringValue()
          将JSONValue转换为字符串
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

JSONSingle

public JSONSingle()

JSONSingle

public JSONSingle(String value)

JSONSingle

public JSONSingle(boolean quote)
方法详细信息

setValue

public void setValue(String value)

setBeginIndex

public void setBeginIndex(int beginIndex)

setEndIndex

public void setEndIndex(int endIndex)

toString

public String toString()
覆盖:
Object 中的 toString

description

public String description()
从接口 JSONObject 复制的描述
描述JSON对象的内容
区别于toString()

指定者:
接口 JSONObject 中的 description
返回:

toStringValue

public String toStringValue()
将JSONValue转换为字符串

返回:

toPrimitiveValue

public Object toPrimitiveValue()
将value值转换为原始类型

返回:

toClazzName

public String toClazzName()

toReferenceID

public String toReferenceID()

hashCode

public int hashCode()
覆盖:
Object 中的 hashCode

equals

public boolean equals(Object obj)
覆盖:
Object 中的 equals

newInstance

public static JSONSingle newInstance(Object value)
构造单值json对象

参数:
value -
返回:


Copyright © 2013. All rights reserved.