Source code: org/znerd/xmlenc/XMLEventListenerState.java
1 /*
2 * $Id: XMLEventListenerState.java,v 1.2 2005/09/12 08:40:02 znerd Exp $
3 */
4 package org.znerd.xmlenc;
5
6 import java.io.IOException;
7 import java.io.UnsupportedEncodingException;
8
9 /**
10 * State for an XML event listener.
11 *
12 * @version $Revision: 1.2 $ $Date: 2005/09/12 08:40:02 $
13 * @author Ernst de Haan (<a href="mailto:wfe.dehaan@gmail.com">wfe.dehaan@gmail.com</a>)
14 *
15 * @since xmlenc 0.30
16 */
17 public final class XMLEventListenerState
18 extends Object{
19
20 //-------------------------------------------------------------------------
21 // Class fields
22 //-------------------------------------------------------------------------
23
24 //-------------------------------------------------------------------------
25 // Class functions
26 //-------------------------------------------------------------------------
27
28 //-------------------------------------------------------------------------
29 // Constructors
30 //-------------------------------------------------------------------------
31
32 /**
33 * Creates a new <code>State</code>.
34 *
35 * @param name
36 * the name of the state, should not be <code>null</code>.
37 */
38 XMLEventListenerState(String name) {
39 _name = name;
40 }
41
42
43 //-------------------------------------------------------------------------
44 // Fields
45 //-------------------------------------------------------------------------
46
47 /**
48 * The name of this state. This field should never be <code>null</code>.
49 */
50 private final String _name;
51
52
53 //-------------------------------------------------------------------------
54 // Methods
55 //-------------------------------------------------------------------------
56
57 public String toString() {
58 return _name;
59 }
60 }