T
- return type of convert method@Deprecated
public interface XMLXsiTypeConverter<T>
XML Sample<root> <asString xsi:type="string">12345</asString> <asInt xsi:type="integer">54321</asInt> </root>
JSON Output{ "root" : { "asString" : "12345", "asInt": 54321 } }
UsageMap<String, XMLXsiTypeConverter<?>> xsiTypeMap = new HashMap<String, XMLXsiTypeConverter<?>>(); xsiTypeMap.put("string", new XMLXsiTypeConverter<String>() { @Override public String convert(final String value) { return value; } }); xsiTypeMap.put("integer", new XMLXsiTypeConverter<Integer>() { @Override public Integer convert(final String value) { return Integer.valueOf(value); } });
Modifier and Type | Method and Description |
---|---|
T |
convert(java.lang.String value)
Deprecated.
|
T convert(java.lang.String value)
Copyright © 2010 - 2023 Adobe. All Rights Reserved