Class AbstractCompositeConverter

Direct Known Subclasses:
AnnotationCompositeConverter, ReflectionCompositeConverter

public class AbstractCompositeConverter extends CompositeConverter
  • Field Details

    • objectClass

      protected Class<?> objectClass
    • componentFields

      protected Field[] componentFields
  • Constructor Details

    • AbstractCompositeConverter

      public AbstractCompositeConverter(Class<?> objectClass)
  • Method Details

    • createObject

      public Object createObject()
      Description copied from class: CompositeConverter
      Create an empty composite value object.
      Specified by:
      createObject in class CompositeConverter
      Returns:
      The new composite value object
    • getComponentObject

      public Object getComponentObject(Object object, int index)
      Description copied from class: CompositeConverter
      Given the composite value object, and the component index, return the component value object.
      Specified by:
      getComponentObject in class CompositeConverter
      Parameters:
      object - The composite value object
      index - The component index
      Returns:
      The component value object
    • setComponentObject

      public void setComponentObject(Object object, int index, Object componentObject)
      Description copied from class: CompositeConverter
      Set the component value object of the composite value object
      Specified by:
      setComponentObject in class CompositeConverter
      Parameters:
      object - The composite value object
      index - The component index
      componentObject - The component value object
    • isAnonymous

      public boolean isAnonymous()
      Overrides:
      isAnonymous in class AsnConverter