KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > znerd > xmlenc > XMLEventListenerState


1 /*
2  * $Id: XMLEventListenerState.java,v 1.1 2003/04/26 16:27:23 znerd Exp $
3  */

4 package org.znerd.xmlenc;
5
6 import java.io.IOException JavaDoc;
7 import java.io.UnsupportedEncodingException JavaDoc;
8
9 /**
10  * State for an XML event listener.
11  *
12  * @version $Revision: 1.1 $ $Date: 2003/04/26 16:27:23 $
13  * @author Ernst de Haan (<a HREF="mailto:znerd@FreeBSD.org">znerd@FreeBSD.org</a>)
14  *
15  * @since xmlenc 0.30
16  */

17 public final class XMLEventListenerState
18 extends Object JavaDoc{
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 JavaDoc 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 JavaDoc _name;
51
52
53    //-------------------------------------------------------------------------
54
// Methods
55
//-------------------------------------------------------------------------
56

57    public String JavaDoc toString() {
58       return _name;
59    }
60 }
61
Popular Tags