Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
org.bson.json |
JSON serialization and deserialization.
|
Modifier and Type | Method and Description |
---|---|
void |
LevelCountingBsonWriter.writeRegularExpression(BsonRegularExpression regularExpression) |
void |
LevelCountingBsonWriter.writeRegularExpression(java.lang.String name,
BsonRegularExpression regularExpression) |
Modifier and Type | Method and Description |
---|---|
BsonRegularExpression |
BsonValue.asRegularExpression()
Gets this value as a BsonRegularExpression if it is one, otherwise throws exception
|
protected BsonRegularExpression |
BsonDocumentReader.doReadRegularExpression() |
protected BsonRegularExpression |
BsonBinaryReader.doReadRegularExpression() |
protected abstract BsonRegularExpression |
AbstractBsonReader.doReadRegularExpression()
Handles the logic to read a regular expression
|
BsonRegularExpression |
BsonDocument.getRegularExpression(java.lang.Object key)
Gets the value of the key if it is a BsonRegularExpression, or throws if not.
|
BsonRegularExpression |
BsonDocument.getRegularExpression(java.lang.Object key,
BsonRegularExpression defaultValue)
If the document does not contain the given key, return the given default value.
|
BsonRegularExpression |
BsonReader.readRegularExpression()
Reads a BSON regular expression from the reader.
|
BsonRegularExpression |
AbstractBsonReader.readRegularExpression() |
BsonRegularExpression |
BsonReader.readRegularExpression(java.lang.String name)
Reads a BSON regular expression element from the reader.
|
BsonRegularExpression |
AbstractBsonReader.readRegularExpression(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
BsonDocumentWriter.doWriteRegularExpression(BsonRegularExpression value) |
void |
BsonBinaryWriter.doWriteRegularExpression(BsonRegularExpression value) |
protected abstract void |
AbstractBsonWriter.doWriteRegularExpression(BsonRegularExpression value)
Handles the logic of writing a regular expression
|
void |
BSONCallbackAdapter.doWriteRegularExpression(BsonRegularExpression value) |
BsonRegularExpression |
BsonDocument.getRegularExpression(java.lang.Object key,
BsonRegularExpression defaultValue)
If the document does not contain the given key, return the given default value.
|
void |
BsonWriter.writeRegularExpression(BsonRegularExpression regularExpression)
Writes a BSON regular expression to the writer.
|
void |
AbstractBsonWriter.writeRegularExpression(BsonRegularExpression regularExpression) |
void |
BsonWriter.writeRegularExpression(java.lang.String name,
BsonRegularExpression regularExpression)
Writes a BSON regular expression element to the writer.
|
void |
AbstractBsonWriter.writeRegularExpression(java.lang.String name,
BsonRegularExpression regularExpression) |
Modifier and Type | Method and Description |
---|---|
BsonRegularExpression |
BsonRegularExpressionCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<BsonRegularExpression> |
BsonRegularExpressionCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonRegularExpressionCodec.encode(BsonWriter writer,
BsonRegularExpression value,
EncoderContext encoderContext) |
private static int |
PatternCodec.getOptionsAsInt(BsonRegularExpression regularExpression) |
Modifier and Type | Field and Description |
---|---|
private Converter<BsonRegularExpression> |
JsonWriterSettings.regularExpressionConverter |
private Converter<BsonRegularExpression> |
JsonWriterSettings.Builder.regularExpressionConverter |
Modifier and Type | Method and Description |
---|---|
protected BsonRegularExpression |
JsonReader.doReadRegularExpression() |
private BsonRegularExpression |
JsonReader.visitNewRegularExpressionExtendedJson() |
private BsonRegularExpression |
JsonReader.visitRegularExpressionConstructor() |
private BsonRegularExpression |
JsonReader.visitRegularExpressionExtendedJson(java.lang.String firstKey) |
Modifier and Type | Method and Description |
---|---|
Converter<BsonRegularExpression> |
JsonWriterSettings.getRegularExpressionConverter()
A converter from BSON RegularExpression values to JSON.
|
Modifier and Type | Method and Description |
---|---|
void |
ShellRegularExpressionConverter.convert(BsonRegularExpression value,
StrictJsonWriter writer) |
void |
LegacyExtendedJsonRegularExpressionConverter.convert(BsonRegularExpression value,
StrictJsonWriter writer) |
void |
ExtendedJsonRegularExpressionConverter.convert(BsonRegularExpression value,
StrictJsonWriter writer) |
void |
JsonWriter.doWriteRegularExpression(BsonRegularExpression regularExpression) |
Modifier and Type | Method and Description |
---|---|
JsonWriterSettings.Builder |
JsonWriterSettings.Builder.regularExpressionConverter(Converter<BsonRegularExpression> regularExpressionConverter)
Sets the converter from BSON Regular Expression values to JSON.
|