Package org.bson
Class AbstractBsonWriter.Context
java.lang.Object
org.bson.AbstractBsonWriter.Context
- Direct Known Subclasses:
JsonWriter.Context
- Enclosing class:
AbstractBsonWriter
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
The context for the writer. Records the parent context, creating a bread crumb trail to trace back up to the root context of the
reader. Also records the
BsonContextType, indicating whether the writer is reading a document, array, or other
complex sub-structure.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new instance, copying values from an existing context.Context(AbstractBsonWriter.Context parentContext, BsonContextType contextType) Deprecated.Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Deprecated.Copies the values from thisContextinto a new instance.Deprecated.Gets the current context type.Deprecated.Returns the parent context.
-
Constructor Details
-
Context
Deprecated.Creates a new instance, copying values from an existing context.- Parameters:
from- theContextto copy values from
-
Context
Deprecated.Creates a new instance.- Parameters:
parentContext- the context of the parent nodecontextType- the context type.
-
-
Method Details
-
getParentContext
Deprecated.Returns the parent context. Allows users of this context object to transition to this parent context.- Returns:
- the context that came before this one
-
getContextType
Deprecated.Gets the current context type.- Returns:
- the current context type.
-
copy
Deprecated.Copies the values from thisContextinto a new instance.- Returns:
- the new instance with the same values as this context.
-