protected void verifyName ( final String expectedName ) { readBsonType ( ) ; String actualName = readName ( ) ; if ( ! actualName . equals ( expectedName ) ) { throw new BsonSerializationException ( format ( "Expected element name to be '%s', not '%s'." , expectedName , actualName ) ) ; } }
Verifies the name of the current element .