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

net.anotheria.moskito.webui.shared.resource.adapters.StatValueAOMarshallingAdapter Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package net.anotheria.moskito.webui.shared.resource.adapters;

import net.anotheria.moskito.core.decorators.value.StatValueAO;

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

/**
 * {@link XmlAdapter} adapter used for marshaling {@link StatValueAO}'s raw value to {@link String}.
 *
 * @author Illya Bogatyrchuk
 */
public class StatValueAOMarshallingAdapter extends XmlAdapter {
    @Override
    public StatValueAO unmarshal(final String value) throws Exception {
        throw new UnsupportedOperationException("Not supported!");
    }

    @Override
    public String marshal(final StatValueAO statValueAO) throws Exception {
        return statValueAO != null ? statValueAO.getRawValue() : null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy