net.sf.saxon.tree.util

## Class DocumentNumberAllocator

- java.lang.Object
- - net.sf.saxon.tree.util.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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DocumentNumberAllocator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `allocateDocumentNumber()` Allocate a unique document number

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DocumentNumberAllocator

          public DocumentNumberAllocator()

  - ### Method Detail

    - #### allocateDocumentNumber

          public long allocateDocumentNumber()

      Allocate a unique document number
      Returns:
        a unique document number

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.