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
static ContentIDGenerator DEFAULT
          Default content ID generator that preserves any existing content ID.
 
Method Summary
 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 © 2004-2012 The Apache Software Foundation. All Rights Reserved.