public enum BsonContextType extends Enum<BsonContextType>
| Enum Constant and Description | 
|---|
| ARRAYA BSON array. | 
| DOCUMENTA (possibly embedded) BSON document. | 
| JAVASCRIPT_WITH_SCOPEA JAVASCRIPT_WITH_SCOPE BSON value. | 
| SCOPE_DOCUMENTThe scope document of a JAVASCRIPT_WITH_SCOPE BSON value. | 
| TOP_LEVELThe top level of a BSON document. | 
| Modifier and Type | Method and Description | 
|---|---|
| static BsonContextType | valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null