Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.model
Interface InstanceResolver

All Known Subinterfaces:
InstanceCollection, InstanceService
All Known Implementing Classes:
AbstractInstanceService, BrowseOrientInstanceCollection, DefaultInstanceCollection, FilteredInstanceCollection, GmlInstanceCollection, MultiInstanceCollection, OrientInstanceService, ShapesInstanceCollection

public interface InstanceResolver

Interface for instance resolvers, that allow getting a reference for an instance and vice versa.

Author:
Simon Templer

Method Summary
 Instance getInstance(InstanceReference reference)
          Get the instance referenced by the given reference.
 InstanceReference getReference(Instance instance)
          Get a reference to an instance that can be used to retrieve the given instance using getInstance(InstanceReference).
 

Method Detail

getReference

InstanceReference getReference(Instance instance)
Get a reference to an instance that can be used to retrieve the given instance using getInstance(InstanceReference).

Parameters:
instance - the instance, must have originated from this resolver
Returns:
the reference

getInstance

Instance getInstance(InstanceReference reference)
Get the instance referenced by the given reference.

Parameters:
reference - the instance reference
Returns:
the referenced instance or null if it does not exist or the reference is invalid

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d