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

com.jpattern.ioc.xml.ValueConverter Maven / Gradle / Ivy

There is a newer version: 2.7.1
Show newest version
package com.jpattern.ioc.xml;

import com.thoughtworks.xstream.converters.SingleValueConverter;

public class ValueConverter implements SingleValueConverter {
    
    public Object fromString(String aValue) {
        return new Value(aValue);
    }

    public String toString(Object aObjectValue) {
        return ((Value) aObjectValue).value();
    }

	@SuppressWarnings("rawtypes")
	public boolean canConvert(Class aClassType) {
        return aClassType.equals(Value.class);
    }    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy