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.
Version:
- Keith Visco
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
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com