All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dmg.pmml.adapters.ObjectAdapter Maven / Gradle / Ivy

There is a newer version: 1.6.6
Show newest version
/*
 * Copyright (c) 2018 Villu Ruusmann
 */
package org.dmg.pmml.adapters;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class ObjectAdapter extends XmlAdapter {

	@Override
	public Object unmarshal(String value){
		return value;
	}

	@Override
	public String marshal(Object value){

		if(value == null){
			return null;
		}

		value = ObjectUtil.toSimpleValue(value);

		return value.toString();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy