public abstract class

WriteContext

extends Object
java.lang.Object
   ↳ org.apache.commons.betwixt.io.WriteContext

Class Overview

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.

Summary

Public Constructors
WriteContext()
Public Methods
abstract ElementDescriptor getCurrentDescriptor()
Gets the descriptor for the element who content is currently being created.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WriteContext ()

Public Methods

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)