java.lang.Object
org.evomaster.client.java.controller.mongo.utils.BsonHelper

public class BsonHelper extends Object
  • Constructor Details

    • BsonHelper

      public BsonHelper()
  • Method Details

    • newDocument

      public static Object newDocument(Object document)
    • appendToDocument

      public static void appendToDocument(Object document, String fieldName, Object value)
    • getValue

      public static Object getValue(Object document, String fieldName)
    • keySet

      public static Set<String> keySet(Object document)
    • documentContainsField

      public static Boolean documentContainsField(Object document, String field)
    • documentKeys

      public static Set<String> documentKeys(Object document)
    • isDocument

      public static Boolean isDocument(Object value)
    • getType

      public static String getType(Object bsonType)
    • getTypeFromNumber

      public static Object getTypeFromNumber(Integer number)
    • getTypeFromAlias

      public static Object getTypeFromAlias(String alias)