Browse Source

polish

pull/23217/head
Keith Donald 15 years ago
parent
commit
be94b45636
  1. 6
      spring-framework-reference/src/validation.xml

6
spring-framework-reference/src/validation.xml

@ -1510,7 +1510,7 @@ public class PersonDtoPersonMapper implements Mapper<PersonDto, Person> {
</para> </para>
</section> </section>
<section id="mapping.SpelMapper"> <section id="mapping.SpelMapper">
<title>General-purpose Object Mapper Implementation</title> <title>General Purpose Object Mapper Implementation</title>
<para> <para>
A general purpose object-to-object mapping system exists in the <classname>org.springframework.mapping.support</classname> package. A general purpose object-to-object mapping system exists in the <classname>org.springframework.mapping.support</classname> package.
Built on the Spring Expression Language (SpEL), this system is capable of mapping between a variety of object types, including JavaBeans, Arrays, Collections, and Maps. Built on the Spring Expression Language (SpEL), this system is capable of mapping between a variety of object types, including JavaBeans, Arrays, Collections, and Maps.
@ -1686,7 +1686,7 @@ builder.addConditionalMapping("countryCode", "international == 'true'");]]>
<section id="mapping.SpelMapper-Explicit-forcing"> <section id="mapping.SpelMapper-Explicit-forcing">
<title>Forcing Explicit Mappings</title> <title>Forcing Explicit Mappings</title>
<para> <para>
You can require that all mapping rules be defined explicitly by disabling the "auto mapping" feature: You can force that <emphasis>all</emphasis> mapping rules be explicitly defined by disabling the "auto mapping" feature:
</para> </para>
<programlisting language="java"><![CDATA[ <programlisting language="java"><![CDATA[
builder.setAutoMappingEnabled(false);]]> builder.setAutoMappingEnabled(false);]]>
@ -1720,7 +1720,7 @@ builder.setExcludedFields("name");]]>
<section id="mapper.SpelMapper-CustomTypeConverters"> <section id="mapper.SpelMapper-CustomTypeConverters">
<title>Registering Custom Type Converters</title> <title>Registering Custom Type Converters</title>
<para> <para>
You may also register custom Converters to convert values between mapped field of different types: You may also register custom Converters to convert values between mapped fields of different types:
</para> </para>
<programlisting language="java"><![CDATA[ <programlisting language="java"><![CDATA[
builder.addConverter(new Converter<String, Date>() { builder.addConverter(new Converter<String, Date>() {

Loading…
Cancel
Save