public abstract class CachingBidirectionalShortFormProvider extends Object implements BidirectionalShortFormProvider
Modifier and Type | Method and Description |
---|---|
void |
add(OWLEntity entity)
Adds an entity to the cache.
|
void |
dispose()
Disposes of the short form provider.
|
Stream<OWLEntity> |
entities(String shortForm)
For a given short form this method obtains the entities which have this short form.
|
OWLEntity |
getEntity(String shortForm)
A convenience method which gets an entity from its short form.
|
String |
getShortForm(OWLEntity entity)
Gets the short form for the specified entity.
|
Stream<String> |
shortForms()
Gets all of the short forms that are mapped to entities.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntities, getShortForms
public Stream<String> shortForms()
BidirectionalShortFormProvider
shortForms
in interface BidirectionalShortFormProvider
public void add(OWLEntity entity)
entity
- The entity to be added to the cache - the short form will automatically be
generated and added to the cache.public Stream<OWLEntity> entities(String shortForm)
BidirectionalShortFormProvider
entities
in interface BidirectionalShortFormProvider
shortForm
- The short form of the entities that will be retrieved.@Nullable public OWLEntity getEntity(String shortForm)
BidirectionalShortFormProvider
getEntity
in interface BidirectionalShortFormProvider
shortForm
- The short form of the entity.null
if there is no entity which has the specified short
form. If the specified short form corresponds to more than one entity then an entity
will be chosen by the implementation of the short form provider.public String getShortForm(OWLEntity entity)
ShortFormProvider
getShortForm
in interface ShortFormProvider
entity
- The entity.public void dispose()
ShortFormProvider
dispose
in interface ShortFormProvider
Copyright © 2020 The University of Manchester. All rights reserved.