org.jbeanmapper
Class MappingContext

java.lang.Object
  extended byorg.jbeanmapper.MappingContext

public class MappingContext
extends java.lang.Object

The context for the current mapping.

Author:
Brian Pugh

Constructor Summary
MappingContext(BeanMapper mapper)
          Instantiate a new mapping context with a specific mapper.
 
Method Summary
 BeanMapper getMapper()
          Get the mapper for this context.
 java.lang.Object peekSourceObject()
          Peek at the source object on the top of the source stack.
 java.lang.Object popSourceObject()
          Pop a source object from the source stack.
 void pushSourceObject(java.lang.Object sourceObject)
          Push a source object on the source stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingContext

public MappingContext(BeanMapper mapper)
Instantiate a new mapping context with a specific mapper.

Parameters:
mapper - The mapper.
Method Detail

getMapper

public BeanMapper getMapper()
Get the mapper for this context.

Returns:
The mapper for this context.

pushSourceObject

public void pushSourceObject(java.lang.Object sourceObject)
Push a source object on the source stack.

Parameters:
sourceObject - The source object to push on the stack.

popSourceObject

public java.lang.Object popSourceObject()
Pop a source object from the source stack.

Returns:
The source object that was popped on the source stack.

peekSourceObject

public java.lang.Object peekSourceObject()
Peek at the source object on the top of the source stack.

Returns:
The source object on the top of the source stack.