Module gg.xp.xivapi

Class ObjectFieldMapper<X>

java.lang.Object
gg.xp.xivapi.mappers.objects.ObjectFieldMapper<X>
Type Parameters:
X - The object type
All Implemented Interfaces:
FieldMapper<X>

public class ObjectFieldMapper<X> extends Object implements FieldMapper<X>
Mapper for full sheet objects, both top-level and nested.

The general flow is:

  • Look at the class and find the common methods (primary key, row id, schema version)
  • Look at every non-default method and find an appropriate field mapper for it, and store this into a map.
  • When we want to actually deserialize an object, consult this map and construct a proxy object.
  • Constructor Details

    • ObjectFieldMapper

      public ObjectFieldMapper(Class<X> cls, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details