01: /*
02: * (C) Copyright 2002-2003, Andy Clark. All rights reserved.
03: *
04: * This file is distributed under an Apache style license. Please
05: * refer to the LICENSE file for specific details.
06: */
07:
08: package org.cyberneko.pull.event;
09:
10: import org.cyberneko.pull.XMLEvent;
11:
12: import org.apache.xerces.xni.QName;
13: import org.apache.xerces.xni.XMLAttributes;
14:
15: /**
16: * A prefix mapping event.
17: * <p color='red'>
18: * REVISIT: [Q] Should we pass prefix mappings as separate events or should
19: * there be an XNI <code>NamespaceContext</code> passed with
20: * the event objects? -Ac
21: * </p>
22: *
23: * @author Andy Clark
24: *
25: * @version $Id$
26: */
27: public class PrefixMappingEvent extends BoundedEvent {
28:
29: //
30: // Data
31: //
32:
33: /**
34: * The namespace prefix. The prefix value will be the empty
35: * string, "", in the case of the default namespace.
36: */
37: public String prefix;
38:
39: /**
40: * The URI bound to the prefix. This value will be null for end
41: * prefix mapping events.
42: * <p color='red'>
43: * REVISIT: [Q] Should the URI be set even on the end prefix mapping
44: * events? -Ac
45: * </p>
46: */
47: public String uri;
48:
49: //
50: // Constructors
51: //
52:
53: /** Default constructor. */
54: public PrefixMappingEvent() {
55: super (XMLEvent.PREFIX_MAPPING);
56: } // <init>()
57:
58: } // class PrefixMappingEvent
|