Package org.grails.datastore.bson.json
Class JsonWriter.Context
- java.lang.Object
-
- org.bson.AbstractBsonWriter.Context
-
- org.grails.datastore.bson.json.JsonWriter.Context
-
- Enclosing class:
- JsonWriter
public class JsonWriter.Context extends org.bson.AbstractBsonWriter.ContextThe context for the writer, inheriting all the values fromAbstractBsonWriter.Context, and additionally providing settings for the indentation level and whether there are any child elements at this level.
-
-
Constructor Summary
Constructors Constructor Description Context(JsonWriter.Context parentContext, org.bson.BsonContextType contextType, java.lang.String indentChars)Creates a new context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonWriter.ContextgetParentContext()
-
-
-
Constructor Detail
-
Context
public Context(JsonWriter.Context parentContext, org.bson.BsonContextType contextType, java.lang.String indentChars)
Creates a new context.- Parameters:
parentContext- the parent context that can be used for going back up to the parent levelcontextType- the type of this contextindentChars- the String to use for indentation at this level.
-
-
Method Detail
-
getParentContext
public JsonWriter.Context getParentContext()
- Overrides:
getParentContextin classorg.bson.AbstractBsonWriter.Context
-
-