Class Event

java.lang.Object
net.sf.saxon.event.Event
Direct Known Subclasses:
Event.Append, Event.Attribute, Event.Comment, Event.EndDocument, Event.EndElement, Event.Namespace, Event.ProcessingInstruction, Event.StartContent, Event.StartDocument, Event.StartElement, Event.Text

public abstract class Event extends Object
An event is an object representing one of the events that can be passed to a receiver: for example, a startElement, endElement, characters, or comment event. Sufficient information is retained in order to enable a stored event to be "replayed" later.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event representing an arbitrary item being sent to the event stream in composed form.
    static class 
    Event representing an attribute node
    static class 
    Event representing a comment node
    static class 
    Event representing end of document
    static class 
    Event representing the end of an element
    static class 
    Event representing a set of namespace bindings
    static class 
    Event representing a processing instruction node
    static class 
    Event representing the end of a start tag, that is, indicating that no more attributes or namespaces are expected for the current element
    static class 
    Event representing start of document
    static class 
    Event representing the start of an element (not including attributes or namespaces)
    static class 
    Event representing a text node
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Send the event to a receiver

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Event

      public Event()
  • Method Details

    • replay

      public abstract void replay(Receiver out) throws XPathException
      Send the event to a receiver
      Parameters:
      out - the receiver to which the event is to be sent
      Throws:
      XPathException - the the receiver reports an error