Package org.smooks.api.delivery.fragment
Interface Fragment<T>
-
- All Known Implementing Classes:
NodeFragment
@NotThreadSafe public interface Fragment<T>
Wrapper for a fragment object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getId()
boolean
isMatch(SelectorPath selectorPath, ExecutionContext executionContext)
Is the suppliedSelectorPath
targeting thisFragment
.boolean
release(long id, Object token)
boolean
reserve(long id, Object token)
T
unwrap()
-
-
-
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 suppliedSelectorPath
targeting 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.
-
-