|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.schema.ScopableResolver
public class ScopableResolver
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.
Constructor Summary | |
---|---|
ScopableResolver()
|
|
ScopableResolver(Resolver resolver)
|
Method Summary | |
---|---|
void |
addResolvable(java.lang.String id,
Referable referent)
Adds a resolvable object to this resolver identified by id. |
void |
removeResolvable(java.lang.String id)
Removes a resolvable object from this resolver. |
Referable |
resolve(java.lang.String id)
Called to resolve a reference give the reference's identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScopableResolver()
public ScopableResolver(Resolver resolver)
Method Detail |
---|
public void addResolvable(java.lang.String id, Referable referent)
resolve(java.lang.String)
with the same id
will return referent.
addResolvable
in interface Resolver
id
- The referent's identifierreferent
- The referent objectpublic void removeResolvable(java.lang.String id)
resolve(java.lang.String)
with the same id will return null.
removeResolvable
in interface Resolver
id
- The referent's identifierpublic Referable resolve(java.lang.String id)
Resolver
resolve
in interface Resolver
id
- The identifier to resolve
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |