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

net.n2oapp.framework.config.io.action.ClearActionElementIOV1 Maven / Gradle / Ivy

The newest version!
package net.n2oapp.framework.config.io.action;

import net.n2oapp.framework.api.metadata.action.N2oClearAction;
import net.n2oapp.framework.api.metadata.io.IOProcessor;
import org.jdom2.Element;
import org.springframework.stereotype.Component;

/**
 * Чтение\запись очистки модели
 */
@Component
public class ClearActionElementIOV1 extends AbstractActionElementIOV1 {

    @Override
    public void io(Element e, N2oClearAction a, IOProcessor p) {
        super.io(e, a, p);
        p.attributeArray(e, "model", ",", a::getModel, a::setModel);
        p.attributeBoolean(e, "close-on-success", a::getCloseOnSuccess, a::setCloseOnSuccess);
    }

    @Override
    public String getElementName() {
        return "clear";
    }

    @Override
    public Class getElementClass() {
        return N2oClearAction.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy