org.castor.mapping
Class MappingUnmarshallIDResolver

java.lang.Object
  extended by org.castor.mapping.MappingUnmarshallIDResolver
All Implemented Interfaces:
IDResolver

public final class MappingUnmarshallIDResolver
extends java.lang.Object
implements IDResolver

An IDResolver to allow us to resolve ClassMappings from included Mapping files.

Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Ralf Joachim

Constructor Summary
MappingUnmarshallIDResolver()
           
 
Method Summary
 java.lang.Object resolve(java.lang.String idref)
          Returns the Object whose id matches the given IDREF, or null if no Object was found.
 void setMapping(MappingRoot mapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingUnmarshallIDResolver

public MappingUnmarshallIDResolver()
Method Detail

setMapping

public void setMapping(MappingRoot mapping)

resolve

public java.lang.Object resolve(java.lang.String idref)
Returns the Object whose id matches the given IDREF, or null if no Object was found.

Specified by:
resolve in interface IDResolver
Parameters:
idref - the IDREF to resolve.
Returns:
the Object whose id matches the given IDREF.
See Also:
IDResolver.resolve(java.lang.String)


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com