IDResolver
class IDResolverImpl extends java.lang.Object implements IDResolver
IDResolver
for Castor XML during (un)marshaling.IDResolver
Constructor | Description |
---|---|
IDResolverImpl() |
Modifier and Type | Method | Description |
---|---|---|
(package private) void |
bind(java.lang.String id,
java.lang.Object object,
boolean isValidating) |
Binds a mapping from an ID to the referenced target object.
|
java.lang.Object |
resolve(java.lang.String idref) |
Returns the Object whose id matches the given IDREF, or 'null' if no
object was found.
|
(package private) void |
setResolver(IDResolver idResolver) |
Sets a custom IDResolver instance to be used for IDRef resolution.
|
void bind(java.lang.String id, java.lang.Object object, boolean isValidating) throws ValidationException
id
- Object identifierobject
- Object being identified by IDisValidating
- True if validation is enabled.ValidationException
- If an ID is used more than once.public java.lang.Object resolve(java.lang.String idref)
resolve
in interface IDResolver
idref
- the IDREF to resolve.void setResolver(IDResolver idResolver)
idResolver
- a custom IDResolver instance to be used.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com