Class NodeFragment
- java.lang.Object
-
- org.smooks.engine.delivery.fragment.NodeFragment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
NodeFragment.Reservation
-
Field Summary
Fields Modifier and Type Field Description protected static UserDataHandler
COPY_USER_DATA_HANDLER
static String
ID_USER_DATA_KEY
static String
RESERVATIONS_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 boolean
assertConditionTrue(ExecutionContext executionContext, SelectorPath selectorPath)
boolean
equals(Object o)
protected boolean
evaluate(Node node, SelectorPath selectorPath, ExecutionContext executionContext)
String
getId()
int
hashCode()
boolean
isMatch(SelectorPath selectorPath, ExecutionContext executionContext)
Is the suppliedSelectorPath
targeting thisFragment
.protected boolean
isPatternMatch(Node node, SelectorPath selectorPath)
boolean
release(long id, Object token)
boolean
reserve(long id, Object token)
String
toString()
Node
unwrap()
-
-
-
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:Fragment
Is the suppliedSelectorPath
targeting 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)
-
-