net.sf.saxon.om

Class DocumentNumberAllocator

Implemented Interfaces:
Serializable

public class DocumentNumberAllocator
extends java.lang.Object
implements Serializable

This class (which has one instance per Configuration) is used to allocate unique document numbers. It's a separate class so that it can act as a monitor for synchronization

Method Summary

int
allocateDocumentNumber()
Allocate a unique document number

Method Details

allocateDocumentNumber

public int allocateDocumentNumber()
Allocate a unique document number
Returns:
a unique document number