Corrected Javadoc

This commit is contained in:
Rahul Kumar 2020-09-04 16:51:55 +05:30
parent 310f18fcdc
commit ed9658d5cb
2 changed files with 9 additions and 9 deletions

View File

@ -259,7 +259,7 @@ public class XMLParserConfiguration {
/** /**
* When parsing the XML into JSON, specifies that the values with attribute xsi:type * When parsing the XML into JSON, specifies that the values with attribute xsi:type
* will be converted to target type defined to client in this configuration * will be converted to target type defined to client in this configuration
* <code>Map<String, XMLXsiTypeConverter<?>></code> to parse values with attribute * {@code Map<String, XMLXsiTypeConverter<?>>} to parse values with attribute
* xsi:type="integer" as integer, xsi:type="string" as string * xsi:type="integer" as integer, xsi:type="string" as string
* @return {@link #xsiTypeMap} unmodifiable configuration map. * @return {@link #xsiTypeMap} unmodifiable configuration map.
*/ */
@ -270,9 +270,9 @@ public class XMLParserConfiguration {
/** /**
* When parsing the XML into JSON, specifies that the values with attribute xsi:type * When parsing the XML into JSON, specifies that the values with attribute xsi:type
* will be converted to target type defined to client in this configuration * will be converted to target type defined to client in this configuration
* <code>Map<String, XMLXsiTypeConverter<?>></code> to parse values with attribute * {@code Map<String, XMLXsiTypeConverter<?>>} to parse values with attribute
* xsi:type="integer" as integer, xsi:type="string" as string * xsi:type="integer" as integer, xsi:type="string" as string
* @param xsiTypeMap <code>new HashMap<String, XMLXsiTypeConverter<?>>()</code> to parse values with attribute * @param xsiTypeMap {@code new HashMap<String, XMLXsiTypeConverter<?>>()} to parse values with attribute
* xsi:type="integer" as integer, xsi:type="string" as string * xsi:type="integer" as integer, xsi:type="string" as string
* @return The existing configuration will not be modified. A new configuration is returned. * @return The existing configuration will not be modified. A new configuration is returned.
*/ */

View File

@ -26,14 +26,14 @@ SOFTWARE.
/** /**
* Type conversion configuration interface to be used with xsi:type attributes. * Type conversion configuration interface to be used with xsi:type attributes.
* <pre> * <pre>
* <h1>XML Sample</h1> * <b>XML Sample</b>
* {@code * {@code
* <root> * <root>
* <asString xsi:type="string">12345</asString> * <asString xsi:type="string">12345</asString>
* <asInt xsi:type="integer">54321</asInt> * <asInt xsi:type="integer">54321</asInt>
* </root> * </root>
* } * }
* <h1>JSON Output</h1> * <b>JSON Output</b>
* {@code * {@code
* { * {
* "root" : { * "root" : {
@ -43,23 +43,23 @@ SOFTWARE.
* } * }
* } * }
* *
* <h1>Usage</h1> * <b>Usage</b>
* {@code * {@code
* Map<String, XMLXsiTypeConverter<?>> xsiTypeMap = new HashMap<String, XMLXsiTypeConverter<?>>(); * Map<String, XMLXsiTypeConverter<?>> xsiTypeMap = new HashMap<String, XMLXsiTypeConverter<?>>();
* xsiTypeMap.put("string", new XMLXsiTypeConverter<String>() { * xsiTypeMap.put("string", new XMLXsiTypeConverter<String>() {
* @Override public String convert(final String value) { * &#64;Override public String convert(final String value) {
* return value; * return value;
* } * }
* }); * });
* xsiTypeMap.put("integer", new XMLXsiTypeConverter<Integer>() { * xsiTypeMap.put("integer", new XMLXsiTypeConverter<Integer>() {
* @Override public Integer convert(final String value) { * &#64;Override public Integer convert(final String value) {
* return Integer.valueOf(value); * return Integer.valueOf(value);
* } * }
* }); * });
* } * }
* </pre> * </pre>
* @author kumar529 * @author kumar529
* @param <T> * @param <T> return type of convert method
*/ */
public interface XMLXsiTypeConverter<T> { public interface XMLXsiTypeConverter<T> {
T convert(String value); T convert(String value);