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

net.n2oapp.framework.config.io.datasource.AbstractDatasourceIO Maven / Gradle / Ivy

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

import net.n2oapp.framework.api.metadata.N2oAbstractDatasource;
import net.n2oapp.framework.api.metadata.io.IOProcessor;
import net.n2oapp.framework.api.metadata.io.NamespaceIO;
import net.n2oapp.framework.api.metadata.io.TypedElementIO;
import org.jdom2.Element;

/**
 * Чтение\запись базовых свойств источников данных
 */
public abstract class AbstractDatasourceIO implements TypedElementIO, NamespaceIO, DatasourceIOv1 {

    public void io(Element e, T ds, IOProcessor p) {
        p.attribute(e, "id", ds::getId, ds::setId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy