1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.betwixt.io;
18
19 import org.apache.commons.betwixt.ElementDescriptor;
20
21 /***
22 * <p>Context against which content should be written.</p>
23 * <p>
24 * <strong>Usage:</strong>
25 * This (logical) interface is a <em>Parameter Object</em>
26 * allowing additional, <code>Betwixt</code>-specific information
27 * to be passed through the SAX-inspired writing API.
28 * </p>
29 * <p>
30 * It is likely that access will be required to methods in the
31 * <code>Context</code> used by the {@link AbstractBeanWriter}
32 * but it seems better to add these as neccessary using delegation
33 * rather than extending {@link org.apache.commons.betwixt.expression.Context}.
34 * </p>
35 * @author <a href='http://jakarta.apache.org/'>Jakarta Commons Team</a>
36 * @since 0.5
37 */
38 public abstract class WriteContext {
39
40 /***
41 * Gets the descriptor for the element who content
42 * is currently being created.
43 *
44 * @return the <code>ElementDescriptor</code> for the
45 * current element (or null if there is no current element)
46 */
47 public abstract ElementDescriptor getCurrentDescriptor();
48
49 }