org.inria.ns.reflex.processor.catalog
Class CatalogFinder

java.lang.Object
  extended by org.inria.ns.reflex.processor.catalog.LookupStrategy.Impl
      extended by org.inria.ns.reflex.processor.catalog.CatalogFinder
All Implemented Interfaces:
LookupStrategy

public final class CatalogFinder
extends LookupStrategy.Impl
implements LookupStrategy

The lookup strategy for catalogs : top-down, all registries before, the first catalog list is ignored.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.catalog.LookupStrategy
LookupStrategy.Impl
 
Method Summary
static Iterator browseCatalogBuilder(LocalCatalog localCatalog)
          Browse all catalog builders referenced in the current local catalog.
static Iterator browseCatalogBuilder(LocalCatalog localCatalog, Iterator references)
          Browse all catalog builders referenced.
static Iterator lookupCatalogBuilder(GlobalCatalog globalCatalog, String catalogRef)
          Lookup for a catalog reference according to this strategy.
 
Methods inherited from class org.inria.ns.reflex.processor.catalog.LookupStrategy.Impl
lookup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.inria.ns.reflex.processor.catalog.LookupStrategy
lookup
 

Method Detail

lookupCatalogBuilder

public static Iterator lookupCatalogBuilder(GlobalCatalog globalCatalog,
                                            String catalogRef)
Lookup for a catalog reference according to this strategy.

Parameters:
globalCatalog - The catalog to look into.
catalogRef - The reference to look for.
Returns:
An iterator on CatalogBuilders.
See Also:
CatalogBuilder

browseCatalogBuilder

public static Iterator browseCatalogBuilder(LocalCatalog localCatalog)
Browse all catalog builders referenced in the current local catalog.

Each reference can gives several catalog builders.

Parameters:
localCatalog - The local catalog where to get the references.
Returns:
An iterator on CatalogBuilders.
See Also:
CatalogBuilder

browseCatalogBuilder

public static Iterator browseCatalogBuilder(LocalCatalog localCatalog,
                                            Iterator references)
Browse all catalog builders referenced.

Each reference can gives several catalog builders.

Parameters:
localCatalog - The local catalog where to lookup for each reference.
references - An iterator on the references to retrieve ; each is a String or an XFile.
Returns:
An iterator on CatalogBuilders.
See Also:
XFile, CatalogBuilder