Package edu.stanford.bmir.protege.web.shared.crud

Examples of edu.stanford.bmir.protege.web.shared.crud.EntityCrudKitPrefixSettings


    private static EntityCrudKitSettings<?> getDefaultSettings() {
        return new EntityCrudKitSettings<EntityCrudKitSuffixSettings>(getDefaultPrefixSettings(), getDefaultSuffixSettings());
    }

    private static EntityCrudKitPrefixSettings getDefaultPrefixSettings() {
        return new EntityCrudKitPrefixSettings();
    }
View Full Code Here


        return OBOIdSuffixKit.get();
    }

    @Override
    public EntityCrudKitHandler<OBOIdSuffixSettings, OBOIdSession> getEntityCrudKitHandler() {
        return new OBOIdSuffixEntityCrudKitHandler(new EntityCrudKitPrefixSettings(), new OBOIdSuffixSettings());
    }
View Full Code Here

    private EntityCrudKitPrefixSettings prefixSettings;

    private UUIDSuffixSettings suffixSettings;

    public UUIDEntityCrudKitHandler() {
        this(new EntityCrudKitPrefixSettings(), new UUIDSuffixSettings());
    }
View Full Code Here

    private SuppliedNameSuffixSettings suffixSettings;

    private EntityCrudKitPrefixSettings prefixSettings;

    public SuppliedNameSuffixEntityCrudKitHandler() {
        this(new EntityCrudKitPrefixSettings(), new SuppliedNameSuffixSettings());
    }
View Full Code Here

        new EntityCrudKitSettings<EntityCrudKitSuffixSettings>(null, mock(EntityCrudKitSuffixSettings.class));
    }

    @Test(expected = NullPointerException.class)
    public void constructorThrowsNullPointerExceptionIfSuffixSettingsIsNull() {
        new EntityCrudKitSettings<EntityCrudKitSuffixSettings>(new EntityCrudKitPrefixSettings(), null);
    }
View Full Code Here

        new EntityCrudKitSettings<EntityCrudKitSuffixSettings>(new EntityCrudKitPrefixSettings(), null);
    }

    @Test
    public void objectsWithSamePrefixAndSuffixSettingsHaveEqualHashCodes() {
        EntityCrudKitPrefixSettings prefixSettings = new EntityCrudKitPrefixSettings();
        EntityCrudKitSuffixSettings suffixSettings = mock(EntityCrudKitSuffixSettings.class);
        EntityCrudKitSettings<?> settingsA = new EntityCrudKitSettings<EntityCrudKitSuffixSettings>(prefixSettings, suffixSettings);
        EntityCrudKitSettings<?> settingsB = new EntityCrudKitSettings<EntityCrudKitSuffixSettings>(prefixSettings, suffixSettings);
        assertEquals(settingsA.hashCode(), settingsB.hashCode());
    }
View Full Code Here

        assertEquals(settingsA.hashCode(), settingsB.hashCode());
    }

    @Test
    public void objectsWithSamePrefixAndSuffixSettingsAreEqual() {
        EntityCrudKitPrefixSettings prefixSettings = new EntityCrudKitPrefixSettings();
        EntityCrudKitSuffixSettings suffixSettings = mock(EntityCrudKitSuffixSettings.class);
        EntityCrudKitSettings<?> settingsA = new EntityCrudKitSettings<EntityCrudKitSuffixSettings>(prefixSettings, suffixSettings);
        EntityCrudKitSettings<?> settingsB = new EntityCrudKitSettings<EntityCrudKitSuffixSettings>(prefixSettings, suffixSettings);
        assertEquals(settingsA, settingsB);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.crud.EntityCrudKitPrefixSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.