public class ResourceTargetingEvent extends ElementProcessingEvent implements ResourceBasedEvent
Constructor and Description |
---|
ResourceTargetingEvent(Object element,
SmooksResourceConfiguration resourceConfig,
Object... metadata)
Event constructor.
|
ResourceTargetingEvent(Object element,
SmooksResourceConfiguration resourceConfig,
VisitSequence sequence,
Object... metadata)
Event constructor.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getMetadata()
Get the optional event metadata.
|
SmooksResourceConfiguration |
getResourceConfig()
Get the tagreted resource configuration.
|
VisitSequence |
getSequence() |
void |
setMetadata(Object... metadata)
Set event metadata.
|
String |
toString() |
getDepth, getElement
public ResourceTargetingEvent(Object element, SmooksResourceConfiguration resourceConfig, Object... metadata)
element
- The element (SAXElement
/Element
)
being targeted by the resource.resourceConfig
- The resource configuration.metadata
- Optional event metadata.public ResourceTargetingEvent(Object element, SmooksResourceConfiguration resourceConfig, VisitSequence sequence, Object... metadata)
element
- The element (SAXElement
/Element
)
being targeted by the resource.resourceConfig
- The resource configuration.metadata
- Optional event metadata.public SmooksResourceConfiguration getResourceConfig()
getResourceConfig
in interface ResourceBasedEvent
public void setMetadata(Object... metadata)
metadata
- Event metadata.public Object[] getMetadata()
public VisitSequence getSequence()
Copyright © 2020. All rights reserved.