Class NameMappingParser


  • public class NameMappingParser
    extends java.lang.Object
    Parses external name mappings from a JSON representation.
     [ { "field-id": 1, "names": ["id", "record_id"] },
       { "field-id": 2, "names": ["data"] },
       { "field-id": 3, "names": ["location"], "fields": [
           { "field-id": 4, "names": ["latitude", "lat"] },
           { "field-id": 5, "names": ["longitude", "long"] }
         ] } ]
     
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static NameMapping fromJson​(java.lang.String json)  
      static java.lang.String toJson​(NameMapping mapping)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toJson

        public static java.lang.String toJson​(NameMapping mapping)
      • fromJson

        public static NameMapping fromJson​(java.lang.String json)