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

edu.stanford.protege.webprotege.crud.supplied.SuppliedNameSuffixEntityCrudKitPlugin Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.crud.supplied;

import edu.stanford.protege.webprotege.crud.*;
import edu.stanford.protege.webprotege.crud.gen.GeneratedAnnotationsSettings;

import javax.annotation.Nonnull;
import javax.inject.Inject;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 8/19/13 */ public class SuppliedNameSuffixEntityCrudKitPlugin implements EntityCrudKitPlugin { @Nonnull private final SuppliedNameSuffixKit kit; @Nonnull private final SuppliedNameSuffixEntityCrudKitHandlerFactory factory; @Inject public SuppliedNameSuffixEntityCrudKitPlugin(@Nonnull SuppliedNameSuffixKit kit, @Nonnull SuppliedNameSuffixEntityCrudKitHandlerFactory factory) { this.kit = checkNotNull(kit); this.factory = checkNotNull(factory); } @Override public EntityCrudKit getEntityCrudKit() { return kit; } @Override public EntityCrudKitHandler getEntityCrudKitHandler() { return factory.create(EntityCrudKitPrefixSettings.get(), SuppliedNameSuffixSettings.get(), GeneratedAnnotationsSettings .empty()); } @Override public EntityCrudKitHandler getEntityCrudKitHandler(EntityCrudKitSettings settings) { return factory.create(settings.getPrefixSettings(), (SuppliedNameSuffixSettings) settings.getSuffixSettings(), settings.getGeneratedAnnotationsSettings()); } @Override public SuppliedNameSuffixSettings getDefaultSettings() { return SuppliedNameSuffixSettings.get(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy