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(org.smooks.api.ExecutionContext executionContext, org.smooks.api.resource.config.xpath.SelectorPath selectorPath)booleanequals(Object o)protected booleanevaluate(Node node, org.smooks.api.resource.config.xpath.SelectorPath selectorPath, org.smooks.api.ExecutionContext executionContext)StringgetId()inthashCode()booleanisMatch(org.smooks.api.resource.config.xpath.SelectorPath selectorPath, org.smooks.api.ExecutionContext executionContext)protected booleanisPatternMatch(Node node, org.smooks.api.resource.config.xpath.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()
- Specified by:
getIdin interfaceorg.smooks.api.delivery.fragment.Fragment<Node>
-
unwrap
public Node unwrap()
- Specified by:
unwrapin interfaceorg.smooks.api.delivery.fragment.Fragment<Node>
-
reserve
public boolean reserve(long id, Object token)- Specified by:
reservein interfaceorg.smooks.api.delivery.fragment.Fragment<Node>
-
release
public boolean release(long id, Object token)- Specified by:
releasein interfaceorg.smooks.api.delivery.fragment.Fragment<Node>
-
isMatch
public boolean isMatch(org.smooks.api.resource.config.xpath.SelectorPath selectorPath, org.smooks.api.ExecutionContext executionContext)- Specified by:
isMatchin interfaceorg.smooks.api.delivery.fragment.Fragment<Node>
-
evaluate
protected boolean evaluate(Node node, org.smooks.api.resource.config.xpath.SelectorPath selectorPath, org.smooks.api.ExecutionContext executionContext) throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
-
isPatternMatch
protected boolean isPatternMatch(Node node, org.smooks.api.resource.config.xpath.SelectorPath selectorPath) throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
-
assertConditionTrue
protected boolean assertConditionTrue(org.smooks.api.ExecutionContext executionContext, org.smooks.api.resource.config.xpath.SelectorPath selectorPath)
-
-