use of com.mongodb.internal.validator.MappedFieldNameValidator in project mongo-java-driver by mongodb.
the class FindAndReplaceOperation method getValidator.
private FieldNameValidator getValidator() {
Map<String, FieldNameValidator> map = new HashMap<String, FieldNameValidator>();
map.put("update", new CollectibleDocumentFieldNameValidator());
return new MappedFieldNameValidator(new NoOpFieldNameValidator(), map);
}
use of com.mongodb.internal.validator.MappedFieldNameValidator in project mongo-java-driver by mongodb.
the class UpdateCommandMessage method getFieldNameValidator.
@Override
protected FieldNameValidator getFieldNameValidator() {
Map<String, FieldNameValidator> rootMap = new HashMap<String, FieldNameValidator>();
rootMap.put("updates", new UpdatesValidator());
return new MappedFieldNameValidator(new NoOpFieldNameValidator(), rootMap);
}
use of com.mongodb.internal.validator.MappedFieldNameValidator in project mongo-java-driver by mongodb.
the class FindAndUpdateOperation method getValidator.
private FieldNameValidator getValidator() {
Map<String, FieldNameValidator> map = new HashMap<String, FieldNameValidator>();
map.put("update", new UpdateFieldNameValidator());
return new MappedFieldNameValidator(new NoOpFieldNameValidator(), map);
}
use of com.mongodb.internal.validator.MappedFieldNameValidator in project mongo-java-driver by mongodb.
the class InsertCommandMessage method getFieldNameValidator.
@Override
protected FieldNameValidator getFieldNameValidator() {
Map<String, FieldNameValidator> map = new HashMap<String, FieldNameValidator>();
map.put("documents", new CollectibleDocumentFieldNameValidator());
return new MappedFieldNameValidator(new NoOpFieldNameValidator(), map);
}
Aggregations