Class ObjectTypeMapperImpl

    • Constructor Detail

      • ObjectTypeMapperImpl

        public ObjectTypeMapperImpl​(Class<?> handledClass,
                                    String handledType)
    • Method Detail

      • getHandledObjectType

        public final Class<?> getHandledObjectType()
        Description copied from interface: ObjectTypeMapper
        Returns the java class handled by this handler.
        Specified by:
        getHandledObjectType in interface ObjectTypeMapper
        Returns:
        the java class handled by this handler
      • getHandledSerialType

        public final String getHandledSerialType()
        Description copied from interface: ObjectTypeMapper
        Returns the type of object being serialized.
        Specified by:
        getHandledSerialType in interface ObjectTypeMapper
        Returns:
        an abstract type name that is intended to be language neutral
      • isMatchSubclasses

        public boolean isMatchSubclasses()
        Description copied from interface: ObjectTypeMapper
        Should we match subclasses of the given class or only the exact class?
        Specified by:
        isMatchSubclasses in interface ObjectTypeMapper
        Returns:
        whether subclasses of the given class or only the exact class should be matched