Package org.smooks.engine.delivery.event
Class ResourceTargetingExecutionEvent<T>
- java.lang.Object
-
- org.smooks.engine.delivery.event.FragmentExecutionEvent<T>
-
- org.smooks.engine.delivery.event.ResourceTargetingExecutionEvent<T>
-
- All Implemented Interfaces:
ExecutionEvent
,ResourceAwareEvent
public class ResourceTargetingExecutionEvent<T> extends FragmentExecutionEvent<T> implements ResourceAwareEvent
Resource targeting event.- Author:
- tom.fennelly@gmail.com
-
-
Constructor Summary
Constructors Constructor Description ResourceTargetingExecutionEvent(Fragment<T> fragment, ResourceConfig resourceConfig, Object... metadata)
Event constructor.ResourceTargetingExecutionEvent(Fragment<T> fragment, ResourceConfig resourceConfig, VisitSequence sequence, Object... metadata)
Event constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getMetadata()
Get the optional event metadata.ResourceConfig
getResourceConfig()
Get the tagreted resource configuration.VisitSequence
getSequence()
void
setMetadata(Object... metadata)
Set event metadata.String
toString()
-
Methods inherited from class org.smooks.engine.delivery.event.FragmentExecutionEvent
getDepth, getFragment
-
-
-
-
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
-
getResourceConfig
public ResourceConfig getResourceConfig()
Get the tagreted resource configuration.- Specified by:
getResourceConfig
in interfaceResourceAwareEvent
- Returns:
- The targeted resource configuration.
-
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.
-
getSequence
public VisitSequence getSequence()
-
-