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

cdc.util.rdb.tools.dump.AbstractNamedConfig Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package cdc.util.rdb.tools.dump;

import cdc.util.lang.Checks;

/**
 * Base abstract configuration.
 *
 * @author Damien Carbonne
 *
 */
public abstract class AbstractNamedConfig extends AbstractConfig {
    /** Internal name. */
    private final String internal;

    /** External name. */
    private String external;

    AbstractNamedConfig(AbstractConfig parent,
                        String internal) {
        super(parent);
        Checks.isNotNull(internal, "internal");
        this.internal = internal;
    }

    public final String getInternal() {
        return internal;
    }

    public final String getExternal() {
        return external;
    }

    public final void setExternal(String external) {
        this.external = external;
    }

    public final String getEffectiveExternal() {
        return external == null ? internal : external;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy