|
JSON Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.JsonWriteContext
public abstract class JsonWriteContext
Context object is used to keep track of relative logical position of the current event when generating json content.
Nested Class Summary | |
---|---|
static class |
JsonWriteContext.Type
Type of the context |
Field Summary | |
---|---|
protected int |
mIndex
Index of the currently processed entry. |
protected JsonWriteContext |
mParent
|
static int |
STATUS_EXPECT_NAME
|
static int |
STATUS_EXPECT_VALUE
|
static int |
STATUS_OK_AFTER_COLON
|
static int |
STATUS_OK_AFTER_COMMA
|
static int |
STATUS_OK_AFTER_SPACE
|
static int |
STATUS_OK_AS_IS
|
Constructor Summary | |
---|---|
JsonWriteContext(JsonWriteContext parent)
|
Method Summary | |
---|---|
protected abstract void |
appendDesc(StringBuilder sb)
|
JsonWriteContext |
createChildArrayContext()
|
JsonWriteContext |
createChildObjectContext()
|
static JsonWriteContext |
createRootContext()
|
int |
getCurrentIndex()
|
int |
getEntryCount()
|
JsonWriteContext |
getParent()
|
abstract JsonWriteContext.Type |
getType()
|
boolean |
inArray()
|
boolean |
inObject()
|
boolean |
isRoot()
|
String |
toString()
Overridden to provide developer writeable "JsonPath" representation of the context. |
abstract int |
writeFieldName(String name)
Method that writer is to call before it writes a field name. |
abstract int |
writeValue()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_OK_AS_IS
public static final int STATUS_OK_AFTER_COMMA
public static final int STATUS_OK_AFTER_COLON
public static final int STATUS_OK_AFTER_SPACE
public static final int STATUS_EXPECT_VALUE
public static final int STATUS_EXPECT_NAME
protected final JsonWriteContext mParent
protected int mIndex
Constructor Detail |
---|
public JsonWriteContext(JsonWriteContext parent)
Method Detail |
---|
public static JsonWriteContext createRootContext()
public final JsonWriteContext createChildArrayContext()
public final JsonWriteContext createChildObjectContext()
public final JsonWriteContext getParent()
public final boolean isRoot()
public final int getEntryCount()
public final int getCurrentIndex()
public abstract JsonWriteContext.Type getType()
public abstract int writeFieldName(String name)
public abstract int writeValue()
public boolean inArray()
public boolean inObject()
protected abstract void appendDesc(StringBuilder sb)
public final String toString()
toString
in class Object
|
JSON Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |