net.sf.json.util
public abstract class CycleDetectionStrategy extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CycleDetectionStrategy |
LENIENT
Returns empty array and null object
|
static CycleDetectionStrategy |
STRICT
Throws a JSONException
|
Constructor and Description |
---|
CycleDetectionStrategy() |
Modifier and Type | Method and Description |
---|---|
abstract JSONArray |
handleRepeatedReferenceAsArray(java.lang.Object reference)
Handle a repeated reference
Must return a valid JSONArray or null. |
abstract JSONObject |
handleRepeatedReferenceAsObject(java.lang.Object reference)
Handle a repeated reference
Must return a valid JSONObject or null. |
public static final CycleDetectionStrategy LENIENT
public static final CycleDetectionStrategy STRICT
public abstract JSONArray handleRepeatedReferenceAsArray(java.lang.Object reference)
reference
- the repeated reference.public abstract JSONObject handleRepeatedReferenceAsObject(java.lang.Object reference)
reference
- the repeated reference.Copyright © 2006-2014 Json-lib. All Rights Reserved.