Interface ILcdPropertyRetriever

All Known Implementing Classes:
TLcdSelfPropertyRetriever

public interface ILcdPropertyRetriever
This interface allows to abstract the way a property is obtained from a given object.

For most use-cases, there is no need to implement this interface yourself. Instead, use the ILcdPropertyRetrieverProvider.createDefaultPropertyRetrieverProvider(ILcdModel) method to create a ILcdPropertyRetrieverProvider instance. This provider can be used to create an instance of this interface.

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the class or interface of the property that will be obtained.
    Gets the property from the given object.
  • Method Details

    • retrieveProperty

      Object retrieveProperty(Object aObject)
      Gets the property from the given object.
      Parameters:
      aObject - the given object from which the property must be obtained.
      Returns:
      the property of the given object.
    • getPropertyClass

      Class getPropertyClass()
      Gets the class or interface of the property that will be obtained. If several classes could be expected, then the common ancestor class or interface must be returned. It must not be null. The implementation must return Object.class if this class is undefined. It is not yet used but could be used for type checking an optimization.
      Returns:
      the class of the property that will be obtained.