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

net.n2oapp.framework.access.metadata.schema.AccessSchemaPersister Maven / Gradle / Ivy

There is a newer version: 7.28.1
Show newest version
package net.n2oapp.framework.access.metadata.schema;

import net.n2oapp.framework.api.metadata.persister.AbstractN2oMetadataPersister;
import net.n2oapp.framework.config.persister.util.PersisterJdomUtil;
import org.jdom2.Element;
/**
 * @author V. Alexeev.
 */
@SuppressWarnings("unchecked")
public abstract class AccessSchemaPersister extends AbstractN2oMetadataPersister {

    @Override
    public void setNamespacePrefix(String prefix) {
        this.namespacePrefix = prefix;
    }

    @Override
    public void setNamespaceUri(String uri) {
        this.namespaceUri = uri;
    }

    protected void persistAbstractAccessSchema(Element element, N2oAccessSchema schema) {
        PersisterJdomUtil.setAttribute(element, "id", schema.getId());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy