io.annot8.common.implementations.pipelines.configuration.SimpleComponentConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annot8-common-implementations Show documentation
Show all versions of annot8-common-implementations Show documentation
Common functionality used by Annot8 implementations
/* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.common.implementations.pipelines.configuration;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import io.annot8.core.settings.Settings;
public class SimpleComponentConfiguration implements ComponentConfiguration {
private String name;
private String component;
private Set settings = new HashSet<>();
public SimpleComponentConfiguration() {
// Do nothing
}
public SimpleComponentConfiguration(String component, Collection settings) {
this(null, component, settings);
}
public SimpleComponentConfiguration(
String name, String component, Collection settings) {
this.name = name;
this.component = component;
this.settings.addAll(settings);
}
@Override
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String getComponent() {
return component;
}
public void setComponent(String component) {
this.component = component;
}
@Override
public Set getSettings() {
return settings;
}
public void setSettings(Set settings) {
this.settings = settings;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy