Class JsonFormat

java.lang.Object
overit.geocall.model.format.JsonFormat
All Implemented Interfaces:
Serializable, DocumentFormat
Direct Known Subclasses:
XmlFormat

@Component @Qualifier("json") public class JsonFormat extends Object implements DocumentFormat
JasonFormat is a mapper for json
See Also:
  • Constructor Details

    • JsonFormat

      public JsonFormat()
  • Method Details

    • newMapper

      public ObjectMapper newMapper(boolean nullValues)
      Description copied from interface: DocumentFormat
      Creates a new mapper
      Specified by:
      newMapper in interface DocumentFormat
      Parameters:
      nullValues - boolean value indicatind if null value should be kept
      Returns:
      A new ObjectMapper
    • initMapper

      public void initMapper(ObjectMapper om, boolean nullValues)
    • getRootName4

      public String getRootName4(Object o)
      Description copied from interface: DocumentFormat
      Returns the name of the class
      Specified by:
      getRootName4 in interface DocumentFormat
      Parameters:
      o - The object to get the root name
      Returns:
      The name of the class