Package org.mybatis.scripting.thymeleaf
Enum 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mybatis.scripting.thymeleaf.PropertyAccessor
PropertyAccessor.BuiltIn
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPropertyNames
(Class<?> type) Get property names of specified type.Class
<?> getPropertyType
(Class<?> type, String name) Get a property type of specified property.getPropertyValue
(Object target, String name) Get a property value from specified target object.void
setPropertyValue
(Object target, String name, Object value) Set a property value to the specified target object.static PropertyAccessor.BuiltIn
Returns the enum constant of this type with the specified name.static PropertyAccessor.BuiltIn[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STANDARD
The implementation using Java Beans API provided by JDK.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getPropertyNames
Get property names of specified type.- Specified by:
getPropertyNames
in interfacePropertyAccessor
- Parameters:
type
- a target type- Returns:
- property names
-
getPropertyType
Get a property type of specified property.- Specified by:
getPropertyType
in interfacePropertyAccessor
- Parameters:
type
- a target typename
- a property name- Returns:
- a property type
-
getPropertyValue
Get a property value from specified target object.- Specified by:
getPropertyValue
in interfacePropertyAccessor
- Parameters:
target
- a target objectname
- a property name- Returns:
- a property value
-
setPropertyValue
Set a property value to the specified target object.- Specified by:
setPropertyValue
in interfacePropertyAccessor
- Parameters:
target
- a target objectname
- a property namevalue
- a property value
-