org.cyberneko.pull.event
Class PrefixMappingEvent

java.lang.Object
  extended byorg.cyberneko.pull.XMLEvent
      extended byorg.cyberneko.pull.event.BoundedEvent
          extended byorg.cyberneko.pull.event.PrefixMappingEvent

public class PrefixMappingEvent
extends BoundedEvent

A prefix mapping event.

REVISIT: [Q] Should we pass prefix mappings as separate events or should there be an XNI NamespaceContext passed with the event objects? -Ac

Version:
$Id: PrefixMappingEvent.java,v 1.3 2003/01/28 20:00:30 andyc Exp $
Author:
Andy Clark

Field Summary
 java.lang.String prefix
          The namespace prefix.
 java.lang.String uri
          The URI bound to the prefix.
 
Fields inherited from class org.cyberneko.pull.event.BoundedEvent
start
 
Fields inherited from class org.cyberneko.pull.XMLEvent
augs, CDATA, CHARACTERS, COMMENT, DOCTYPE_DECL, DOCUMENT, ELEMENT, GENERAL_ENTITY, next, PREFIX_MAPPING, PROCESSING_INSTRUCTION, TEXT_DECL, type
 
Constructor Summary
PrefixMappingEvent()
          Default constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

public java.lang.String prefix
The namespace prefix. The prefix value will be the empty string, "", in the case of the default namespace.


uri

public java.lang.String uri
The URI bound to the prefix. This value will be null for end prefix mapping events.

REVISIT: [Q] Should the URI be set even on the end prefix mapping events? -Ac

Constructor Detail

PrefixMappingEvent

public PrefixMappingEvent()
Default constructor.



(C) Copyright 2002-2004, Andy Clark. All rights reserved.