/** * Gets the value from {@link Dom} in the specified type. * * @param dom The DOM instance to get the value from. * @param returnType The expected type of the returned object. * Valid types are (1) primitive and 'leaf' Java types, such as {@link String}, * (2) {@link ConfigBeanProxy}, (3) and its collections. */ public Object get(Dom dom, Type returnType) { String v = dom.attribute(xmlName); return convertLeafValue(dom, Types.erasure(returnType), v); }
/** * Gets the value from {@link Dom} in the specified type. * * @param dom The DOM instance to get the value from. * @param returnType The expected type of the returned object. * Valid types are (1) primitive and 'leaf' Java types, such as {@link String}, * (2) {@link ConfigBeanProxy}, (3) and its collections. */ public Object get(Dom dom, Type returnType) { String v = dom.attribute(xmlName); return convertLeafValue(dom, Types.erasure(returnType), v); }
/** * Gets the value from {@link Dom} in the specified type. * * @param dom The DOM instance to get the value from. * @param returnType The expected type of the returned object. * Valid types are (1) primitive and 'leaf' Java types, such as {@link String}, * (2) {@link ConfigBeanProxy}, (3) and its collections. */ public Object get(Dom dom, Type returnType) { String v = dom.attribute(xmlName); return convertLeafValue(dom, Types.erasure(returnType), v); }
/** * Gets the value from {@link Dom} in the specified type. * * @param dom The DOM instance to get the value from. * @param returnType The expected type of the returned object. * Valid types are (1) primitive and 'leaf' Java types, such as {@link String}, * (2) {@link ConfigBeanProxy}, (3) and its collections. */ public Object get(Dom dom, Type returnType) { String v = dom.attribute(xmlName); return convertLeafValue(Types.erasure(returnType), v); }
/** * Gets the value from {@link Dom} in the specified type. * * @param dom The DOM instance to get the value from. * @param returnType The expected type of the returned object. * Valid types are (1) primitive and 'leaf' Java types, such as {@link String}, * (2) {@link ConfigBeanProxy}, (3) and its collections. */ public Object get(Dom dom, Type returnType) { String v = dom.attribute(xmlName); return convertLeafValue(dom, Types.erasure(returnType), v); }