org.exolab.castor.xml.schema

Class ScopableResolver

public class ScopableResolver extends 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
voidaddResolvable(String id, Referable referent)
Adds a resolvable object to this resolver identified by id.
voidremoveResolvable(String id)
Removes a resolvable object from this resolver.
Referableresolve(String id)

Constructor Detail

ScopableResolver

public ScopableResolver()

ScopableResolver

public ScopableResolver(Resolver resolver)

Method Detail

addResolvable

public void addResolvable(String id, Referable referent)
Adds a resolvable object to this resolver identified by id. Subsequent calls to ScopableResolver with the same id will return referent.

Parameters: id The referent's identifier referent The referent object

removeResolvable

public void removeResolvable(String id)
Removes a resolvable object from this resolver. Subsequent calls to ScopableResolver with the same id will return null.

Parameters: id The referent's identifier

resolve

public Referable resolve(String id)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com