org.exolab.castor.xml.schema
Class ScopableResolver
java.lang.Object
org.exolab.castor.xml.schema.ScopableResolver
- Resolver
public class ScopableResolver
extends java.lang.Object
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.
$Revision: 5951 $ $Date: 2006-04-13 06:47:36 -0600 (Thu, 13 Apr 2006) $
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) - Called to resolve a reference give the reference's identifier.
|
ScopableResolver
public ScopableResolver()
ScopableResolver
public ScopableResolver(Resolver resolver)
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.
- addResolvable in interface Resolver
id
- The referent's identifierreferent
- The referent object
removeResolvable
public void removeResolvable(String id)
Removes a resolvable object from this resolver. Subsequent calls
to
resolve(String)
with the same
id will return null.
- removeResolvable in interface Resolver
id
- The referent's identifier
resolve
public Referable resolve(String id)
Called to resolve a reference give the reference's identifier.
If the reference is known, this method should return the referenced
object. If the reference is unknown, this method should return
null.
- resolve in interface Resolver
id
- The identifier to resolve
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com