Class NodeFragment
- java.lang.Object
-
- org.smooks.engine.delivery.fragment.NodeFragment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classNodeFragment.Reservation
-
Field Summary
Fields Modifier and Type Field Description protected static UserDataHandlerCOPY_USER_DATA_HANDLERstatic StringID_USER_DATA_KEYstatic StringRESERVATIONS_USER_DATA_KEY
-
Constructor Summary
Constructors Constructor Description NodeFragment(Node node)NodeFragment(Node node, boolean isReservationInheritable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanassertConditionTrue(ExecutionContext executionContext, SelectorPath selectorPath)booleanequals(Object o)protected booleanevaluate(Node node, SelectorPath selectorPath, ExecutionContext executionContext)StringgetId()inthashCode()booleanisMatch(SelectorPath selectorPath, ExecutionContext executionContext)Is the suppliedSelectorPathtargeting thisFragment.protected booleanisPatternMatch(Node node, SelectorPath selectorPath)booleanrelease(long id, Object token)booleanreserve(long id, Object token)StringtoString()Nodeunwrap()
-
-
-
Field Detail
-
COPY_USER_DATA_HANDLER
protected static final UserDataHandler COPY_USER_DATA_HANDLER
-
RESERVATIONS_USER_DATA_KEY
public static final String RESERVATIONS_USER_DATA_KEY
- See Also:
- Constant Field Values
-
ID_USER_DATA_KEY
public static final String ID_USER_DATA_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
-
unwrap
public Node unwrap()
-
reserve
public boolean reserve(long id, Object token)
-
release
public boolean release(long id, Object token)
-
isMatch
public boolean isMatch(SelectorPath selectorPath, ExecutionContext executionContext)
Description copied from interface:FragmentIs the suppliedSelectorPathtargeting thisFragment. Checks that this fragment is in the correct namespace and is a contextual match for the configuration.
-
evaluate
protected boolean evaluate(Node node, SelectorPath selectorPath, ExecutionContext executionContext) throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
-
isPatternMatch
protected boolean isPatternMatch(Node node, SelectorPath selectorPath) throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
-
assertConditionTrue
protected boolean assertConditionTrue(ExecutionContext executionContext, SelectorPath selectorPath)
-
-