org.apache.commons.betwixt.io
Class AbstractBeanWriter.WriteContextImpl

java.lang.Object
  extended byorg.apache.commons.betwixt.io.WriteContext
      extended byorg.apache.commons.betwixt.io.AbstractBeanWriter.WriteContextImpl
Enclosing class:
AbstractBeanWriter

private static class AbstractBeanWriter.WriteContextImpl
extends WriteContext

Basic mutable implementation of WriteContext.


Field Summary
private  ElementDescriptor currentDescriptor
           
 
Constructor Summary
private AbstractBeanWriter.WriteContextImpl()
           
 
Method Summary
 ElementDescriptor getCurrentDescriptor()
          Gets the descriptor for the element who content is currently being created.
 void setCurrentDescriptor(ElementDescriptor currentDescriptor)
          Sets the descriptor for the current element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentDescriptor

private ElementDescriptor currentDescriptor
Constructor Detail

AbstractBeanWriter.WriteContextImpl

private AbstractBeanWriter.WriteContextImpl()
Method Detail

getCurrentDescriptor

public ElementDescriptor getCurrentDescriptor()
Description copied from class: WriteContext
Gets the descriptor for the element who content is currently being created.

Specified by:
getCurrentDescriptor in class WriteContext
Returns:
the ElementDescriptor for the current element (or null if there is no current element)
See Also:
WriteContext.getCurrentDescriptor()

setCurrentDescriptor

public void setCurrentDescriptor(ElementDescriptor currentDescriptor)
Sets the descriptor for the current element.

Parameters:
currentDescriptor -