Class Setter

java.lang.Object
io.sundr.model.utils.Setter

public class Setter extends Object
  • Constructor Details

    • Setter

      public Setter()
  • Method Details

    • find

      public static Method find(TypeDef type, Property property)
      Find the setter of the specified property in the type.
      Parameters:
      type - The class.
      property - The property.
      Returns:
      The setter method if found. Throws exception if no setter is matched.
    • find

      public static Method find(RichTypeDef richType, Property property)
      Find the setter of the specified property in the rich type.
      Parameters:
      richType - The class.
      property - The property.
      Returns:
      The setter method if found. Throws exception if no setter is matched.
    • has

      public static boolean has(TypeDef clazz, Property property)
    • isApplicable

      public static boolean isApplicable(Method method, Property property)
    • hasOrInherits

      public static boolean hasOrInherits(RichTypeDef clazz, Property property)
    • hasOrInherits

      public static boolean hasOrInherits(TypeDef clazz, Property property)