Package com.coherentlogic.wb.client.core.converters

Source Code of com.coherentlogic.wb.client.core.converters.IndicatorTopicsConverter

package com.coherentlogic.wb.client.core.converters;

import com.coherentlogic.wb.client.core.domain.IndicatorTopics;
import com.thoughtworks.xstream.converters.UnmarshallingContext;
import com.thoughtworks.xstream.converters.reflection.ReflectionConverter;
import com.thoughtworks.xstream.converters.reflection.ReflectionProvider;
import com.thoughtworks.xstream.io.HierarchicalStreamReader;
import com.thoughtworks.xstream.mapper.Mapper;

/**
*
* @author <a href="mailto:support@coherentlogic.com">Support</a>
*/
public class IndicatorTopicsConverter extends ReflectionConverter {

    public IndicatorTopicsConverter(
        Mapper mapper, ReflectionProvider reflectionProvider) {
        super(mapper, reflectionProvider);
    }

    @Override
    public boolean canConvert(Class type) {
        return IndicatorTopics.class.isAssignableFrom(type);
    }

    @Override
    public Object unmarshal(
        HierarchicalStreamReader reader,
        UnmarshallingContext context
    ) {
        IndicatorTopics indicatorTopics = (IndicatorTopics)
            super.unmarshal(reader, context);

        return indicatorTopics;
    }
}
TOP

Related Classes of com.coherentlogic.wb.client.core.converters.IndicatorTopicsConverter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.