public abstract class CachingBidirectionalShortFormProvider extends Object implements BidirectionalShortFormProvider
| Modifier | Constructor and Description |
|---|---|
protected |
CachingBidirectionalShortFormProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(OWLEntity entity)
Adds an entity to the cache.
|
void |
dispose()
Disposes of the short form proivider.
|
protected abstract String |
generateShortForm(OWLEntity entity)
Generates the short form for the specified entity.
|
Set<OWLEntity> |
getEntities(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.
|
Set<String> |
getShortForms()
Gets all of the short forms that are mapped to entities.
|
void |
rebuild(OWLEntitySetProvider<OWLEntity> entitySetProvider)
Deprecated.
|
void |
remove(OWLEntity entity)
Deprecated.
|
void |
update(OWLEntity entity)
Deprecated.
|
protected CachingBidirectionalShortFormProvider()
protected abstract String generateShortForm(OWLEntity entity)
update
method.entity - The entity whose short form should be generated.public Set<String> getShortForms()
BidirectionalShortFormProvidergetShortForms in interface BidirectionalShortFormProvider@Deprecated public void rebuild(OWLEntitySetProvider<OWLEntity> entitySetProvider)
entitySetProvider - The OWLEntitySetProvider that should be used to obtain
the entities whose short forms will be cached.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.@Deprecated public void remove(OWLEntity entity)
entity - The entity to be removed.@Deprecated public void update(OWLEntity entity)
entity - The entity whose short form should be updated.public Set<OWLEntity> getEntities(String shortForm)
BidirectionalShortFormProvidergetEntities in interface BidirectionalShortFormProvidershortForm - The short form of the entities that will be retrieved.public OWLEntity getEntity(String shortForm)
BidirectionalShortFormProvidergetEntity in interface BidirectionalShortFormProvidershortForm - 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)
ShortFormProvidergetShortForm in interface ShortFormProviderentity - The entity.public void dispose()
ShortFormProviderdispose in interface ShortFormProviderCopyright © 2014 The University of Manchester. All Rights Reserved.