- All Superinterfaces:
JsonWriter
- All Known Implementing Classes:
WriteJson
Internal API extensions for JSON writing of Bean properties.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbeginAssocMany(String name) Start a Many.voidbeginAssocManyMap(String name, boolean elementCollection) Start a Many.voidbeginAssocOne(String name, EntityBean bean) Start an assoc one path.voidEnd a Many.voidendAssocManyMap(boolean elementCollection) End a Many.voidEnd an assoc one path.voidflush()Flush the buffer.includeMany(String name) Return true if the many property should be included.booleanparentBean(Object value) Return true if the value is a parent bean.voidPop the parent of a ToMany.voidpushParentBeanMany(EntityBean bean) Push the parent bean of a ToMany.voidtoJson(String name, Collection<?> collection) Write the collection.<T> voidwriteBean(BeanDescriptor<T> desc, EntityBean bean) Write the bean properties.voidwriteValueUsingObjectMapper(String name, Object value) Write value using underlying Jaskson object mapper if available.Methods inherited from interface io.ebean.text.json.JsonWriter
gen, isIncludeEmpty, isIncludeNull, writeBinary, writeBinaryField, writeBoolean, writeBooleanField, writeEndArray, writeEndObject, writeFieldName, writeNull, writeNullField, writeNumber, writeNumber, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeRaw, writeRawValue, writeStartArray, writeStartArray, writeStartObject, writeStartObject, writeString, writeStringField
-
Method Details
-
flush
Flush the buffer.- Throws:
IOException
-
parentBean
Return true if the value is a parent bean. -
beginAssocOne
Start an assoc one path. -
endAssocOne
void endAssocOne()End an assoc one path. -
includeMany
Return true if the many property should be included. -
pushParentBeanMany
Push the parent bean of a ToMany. -
popParentBeanMany
void popParentBeanMany()Pop the parent of a ToMany. -
toJson
Write the collection. -
beginAssocMany
Start a Many. -
endAssocMany
void endAssocMany()End a Many. -
beginAssocManyMap
Start a Many. -
endAssocManyMap
void endAssocManyMap(boolean elementCollection) End a Many. -
writeValueUsingObjectMapper
Write value using underlying Jaskson object mapper if available. -
writeBean
Write the bean properties.
-