public JavaBean2XMLTransformer() { this.mapper = new SimpleTypeMapperImpl(); }
return parseString(value); } else if (type.equals(XSD_INT)) { return parseInt(value); } else if (type.equals(XSD_INTEGER)) { return parseInteger(value); } else if (type.equals(XSD_INT)) { return parseInt(value); } else if (type.equals(XSD_FLOAT)) { return parseFloat(value); } else if (type.equals(XSD_DOUBLE)) { return parseDouble(value); } else if (type.equals(XSD_SHORT)) { return parseShort(value); } else if (type.equals(XSD_DECIMAL)) { return parseDecimal(value); } else if (type.equals(XSD_BOOLEAN)) { return parseBoolean(value); } else if (type.equals(XSD_BYTE)) { return parseByte(value); } else if (type.equals(XSD_LONG)) { return parseLong(value); } else if (type.equals(XSD_UNSIGNEDBYTE)) { return parseUnsignedShort(value); } else if (type.equals(XSD_UNSIGNEDSHORT)) { return parseUnsignedShort(value); } else if (type.equals(XSD_UNSIGNEDINT)) { return parseUnsignedInt(value); } else if (type.equals(XSD_UNSIGNEDLONG)) { return parseUnsignedInt(value);
public Object toJavaObject(QName xmlType, T xmlElement, TransformationContext context) { if (xmlType != null && mapper.isSimpleXSDType(xmlType)) { return mapper.toJavaObject(xmlType, getText(xmlElement), context); } else { Class<?> javaType = (Class<?>)context.getTargetDataType().getPhysical(); return createJavaObject(xmlElement, javaType, context); } }
throws XML2JavaMapperException { if (isTextOnly(element)) { return (L) mapper.toJavaObject(mapper.getXMLType(javaType).getQName(), getText(element), context);
return parseString(value); } else if (type.equals(XSD_INT)) { return parseInt(value); } else if (type.equals(XSD_INTEGER)) { return parseInteger(value); } else if (type.equals(XSD_INT)) { return parseInt(value); } else if (type.equals(XSD_FLOAT)) { return parseFloat(value); } else if (type.equals(XSD_DOUBLE)) { return parseDouble(value); } else if (type.equals(XSD_SHORT)) { return parseShort(value); } else if (type.equals(XSD_DECIMAL)) { return parseDecimal(value); } else if (type.equals(XSD_BOOLEAN)) { return parseBoolean(value); } else if (type.equals(XSD_BYTE)) { return parseByte(value); } else if (type.equals(XSD_LONG)) { return parseLong(value); } else if (type.equals(XSD_UNSIGNEDBYTE)) { return parseUnsignedShort(value); } else if (type.equals(XSD_UNSIGNEDSHORT)) { return parseUnsignedShort(value); } else if (type.equals(XSD_UNSIGNEDINT)) { return parseUnsignedInt(value); } else if (type.equals(XSD_UNSIGNEDLONG)) { return parseUnsignedInt(value);
public Object toJavaObject(QName xmlType, T xmlElement, TransformationContext context) { if (xmlType != null && mapper.isSimpleXSDType(xmlType)) { return mapper.toJavaObject(xmlType, getText(xmlElement), context); } else { Class<?> javaType = (Class<?>)context.getTargetDataType().getPhysical(); return createJavaObject(xmlElement, javaType, context); } }
throws XML2JavaMapperException { if (isTextOnly(element)) { return (L) mapper.toJavaObject(mapper.getXMLType(javaType).getQName(), getText(element), context);
public SimpleType2JavaTransformer() { this.mapper = new SimpleTypeMapperImpl(); }
public Java2SimpleTypeTransformer() { this.mapper = new SimpleTypeMapperImpl(); }
public Java2SimpleTypeTransformer(SimpleTypeMapper mapper) { this.mapper = (mapper != null) ? mapper : new SimpleTypeMapperImpl(); }
public Java2SimpleTypeTransformer(SimpleTypeMapper mapper) { this.mapper = (mapper != null) ? mapper : new SimpleTypeMapperImpl(); }
public SimpleType2JavaTransformer(SimpleTypeMapper mapper) { this.mapper = (mapper != null) ? mapper : new SimpleTypeMapperImpl(); }
public JavaBean2XMLTransformer() { this.mapper = new SimpleTypeMapperImpl(); }
public Java2SimpleTypeTransformer() { this.mapper = new SimpleTypeMapperImpl(); }
public SimpleType2JavaTransformer() { this.mapper = new SimpleTypeMapperImpl(); }
public XML2JavaBeanTransformer() { this.mapper = new SimpleTypeMapperImpl(); }
public XML2JavaBeanTransformer() { this.mapper = new SimpleTypeMapperImpl(); }
public SimpleType2JavaTransformer(SimpleTypeMapper mapper) { this.mapper = (mapper != null) ? mapper : new SimpleTypeMapperImpl(); }