org.wsmo.locator
Interface Locator


public interface Locator

An interface representing an entity locator.

Version:
$Revision: 1.5 $ $Date: 2005/10/18 09:16:47 $
Author:
not attributable

Method Summary
 java.util.Set lookup(Identifier id)
          Attempts to find an entity based on its IRI.
 Entity lookup(Identifier id, java.lang.Class clazz)
          Attempts to find an entity based on its IRI and the type of entity of interest.
 

Method Detail

lookup

java.util.Set lookup(Identifier id)
                     throws SynchronisationException
Attempts to find an entity based on its IRI. If metamodelling is used (e.g. an extension of WSML-Core) then more than one entity may correspond to the provied IRI.

Parameters:
id - The ID of the entity to find
Returns:
The entity(ies) corresponding to the supplied ID or null if none found
Throws:
SynchronisationException
See Also:
Entity

lookup

Entity lookup(Identifier id,
              java.lang.Class clazz)
              throws SynchronisationException
Attempts to find an entity based on its IRI and the type of entity of interest. Note that the class name is the WSMO API interface name and not the name of a particular class implementing the WSMO API interface.

Parameters:
id - The ID of the entity to find
clazz - the type of entity (e.g. the name of the WSMO API interface name)
Returns:
The entity corresponding to the supplied ID or null if none found
Throws:
SynchronisationException