org.apache.axiom.util.stax.xop

## Interface ContentIDGenerator

-     public interface ContentIDGenerator

  Content ID generator interface. Implementations of this interface are used by `XOPEncodingStreamReader` to generate content IDs for use in `xop:Include` elements.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static ContentIDGenerator` | `DEFAULT` Default content ID generator that preserves any existing content ID.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `generateContentID(String existingContentID)` Generate a content ID.

- - ### Field Detail

    - #### DEFAULT

          static final ContentIDGenerator DEFAULT

      Default content ID generator that preserves any existing content ID.

  - ### Method Detail

    - #### generateContentID

          String generateContentID(String existingContentID)

      Generate a content ID.
      Parameters:
        `existingContentID` - An existing content ID for the `DataHandler` being processed, as returned by `DataHandlerReader.getContentID()`, or `null` if no existing content ID is known. The implementation is free to use this information or not.
      Returns:
        the content ID; may not be `null`

Copyright © The Apache Software Foundation. All Rights Reserved.