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.
DEFAULT
static final ContentIDGenerator DEFAULT
- Default content ID generator that preserves any existing content ID.
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-2013 The Apache Software Foundation. All Rights Reserved.