Interface ReferenceCollector

  • All Known Implementing Classes:
    DocumentModelReferenceCollector

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public interface ReferenceCollector
    Implementations of this interface are used to collect the references to external resources (images, audio, video, XInclude, etc.). Errors and exceptions during the collect operation are handled by the ErrorHandler
    Since:
    21.1
    • Method Detail

      • setErrorHandler

        void setErrorHandler​(ErrorHandler errorHandler)
        Specialized error handlers can be set using this method.
        Parameters:
        errorHandler -
      • getErrorHandler

        ErrorHandler getErrorHandler()
        Returns:
        the error handler
      • collectReferences

        java.util.Set<Reference> collectReferences()
        Collects the references in a document
        Returns:
        a set of references