You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,8 @@ HTTP-RPC provides the following classes for creating and consuming REST services
48
48
*`WebServiceProxy` - class for invoking remote web services
49
49
*`WebServiceException` - exception thrown when a service operation returns an error
50
50
*`org.httprpc.beans`
51
-
*`BeanAdapter` - class that presents the properties of a Java Bean object as a map and vice versa
52
-
*`Key` - annotation that associates a custom key with a Bean property
51
+
*`BeanAdapter` - class that presents the properties of a Java bean object as a map and vice versa
52
+
*`Key` - annotation that associates a custom key with a bean property
53
53
*`org.httprpc.sql`
54
54
*`ResultSetAdapter` - class that presents the contents of a JDBC result set as an iterable sequence of maps or typed row values
55
55
*`Parameters` - class for applying named parameters values to prepared statements
@@ -411,7 +411,7 @@ March has 31 days
411
411
```
412
412
413
413
## BeanAdapter
414
-
The `BeanAdapter` class implements the `Map` interface and exposes any properties defined by the Bean as entries in the map, allowing custom data types to be serialized as JSON objects or CSV records.
414
+
The `BeanAdapter` class implements the `Map` interface and exposes any properties defined by a bean as entries in the map, allowing custom data types to be serialized as JSON objects or CSV records.
415
415
416
416
If a property value is `null` or an instance of one of the following types, it is returned as is:
417
417
@@ -424,7 +424,7 @@ If a property value is `null` or an instance of one of the following types, it i
424
424
*`java.util.time.LocalTime`
425
425
*`java.util.time.LocalDateTime`
426
426
427
-
If a property returns an instance of `List` or `Map`, the value will be wrapped in an adapter of the same type that automatically adapts its sub-elements. Otherwise, the value is assumed to be a Bean and is wrapped in a `BeanAdapter`.
427
+
If a property returns an instance of `List` or `Map`, the value will be wrapped in an adapter of the same type that automatically adapts its sub-elements. Otherwise, the value is assumed to be a bean and is wrapped in a `BeanAdapter`.
428
428
429
429
For example, the following class might be used to represent a node in a hierarchical object graph:
430
430
@@ -531,7 +531,7 @@ If the value is already an instance of the requested type, it is returned as is.
531
531
*If the target type is `java.util.time.LocalDate`, `java.util.time.LocalTime`, or `java.util.time.LocalDateTime`, the value is parsed using the appropriate `parse()` method.
532
532
*If the target type is `java.util.List` or `java.util.Map`, the value is wrapped in an adapter of the same type that automatically adapts its sub-elements.
533
533
534
-
Otherwise, the target is assumed to be a Bean, and the value is assumed to be a map. If the target type is a concrete class, an instance of the type is dynamically created and populated using the entries in the map. Property values are adapted as described above. If a property provides multiple setters, the first applicable setter will be applied.
534
+
Otherwise, the target is assumed to be a bean, and the value is assumed to be a map. If the target type is a concrete class, an instance of the type is dynamically created and populated using the entries in the map. Property values are adapted as described above. If a property provides multiple setters, the first applicable setter will be applied.
535
535
536
536
If the target type is an interface, the return value is an implementation of the interfacethat maps accessor methods to entries in the map. For example, given the following interfacedefinition:
The `Key` annotation can be used to associate a custom key with a Bean property. For example, the following property would appear as "first_name" in the resulting map instead of "firstName":
556
+
The `Key` annotation can be used to associate a custom key with a bean property. For example, the following property would appear as "first_name" in the resulting map instead of "firstName":
0 commit comments