public enum BsonContextType extends java.lang.Enum<BsonContextType>
| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static BsonContextType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static BsonContextType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值