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

net.n2oapp.framework.api.metadata.aware.NamespaceUriAware Maven / Gradle / Ivy

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

import org.jdom2.Namespace;

/**
 * Знание о URI схемы
 */
public interface NamespaceUriAware {
    /**
     * @return URI схемы
     */
    String getNamespaceUri();

    /**
     * @return Префикс схемы
     */
    default String getNamespacePrefix() {
        return "";
    }

    default Namespace getNamespace() {
        return Namespace.getNamespace(getNamespacePrefix(), getNamespaceUri());
    }

    default void setNamespaceUri(String namespaceUri) {
    }

    default void setNamespacePrefix(String namespacePrefix) {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy