use of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest in project webprotege by protegeproject.
the class EntityLookupRequestTestCase method suppliedSearchedEntityTypesIsCopied.
@Test
public void suppliedSearchedEntityTypesIsCopied() {
Set<EntityType<?>> types = new HashSet<EntityType<?>>();
types.add(EntityType.CLASS);
Set<EntityType<?>> typesCopy = new HashSet<EntityType<?>>(types);
EntityLookupRequest request = new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 20, types);
types.add(EntityType.OBJECT_PROPERTY);
assertEquals(typesCopy, request.getSearchedEntityTypes());
}
use of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest in project webprotege by protegeproject.
the class EntityLookupRequestTestCase method getSearchLimitReturnsSuppliedSearchLimit.
@Test
public void getSearchLimitReturnsSuppliedSearchLimit() {
EntityLookupRequest request = new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 5, Arrays.asList(EntityType.CLASS));
assertEquals(5, request.getSearchLimit());
}
use of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest in project webprotege by protegeproject.
the class CommentAutoCompleter method lookUpEntities.
private static EntityLookupRequest lookUpEntities(String lastWord) {
EntityLookupRequest req = new EntityLookupRequest(lastWord, SearchType.getDefault());
GWT.log("[CommentAutoCompleter] Request: " + req);
return req;
}
Aggregations