org.semanticweb.owlapi.util
Interface BidirectionalShortFormProvider

All Superinterfaces:
ShortFormProvider
All Known Implementing Classes:
BidirectionalShortFormProviderAdapter, CachingBidirectionalShortFormProvider

public interface BidirectionalShortFormProvider
extends ShortFormProvider

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 18-Apr-2007

A short form provider which is capable of translating back and forth between entities and their short forms.


Method Summary
 java.util.Set<OWLEntity> getEntities(java.lang.String shortForm)
          For a given short form this method obtains the entities which have this short form.
 OWLEntity getEntity(java.lang.String shortForm)
          A convenience method which gets an entity from its short form.
 java.util.Set<java.lang.String> getShortForms()
          Gets all of the short forms that are mapped to entities.
 
Methods inherited from interface org.semanticweb.owlapi.util.ShortFormProvider
dispose, getShortForm
 

Method Detail

getEntities

java.util.Set<OWLEntity> getEntities(java.lang.String shortForm)
For a given short form this method obtains the entities which have this short form.

Parameters:
shortForm - The short form of the entities that will be retrieved.
Returns:
The set of entities that have the specified short form. If there are no entities which have the specified short form then an empty set will be returned.

getEntity

OWLEntity getEntity(java.lang.String shortForm)
A convenience method which gets an entity from its short form.

Parameters:
shortForm - The short form of the entity.
Returns:
The actual entity or 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.

getShortForms

java.util.Set<java.lang.String> getShortForms()
Gets all of the short forms that are mapped to entities.

Returns:
A set, which contains the strings representing the short forms of entities for which there is a mapping.