org.exolab.castor.xml.schema

Class ScopableResolver

Implemented Interfaces:
Resolver

public class ScopableResolver
extends java.lang.Object
implements Resolver

An implementation of Resolver that can be "scoped". Which means you can construct a ScopableResovler and give it another Resolver (which can also be Scopable). If this Resolver cannot "resolve" the id, then it will try to use the given Resolver to resolver it.
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:34 $
Author:
Keith Visco

Constructor Summary

ScopableResolver()
ScopableResolver(Resolver resolver)

Method Summary

void
addResolvable(String id, Referable referent)
Adds a resolvable object to this resolver identified by id.
void
removeResolvable(String id)
Removes a resolvable object from this resolver.
Referable
resolve(String id)

Constructor Details

ScopableResolver

public ScopableResolver()

ScopableResolver

public ScopableResolver(Resolver resolver)

Method Details

addResolvable

public void addResolvable(String id,
                          Referable referent)
Adds a resolvable object to this resolver identified by id. Subsequent calls to resolve(String) with the same id will return referent.
Specified by:
addResolvable in interface Resolver
Parameters:
id - The referent's identifier
referent - The referent object

removeResolvable

public void removeResolvable(String id)
Specified by:
removeResolvable in interface Resolver
Parameters:
id - The referent's identifier

resolve

public Referable resolve(String id)
Specified by:
resolve in interface Resolver

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com