Class ObjectMapperModelIntrospector

java.lang.Object
dev.getelements.elements.rt.jackson.ObjectMapperModelIntrospector
All Implemented Interfaces:
ModelIntrospector

public class ObjectMapperModelIntrospector extends Object implements ModelIntrospector
  • Constructor Details

    • ObjectMapperModelIntrospector

      public ObjectMapperModelIntrospector()
  • Method Details

    • introspectClassForType

      public Type introspectClassForType(Class<?> cls)
      Description copied from interface: ModelIntrospector
      Introspects the supplied Class<?> for the supplied model.
      Specified by:
      introspectClassForType in interface ModelIntrospector
      Parameters:
      cls - the class
      Returns:
      the Type
    • introspectJavaTypeForType

      public Type introspectJavaTypeForType(com.fasterxml.jackson.databind.JavaType javaType)
    • introspectClassForModelName

      public String introspectClassForModelName(Class<?> cls, RemoteScope remoteScope)
      Description copied from interface: ModelIntrospector
      Introspects the class for the model name, but does not generate the whole model.
      Specified by:
      introspectClassForModelName in interface ModelIntrospector
      Parameters:
      cls - the Class<?> to introspect
      remoteScope - the remote scope
      Returns:
      the model name
    • introspectClassForModel

      public Model introspectClassForModel(Class<?> cls, RemoteScope remoteScope)
      Description copied from interface: ModelIntrospector
      Introspects the given Class<?>, converting the types using the supplied CodeStyle.
      Specified by:
      introspectClassForModel in interface ModelIntrospector
      Parameters:
      cls - the Class<?> to introspect
      remoteScope - the remote scope
      Returns:
      the introspection result
    • introspectProperties

      public Map<String,Property> introspectProperties(Class<?> cls, RemoteScope remoteScope)
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • setObjectMapper

      @Inject public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)