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

net.n2oapp.framework.config.io.dataprovider.CamundaDataProviderIOv1 Maven / Gradle / Ivy

There is a newer version: 7.28.2
Show newest version
package net.n2oapp.framework.config.io.dataprovider;

import net.n2oapp.framework.api.metadata.dataprovider.N2oCamundaDataProvider;
import net.n2oapp.framework.api.metadata.io.IOProcessor;
import net.n2oapp.framework.api.metadata.io.NamespaceIO;
import org.jdom2.Element;
import org.springframework.stereotype.Component;

/**
 * Чтение/запись Camunda провайдера данных
 */
@Component
public class CamundaDataProviderIOv1 implements NamespaceIO, DataProviderIOv1 {
    @Override
    public Class getElementClass() {
        return N2oCamundaDataProvider.class;
    }

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

    @Override
    public void io(Element e, N2oCamundaDataProvider m, IOProcessor p) {
        p.attributeEnum(e, "operation", m::getOperation, m::setOperation, N2oCamundaDataProvider.Operation.class);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy