Package org.smooks.api.delivery.fragment
Interface Fragment<T>
-
@NotThreadSafe public interface Fragment<T>Wrapper for a fragment object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()booleanisMatch(SelectorPath selectorPath, ExecutionContext executionContext)Is the suppliedSelectorPathtargeting thisFragment.booleanrelease(long id, Object token)booleanreserve(long id, Object token)Tunwrap()
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- an identifier unique across fragments
-
unwrap
T unwrap()
- Returns:
- the wrapped fragment
-
reserve
boolean reserve(long id, Object token)
-
release
boolean release(long id, Object token)
-
isMatch
boolean isMatch(SelectorPath selectorPath, ExecutionContext executionContext)
Is the suppliedSelectorPathtargeting thisFragment. Checks that this fragment is in the correct namespace and is a contextual match for the configuration.- Parameters:
selectorPath- The selector path to be checked.executionContext- The current execution context.- Returns:
- True if this configuration is targeted at the supplied element, otherwise false.
-
-