enum BSONContextType extends java.lang.Enum<BSONContextType>
| Enum Constant and Description |
|---|
ARRAY
A BSON array.
|
DOCUMENT
A (possibly embedded) BSON document.
|
JAVASCRIPT_WITH_SCOPE
A JAVASCRIPT_WITH_SCOPE BSON value.
|
SCOPE_DOCUMENT
The scope document of a JAVASCRIPT_WITH_SCOPE BSON value.
|
TOP_LEVEL
The top level of a BSON document.
|
| Modifier and Type | Method and Description |
|---|---|
static BSONContextType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BSONContextType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BSONContextType TOP_LEVEL
public static final BSONContextType DOCUMENT
public static final BSONContextType ARRAY
public static final BSONContextType JAVASCRIPT_WITH_SCOPE
public static final BSONContextType SCOPE_DOCUMENT
public static BSONContextType[] values()
for (BSONContextType c : BSONContextType.values()) System.out.println(c);
public static BSONContextType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null