Class NodeFragment

  • All Implemented Interfaces:
    org.smooks.api.delivery.fragment.Fragment<Node>

    public class NodeFragment
    extends Object
    implements org.smooks.api.delivery.fragment.Fragment<Node>
    • Constructor Detail

      • NodeFragment

        public NodeFragment​(Node node)
      • NodeFragment

        public NodeFragment​(Node node,
                            boolean isReservationInheritable)
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface org.smooks.api.delivery.fragment.Fragment<Node>
      • unwrap

        public Node unwrap()
        Specified by:
        unwrap in interface org.smooks.api.delivery.fragment.Fragment<Node>
      • reserve

        public boolean reserve​(long id,
                               Object token)
        Specified by:
        reserve in interface org.smooks.api.delivery.fragment.Fragment<Node>
      • release

        public boolean release​(long id,
                               Object token)
        Specified by:
        release in interface org.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:
        isMatch in interface org.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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object