net.sf.saxon.om
Class DocumentNumberAllocator
java.lang.Object
net.sf.saxon.om.DocumentNumberAllocator
- All Implemented Interfaces:
- Serializable
public class DocumentNumberAllocator
- extends 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
- See Also:
- Serialized Form
DocumentNumberAllocator
public DocumentNumberAllocator()
allocateDocumentNumber
public int allocateDocumentNumber()
- Allocate a unique document number
- Returns:
- a unique document number
Copyright (C) Michael H. Kay. All rights reserved.