Enum PropertyAccessor.BuiltIn

java.lang.Object
java.lang.Enum<PropertyAccessor.BuiltIn>
org.mybatis.scripting.thymeleaf.PropertyAccessor.BuiltIn
All Implemented Interfaces:
Serializable, Comparable<PropertyAccessor.BuiltIn>, PropertyAccessor
Enclosing interface:
PropertyAccessor

public static enum PropertyAccessor.BuiltIn extends Enum<PropertyAccessor.BuiltIn> implements PropertyAccessor
The built-in property accessors.
  • Enum Constant Details

    • STANDARD

      public static final PropertyAccessor.BuiltIn STANDARD
      The implementation using Java Beans API provided by JDK.
  • Method Details

    • values

      public static PropertyAccessor.BuiltIn[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PropertyAccessor.BuiltIn valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getPropertyNames

      public Set<String> getPropertyNames(Class<?> type)
      Get property names of specified type.
      Specified by:
      getPropertyNames in interface PropertyAccessor
      Parameters:
      type - a target type
      Returns:
      property names
    • getPropertyType

      public Class<?> getPropertyType(Class<?> type, String name)
      Get a property type of specified property.
      Specified by:
      getPropertyType in interface PropertyAccessor
      Parameters:
      type - a target type
      name - a property name
      Returns:
      a property type
    • getPropertyValue

      public Object getPropertyValue(Object target, String name)
      Get a property value from specified target object.
      Specified by:
      getPropertyValue in interface PropertyAccessor
      Parameters:
      target - a target object
      name - a property name
      Returns:
      a property value
    • setPropertyValue

      public void setPropertyValue(Object target, String name, Object value)
      Set a property value to the specified target object.
      Specified by:
      setPropertyValue in interface PropertyAccessor
      Parameters:
      target - a target object
      name - a property name
      value - a property value