org.apache.commons.betwixt.io
Class WriteContext

java.lang.Object
  extended by org.apache.commons.betwixt.io.WriteContext

public abstract class WriteContext
extends java.lang.Object

Context against which content should be written.

Usage: This (logical) interface is a Parameter Object allowing additional, Betwixt-specific information to be passed through the SAX-inspired writing API.

It is likely that access will be required to methods in the Context used by the AbstractBeanWriter but it seems better to add these as neccessary using delegation rather than extending Context.

Since:
0.5
Author:
Apache Commons Team

Constructor Summary
WriteContext()
           
 
Method Summary
abstract  ElementDescriptor getCurrentDescriptor()
          Gets the descriptor for the element who content is currently being created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteContext

public WriteContext()
Method Detail

getCurrentDescriptor

public abstract ElementDescriptor getCurrentDescriptor()
Gets the descriptor for the element who content is currently being created.

Returns:
the ElementDescriptor for the current element (or null if there is no current element)


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.