Class ResourceTargetingExecutionEvent<T>

    • Constructor Detail

      • ResourceTargetingExecutionEvent

        public ResourceTargetingExecutionEvent​(Fragment<T> fragment,
                                               ResourceConfig resourceConfig,
                                               Object... metadata)
        Event constructor.
        Parameters:
        fragment - The element (org.smooks.engine.delivery.sax.SAXElement/Element) being targeted by the resource.
        resourceConfig - The resource configuration.
        metadata - Optional event metadata.
      • ResourceTargetingExecutionEvent

        public ResourceTargetingExecutionEvent​(Fragment<T> fragment,
                                               ResourceConfig resourceConfig,
                                               VisitSequence sequence,
                                               Object... metadata)
        Event constructor.
        Parameters:
        fragment - The element (org.smooks.engine.delivery.sax.SAXElement/Element) being targeted by the resource.
        resourceConfig - The resource configuration.
        metadata - Optional event metadata.
    • Method Detail

      • setMetadata

        public void setMetadata​(Object... metadata)
        Set event metadata.
        Parameters:
        metadata - Event metadata.
      • getMetadata

        public Object[] getMetadata()
        Get the optional event metadata.
        Returns:
        Event metadata.