com.icl.saxon.om
Class Sequencer

java.lang.Object
  |
  +--com.icl.saxon.om.Sequencer

public class Sequencer
extends java.lang.Object

The Sequencer class is responsible for allocating unique blocks of sequence numbers used for numbering nodes. Sequence numbers allocated by one sequencer instance are guaranteed unique.


Constructor Summary
Sequencer()
           
 
Method Summary
 int allocate(int size)
          Allocate a block of sequence numbers
static Sequencer getDefaultDocumentSequencer()
          Get the default document sequencer
static Sequencer getDefaultNodeSequencer()
          Get the default node sequencer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sequencer

public Sequencer()
Method Detail

allocate

public int allocate(int size)
Allocate a block of sequence numbers
Parameters:
size - the number of sequence numbers to be allocated
Returns:
the first number in the allocated block

getDefaultDocumentSequencer

public static Sequencer getDefaultDocumentSequencer()
Get the default document sequencer

getDefaultNodeSequencer

public static Sequencer getDefaultNodeSequencer()
Get the default node sequencer